From 48e2b0f2f980956da7d6e42c7423883df99eb3ba Mon Sep 17 00:00:00 2001 From: asteam Date: Fri, 26 Sep 2025 18:56:58 +0300 Subject: [PATCH] v10.0.0 --- README.md | 105 +++++++++--------- client.go | 10 +- client_bvs.go | 8 +- config/config.go | 2 +- config/config_bvs.go | 4 +- config/legacy-config.go | 2 +- go.mod | 3 +- go.sum | 2 - internal/validators/custom.go | 20 +++- internal/validators/helper.go | 2 +- internal/validators/messages.go | 3 + internal/validators/validator.go | 5 + legacy-client.go | 8 +- pkg/cloudapi/account.go | 2 +- pkg/cloudapi/account/account.go | 2 +- pkg/cloudapi/account/add_user.go | 2 +- pkg/cloudapi/account/audits.go | 2 +- pkg/cloudapi/account/create.go | 2 +- pkg/cloudapi/account/delete.go | 2 +- pkg/cloudapi/account/delete_user.go | 2 +- pkg/cloudapi/account/disable_enable.go | 2 +- pkg/cloudapi/account/get.go | 2 +- .../account/get_consumed_account_units.go | 2 +- .../get_consumed_cloud_units_by_type.go | 2 +- .../account/get_reserved_account_units.go | 2 +- .../account/get_resource_consumption.go | 2 +- pkg/cloudapi/account/list.go | 2 +- pkg/cloudapi/account/list_computes.go | 2 +- pkg/cloudapi/account/list_deleted.go | 2 +- pkg/cloudapi/account/list_disks.go | 2 +- pkg/cloudapi/account/list_flipgroups.go | 2 +- pkg/cloudapi/account/list_rg.go | 2 +- pkg/cloudapi/account/list_templates.go | 2 +- pkg/cloudapi/account/list_vins.go | 2 +- pkg/cloudapi/account/restore.go | 2 +- pkg/cloudapi/account/serialize.go | 2 +- pkg/cloudapi/account/update.go | 2 +- pkg/cloudapi/account/update_user.go | 2 +- pkg/cloudapi/audit.go | 2 +- pkg/cloudapi/audit/audit.go | 2 +- pkg/cloudapi/audit/get.go | 2 +- pkg/cloudapi/bservice.go | 2 +- pkg/cloudapi/bservice/bservice.go | 2 +- pkg/cloudapi/bservice/create.go | 2 +- pkg/cloudapi/bservice/delete.go | 2 +- pkg/cloudapi/bservice/disable.go | 2 +- pkg/cloudapi/bservice/enable.go | 2 +- pkg/cloudapi/bservice/get.go | 2 +- pkg/cloudapi/bservice/group_add.go | 2 +- pkg/cloudapi/bservice/group_compute_remove.go | 2 +- pkg/cloudapi/bservice/group_get.go | 2 +- pkg/cloudapi/bservice/group_parent_add.go | 2 +- pkg/cloudapi/bservice/group_parent_remove.go | 2 +- pkg/cloudapi/bservice/group_remove.go | 2 +- pkg/cloudapi/bservice/group_resize.go | 2 +- pkg/cloudapi/bservice/group_start.go | 2 +- pkg/cloudapi/bservice/group_stop.go | 2 +- pkg/cloudapi/bservice/group_update.go | 2 +- pkg/cloudapi/bservice/group_update_extnet.go | 2 +- pkg/cloudapi/bservice/group_update_vins.go | 2 +- pkg/cloudapi/bservice/list.go | 2 +- pkg/cloudapi/bservice/list_deleted.go | 2 +- pkg/cloudapi/bservice/restore.go | 2 +- pkg/cloudapi/bservice/serialize.go | 2 +- pkg/cloudapi/bservice/snapshot_create.go | 2 +- pkg/cloudapi/bservice/snapshot_delete.go | 2 +- pkg/cloudapi/bservice/snapshot_list.go | 2 +- pkg/cloudapi/bservice/snapshot_rollback.go | 2 +- pkg/cloudapi/bservice/start.go | 2 +- pkg/cloudapi/bservice/stop.go | 2 +- pkg/cloudapi/cloudapi.go | 2 +- pkg/cloudapi/compute.go | 2 +- .../compute/affinity_group_check_start.go | 2 +- pkg/cloudapi/compute/affinity_label_remove.go | 2 +- pkg/cloudapi/compute/affinity_label_set.go | 2 +- pkg/cloudapi/compute/affinity_relations.go | 2 +- pkg/cloudapi/compute/affinity_rule_add.go | 2 +- pkg/cloudapi/compute/affinity_rule_remove.go | 2 +- pkg/cloudapi/compute/affinity_rules_clear.go | 2 +- .../compute/anti_affinity_rule_add.go | 2 +- .../compute/anti_affinity_rule_remove.go | 2 +- .../compute/anti_affinity_rules_clear.go | 2 +- pkg/cloudapi/compute/attach_gpu.go | 2 +- pkg/cloudapi/compute/attach_pci_device.go | 2 +- pkg/cloudapi/compute/audits.go | 2 +- pkg/cloudapi/compute/boot_disk_set.go | 2 +- pkg/cloudapi/compute/boot_order_get.go | 2 +- pkg/cloudapi/compute/boot_order_set.go | 2 +- pkg/cloudapi/compute/cd_eject.go | 2 +- pkg/cloudapi/compute/cd_insert.go | 2 +- pkg/cloudapi/compute/change_ip.go | 2 +- pkg/cloudapi/compute/change_link_state.go | 2 +- pkg/cloudapi/compute/clone.go | 2 +- pkg/cloudapi/compute/compute.go | 2 +- pkg/cloudapi/compute/create_template.go | 2 +- .../compute/create_template_from_blank.go | 2 +- pkg/cloudapi/compute/delete.go | 2 +- pkg/cloudapi/compute/delete_custom_fields.go | 2 +- pkg/cloudapi/compute/detach_gpu.go | 2 +- pkg/cloudapi/compute/detach_pci_device.go | 2 +- pkg/cloudapi/compute/disable.go | 2 +- pkg/cloudapi/compute/disk_add.go | 2 +- pkg/cloudapi/compute/disk_attach.go | 2 +- pkg/cloudapi/compute/disk_del.go | 2 +- pkg/cloudapi/compute/disk_detach.go | 2 +- pkg/cloudapi/compute/disk_migrate.go | 2 +- pkg/cloudapi/compute/disk_qos.go | 2 +- pkg/cloudapi/compute/disk_resize.go | 2 +- .../compute/disk_switch_to_replication.go | 2 +- pkg/cloudapi/compute/enable.go | 2 +- pkg/cloudapi/compute/filter.go | 6 +- pkg/cloudapi/compute/get.go | 2 +- pkg/cloudapi/compute/get_audits.go | 2 +- pkg/cloudapi/compute/get_console_url.go | 2 +- pkg/cloudapi/compute/get_custom_fields.go | 2 +- pkg/cloudapi/compute/get_log.go | 4 +- pkg/cloudapi/compute/list.go | 2 +- pkg/cloudapi/compute/list_deleted.go | 2 +- pkg/cloudapi/compute/list_pci_device.go | 2 +- pkg/cloudapi/compute/list_vgpu.go | 2 +- pkg/cloudapi/compute/models.go | 19 +++- pkg/cloudapi/compute/move_to_rg.go | 2 +- pkg/cloudapi/compute/net_attach.go | 2 +- pkg/cloudapi/compute/net_detach.go | 2 +- pkg/cloudapi/compute/pause.go | 2 +- pkg/cloudapi/compute/pfw_add.go | 2 +- pkg/cloudapi/compute/pfw_del.go | 2 +- pkg/cloudapi/compute/pfw_list.go | 2 +- pkg/cloudapi/compute/pin_to_stack.go | 17 ++- pkg/cloudapi/compute/power_cycle.go | 2 +- pkg/cloudapi/compute/reboot.go | 2 +- pkg/cloudapi/compute/redeploy.go | 2 +- pkg/cloudapi/compute/reset.go | 2 +- pkg/cloudapi/compute/resize.go | 6 +- pkg/cloudapi/compute/restore.go | 2 +- pkg/cloudapi/compute/resume.go | 2 +- pkg/cloudapi/compute/serialize.go | 2 +- pkg/cloudapi/compute/set_custom_fields.go | 2 +- pkg/cloudapi/compute/snapshot_create.go | 2 +- pkg/cloudapi/compute/snapshot_delete.go | 2 +- pkg/cloudapi/compute/snapshot_list.go | 2 +- pkg/cloudapi/compute/snapshot_rollback.go | 2 +- pkg/cloudapi/compute/snapshot_usage.go | 2 +- pkg/cloudapi/compute/start.go | 2 +- pkg/cloudapi/compute/stop.go | 2 +- pkg/cloudapi/compute/tag_add.go | 2 +- pkg/cloudapi/compute/tag_remove.go | 2 +- pkg/cloudapi/compute/unpin_from_stack.go | 2 +- pkg/cloudapi/compute/update.go | 11 +- pkg/cloudapi/compute/user_grant.go | 2 +- pkg/cloudapi/compute/user_list.go | 2 +- pkg/cloudapi/compute/user_revoke.go | 2 +- pkg/cloudapi/compute/user_update.go | 2 +- pkg/cloudapi/disks.go | 2 +- pkg/cloudapi/disks/create.go | 2 +- pkg/cloudapi/disks/delete.go | 2 +- pkg/cloudapi/disks/delete_disks.go | 2 +- pkg/cloudapi/disks/disks.go | 2 +- pkg/cloudapi/disks/filter.go | 6 +- pkg/cloudapi/disks/from_platform_disk.go | 2 +- pkg/cloudapi/disks/get.go | 2 +- pkg/cloudapi/disks/limitio.go | 2 +- pkg/cloudapi/disks/list.go | 2 +- pkg/cloudapi/disks/list_deleted.go | 2 +- pkg/cloudapi/disks/list_types.go | 2 +- pkg/cloudapi/disks/list_unattached.go | 2 +- pkg/cloudapi/disks/rename.go | 2 +- pkg/cloudapi/disks/replicate.go | 2 +- pkg/cloudapi/disks/replication_resume.go | 2 +- pkg/cloudapi/disks/replication_reverse.go | 2 +- pkg/cloudapi/disks/replication_start.go | 2 +- pkg/cloudapi/disks/replication_status.go | 2 +- pkg/cloudapi/disks/replication_stop.go | 2 +- pkg/cloudapi/disks/replication_suspend.go | 2 +- pkg/cloudapi/disks/resize.go | 27 +---- pkg/cloudapi/disks/restore.go | 2 +- pkg/cloudapi/disks/serialize.go | 2 +- pkg/cloudapi/disks/share.go | 2 +- pkg/cloudapi/disks/snapshot_delete.go | 2 +- pkg/cloudapi/disks/snapshot_rollback.go | 2 +- pkg/cloudapi/disks/unshare.go | 2 +- pkg/cloudapi/dpdknet.go | 2 +- pkg/cloudapi/dpdknet/dpdknet.go | 2 +- pkg/cloudapi/dpdknet/get.go | 2 +- pkg/cloudapi/dpdknet/list.go | 2 +- pkg/cloudapi/extnet.go | 2 +- pkg/cloudapi/extnet/extnet.go | 2 +- pkg/cloudapi/extnet/get.go | 2 +- pkg/cloudapi/extnet/get_reserved_ip.go | 50 +++++++++ pkg/cloudapi/extnet/list.go | 2 +- pkg/cloudapi/extnet/list_computes.go | 2 +- pkg/cloudapi/extnet/models.go | 20 ++++ pkg/cloudapi/extnet/serialize.go | 2 +- pkg/cloudapi/flipgroup.go | 2 +- pkg/cloudapi/flipgroup/compute_add.go | 2 +- pkg/cloudapi/flipgroup/compute_remove.go | 2 +- pkg/cloudapi/flipgroup/create.go | 2 +- pkg/cloudapi/flipgroup/delete.go | 2 +- pkg/cloudapi/flipgroup/edit.go | 2 +- pkg/cloudapi/flipgroup/flipgroup.go | 2 +- pkg/cloudapi/flipgroup/get.go | 2 +- pkg/cloudapi/flipgroup/list.go | 2 +- pkg/cloudapi/flipgroup/serialize.go | 2 +- pkg/cloudapi/image.go | 2 +- pkg/cloudapi/image/create.go | 2 +- pkg/cloudapi/image/create_virtual.go | 2 +- pkg/cloudapi/image/delete.go | 2 +- pkg/cloudapi/image/get.go | 2 +- pkg/cloudapi/image/image.go | 2 +- pkg/cloudapi/image/link.go | 2 +- pkg/cloudapi/image/list.go | 2 +- pkg/cloudapi/image/rename.go | 2 +- pkg/cloudapi/image/serialize.go | 2 +- pkg/cloudapi/k8ci.go | 2 +- pkg/cloudapi/k8ci/get.go | 2 +- pkg/cloudapi/k8ci/k8ci.go | 2 +- pkg/cloudapi/k8ci/list.go | 2 +- pkg/cloudapi/k8ci/list_deleted.go | 2 +- pkg/cloudapi/k8ci/serialize.go | 2 +- pkg/cloudapi/k8s.go | 2 +- pkg/cloudapi/k8s/create.go | 2 +- pkg/cloudapi/k8s/delete.go | 2 +- pkg/cloudapi/k8s/delete_master_from_group.go | 2 +- pkg/cloudapi/k8s/delete_worker_from_group.go | 2 +- pkg/cloudapi/k8s/disable_enable.go | 2 +- pkg/cloudapi/k8s/find_group_by_label.go | 2 +- pkg/cloudapi/k8s/get.go | 2 +- pkg/cloudapi/k8s/get_config.go | 2 +- pkg/cloudapi/k8s/get_node_annotations.go | 2 +- pkg/cloudapi/k8s/get_node_labels.go | 2 +- pkg/cloudapi/k8s/get_node_taints.go | 2 +- .../k8s/get_worker_nodes_meta_data.go | 2 +- pkg/cloudapi/k8s/k8s.go | 2 +- pkg/cloudapi/k8s/list.go | 2 +- pkg/cloudapi/k8s/list_deleted.go | 2 +- pkg/cloudapi/k8s/restore.go | 2 +- pkg/cloudapi/k8s/serialize.go | 2 +- pkg/cloudapi/k8s/start.go | 2 +- pkg/cloudapi/k8s/stop.go | 2 +- pkg/cloudapi/k8s/update.go | 2 +- .../k8s/update_worker_nodes_meta_data.go | 2 +- pkg/cloudapi/k8s/worker_add.go | 2 +- pkg/cloudapi/k8s/worker_reset.go | 2 +- pkg/cloudapi/k8s/worker_restart.go | 2 +- pkg/cloudapi/k8s/workers_group_add.go | 2 +- pkg/cloudapi/k8s/workers_group_delete.go | 2 +- pkg/cloudapi/k8s/workers_group_get_by_name.go | 2 +- pkg/cloudapi/kvmx86.go | 2 +- pkg/cloudapi/kvmx86/create.go | 6 +- pkg/cloudapi/kvmx86/create_blank.go | 6 +- pkg/cloudapi/kvmx86/kvmx86.go | 2 +- pkg/cloudapi/lb.go | 2 +- pkg/cloudapi/lb/backend_create.go | 2 +- pkg/cloudapi/lb/backend_delete.go | 2 +- pkg/cloudapi/lb/backend_server_add.go | 2 +- pkg/cloudapi/lb/backend_server_delete.go | 2 +- pkg/cloudapi/lb/backend_server_update.go | 2 +- pkg/cloudapi/lb/backend_update.go | 2 +- pkg/cloudapi/lb/config_reset.go | 2 +- pkg/cloudapi/lb/create.go | 2 +- pkg/cloudapi/lb/delete.go | 2 +- pkg/cloudapi/lb/disable_enable.go | 2 +- pkg/cloudapi/lb/filter.go | 4 +- pkg/cloudapi/lb/frontend_bind.go | 2 +- pkg/cloudapi/lb/frontend_bind_delete.go | 2 +- pkg/cloudapi/lb/frontend_bind_update.go | 2 +- pkg/cloudapi/lb/frontend_create.go | 2 +- pkg/cloudapi/lb/frontend_delete.go | 2 +- pkg/cloudapi/lb/get.go | 2 +- pkg/cloudapi/lb/lb.go | 2 +- pkg/cloudapi/lb/list.go | 2 +- pkg/cloudapi/lb/list_deleted.go | 2 +- pkg/cloudapi/lb/make_highly_available.go | 2 +- pkg/cloudapi/lb/restart.go | 2 +- pkg/cloudapi/lb/restore.go | 2 +- pkg/cloudapi/lb/serialize.go | 2 +- pkg/cloudapi/lb/start.go | 2 +- pkg/cloudapi/lb/stop.go | 2 +- pkg/cloudapi/lb/update.go | 2 +- pkg/cloudapi/lb/update_sysctl_params.go | 2 +- pkg/cloudapi/locations/list.go | 2 +- pkg/cloudapi/locations/locations.go | 2 +- pkg/cloudapi/locations/serialize.go | 2 +- pkg/cloudapi/locatons.go | 2 +- pkg/cloudapi/pcidevice.go | 2 +- pkg/cloudapi/pcidevice/list.go | 2 +- pkg/cloudapi/pcidevice/pcidevice.go | 2 +- pkg/cloudapi/pcidevice/serialize.go | 2 +- pkg/cloudapi/rg.go | 2 +- pkg/cloudapi/rg/access_grant.go | 2 +- pkg/cloudapi/rg/access_revoke.go | 2 +- pkg/cloudapi/rg/affinity_group_computes.go | 2 +- pkg/cloudapi/rg/affinity_groups_get.go | 2 +- pkg/cloudapi/rg/affinity_groups_list.go | 2 +- pkg/cloudapi/rg/audits.go | 2 +- pkg/cloudapi/rg/create.go | 2 +- pkg/cloudapi/rg/delete.go | 2 +- pkg/cloudapi/rg/disable.go | 2 +- pkg/cloudapi/rg/enable.go | 2 +- pkg/cloudapi/rg/get.go | 2 +- pkg/cloudapi/rg/get_resource_consumption.go | 2 +- pkg/cloudapi/rg/list.go | 2 +- pkg/cloudapi/rg/list_computes.go | 2 +- pkg/cloudapi/rg/list_deleted.go | 2 +- pkg/cloudapi/rg/list_lb.go | 2 +- pkg/cloudapi/rg/list_pfw.go | 2 +- pkg/cloudapi/rg/list_vins.go | 2 +- pkg/cloudapi/rg/remove_def_net.go | 2 +- pkg/cloudapi/rg/restore.go | 2 +- pkg/cloudapi/rg/rg.go | 2 +- pkg/cloudapi/rg/serialize.go | 2 +- pkg/cloudapi/rg/set_def_net.go | 2 +- pkg/cloudapi/rg/update.go | 2 +- pkg/cloudapi/rg/usage.go | 2 +- pkg/cloudapi/stack.go | 2 +- pkg/cloudapi/stack/get.go | 2 +- pkg/cloudapi/stack/list.go | 2 +- pkg/cloudapi/stack/stack.go | 2 +- pkg/cloudapi/tasks.go | 2 +- pkg/cloudapi/tasks/get.go | 2 +- pkg/cloudapi/tasks/list.go | 2 +- pkg/cloudapi/tasks/tasks.go | 2 +- pkg/cloudapi/user.go | 2 +- pkg/cloudapi/user/api_list.go | 2 +- pkg/cloudapi/user/authenticate.go | 2 +- pkg/cloudapi/user/get.go | 2 +- .../user/is_valid_invite_user_token.go | 2 +- pkg/cloudapi/user/set_data.go | 2 +- pkg/cloudapi/user/user.go | 2 +- pkg/cloudapi/vfpool.go | 2 +- pkg/cloudapi/vfpool/get.go | 2 +- pkg/cloudapi/vfpool/list.go | 2 +- pkg/cloudapi/vfpool/serialize.go | 2 +- pkg/cloudapi/vfpool/vfpool.go | 2 +- pkg/cloudapi/vins.go | 2 +- pkg/cloudapi/vins/audits.go | 2 +- pkg/cloudapi/vins/create_in_account.go | 2 +- pkg/cloudapi/vins/create_in_rg.go | 2 +- pkg/cloudapi/vins/delete.go | 2 +- pkg/cloudapi/vins/disable_enable.go | 2 +- pkg/cloudapi/vins/dns_apply.go | 2 +- pkg/cloudapi/vins/extnet_connect.go | 2 +- pkg/cloudapi/vins/extnet_disconnect.go | 2 +- pkg/cloudapi/vins/extnet_list.go | 2 +- pkg/cloudapi/vins/get.go | 2 +- pkg/cloudapi/vins/ip_list.go | 2 +- pkg/cloudapi/vins/ip_release.go | 2 +- pkg/cloudapi/vins/ip_reserve.go | 2 +- pkg/cloudapi/vins/list.go | 2 +- pkg/cloudapi/vins/list_deleted.go | 2 +- pkg/cloudapi/vins/models.go | 16 +-- pkg/cloudapi/vins/nat_rule_add.go | 2 +- pkg/cloudapi/vins/nat_rule_del.go | 2 +- pkg/cloudapi/vins/nat_rule_list.go | 2 +- pkg/cloudapi/vins/restore.go | 2 +- pkg/cloudapi/vins/serialize.go | 2 +- .../vins/static_route_access_grant.go | 2 +- .../vins/static_route_access_revoke.go | 2 +- pkg/cloudapi/vins/static_route_add.go | 6 +- pkg/cloudapi/vins/static_route_del.go | 2 +- pkg/cloudapi/vins/static_route_list.go | 2 +- pkg/cloudapi/vins/vins.go | 2 +- pkg/cloudapi/vins/vnfdev_redeploy.go | 2 +- pkg/cloudapi/vins/vnfdev_restart.go | 2 +- pkg/cloudbroker/account.go | 2 +- pkg/cloudbroker/account/account.go | 2 +- pkg/cloudbroker/account/add_user.go | 2 +- pkg/cloudbroker/account/audits.go | 2 +- pkg/cloudbroker/account/create.go | 2 +- pkg/cloudbroker/account/delete.go | 2 +- pkg/cloudbroker/account/delete_accounts.go | 2 +- pkg/cloudbroker/account/delete_user.go | 2 +- pkg/cloudbroker/account/disable.go | 2 +- pkg/cloudbroker/account/disable_accounts.go | 2 +- pkg/cloudbroker/account/enable.go | 2 +- pkg/cloudbroker/account/enable_accounts.go | 2 +- pkg/cloudbroker/account/get.go | 2 +- .../account/get_resource_consumption.go | 2 +- .../account/grant_access_templates.go | 2 +- pkg/cloudbroker/account/list.go | 2 +- .../account/list_available_templates.go | 2 +- pkg/cloudbroker/account/list_computes.go | 2 +- pkg/cloudbroker/account/list_deleted.go | 2 +- pkg/cloudbroker/account/list_disks.go | 2 +- pkg/cloudbroker/account/list_flip_groups.go | 2 +- pkg/cloudbroker/account/list_rg.go | 2 +- pkg/cloudbroker/account/list_vins.go | 2 +- pkg/cloudbroker/account/restore.go | 2 +- .../account/revoke_access_templates.go | 2 +- pkg/cloudbroker/account/serialize.go | 2 +- .../account/set_cpu_allocation_parameter.go | 2 +- .../account/set_cpu_allocation_ratio.go | 2 +- pkg/cloudbroker/account/update.go | 2 +- .../account/update_compute_features.go | 2 +- .../account/update_resource_types.go | 2 +- pkg/cloudbroker/account/update_user.go | 2 +- pkg/cloudbroker/apiaccess.go | 2 +- pkg/cloudbroker/apiaccess/api_find.go | 2 +- pkg/cloudbroker/apiaccess/apiaccess.go | 2 +- pkg/cloudbroker/apiaccess/apis_exclude.go | 2 +- pkg/cloudbroker/apiaccess/apis_include.go | 2 +- pkg/cloudbroker/apiaccess/copy.go | 2 +- pkg/cloudbroker/apiaccess/create.go | 2 +- pkg/cloudbroker/apiaccess/delete.go | 2 +- pkg/cloudbroker/apiaccess/desc_update.go | 2 +- pkg/cloudbroker/apiaccess/get.go | 2 +- pkg/cloudbroker/apiaccess/list.go | 2 +- pkg/cloudbroker/apiaccess/list_deleted.go | 2 +- pkg/cloudbroker/apiaccess/set_default.go | 2 +- pkg/cloudbroker/apiaccess/subtract.go | 2 +- pkg/cloudbroker/apiaccess/union.go | 2 +- pkg/cloudbroker/apiaccess/update.go | 2 +- pkg/cloudbroker/apiaccess/user_list.go | 2 +- pkg/cloudbroker/audit.go | 2 +- pkg/cloudbroker/audit/audit.go | 2 +- .../audit/export_audits_to_file.go | 2 +- pkg/cloudbroker/audit/get.go | 2 +- pkg/cloudbroker/audit/linked_jobs.go | 2 +- pkg/cloudbroker/audit/list.go | 2 +- pkg/cloudbroker/backup.go | 2 +- pkg/cloudbroker/backup/backup.go | 2 +- pkg/cloudbroker/backup/create_disk_backup.go | 2 +- pkg/cloudbroker/backup/create_disks_backup.go | 2 +- pkg/cloudbroker/backup/delete_disk_backup.go | 2 +- pkg/cloudbroker/backup/list_backup_paths.go | 2 +- .../backup/restore_disk_from_backup.go | 2 +- .../backup/restore_disks_from_backup.go | 2 +- pkg/cloudbroker/cloudbroker.go | 2 +- pkg/cloudbroker/compute.go | 2 +- .../compute/affinity_group_check_start.go | 2 +- .../compute/affinity_label_remove.go | 2 +- pkg/cloudbroker/compute/affinity_label_set.go | 2 +- pkg/cloudbroker/compute/affinity_relations.go | 2 +- pkg/cloudbroker/compute/affinity_rule_add.go | 2 +- .../compute/affinity_rule_remove.go | 2 +- .../compute/affinity_rules_clear.go | 2 +- .../compute/anti_affinity_rule_add.go | 2 +- .../compute/anti_affinity_rule_clear.go | 2 +- .../compute/anti_affinity_rule_remove.go | 2 +- pkg/cloudbroker/compute/attach_gpu.go | 2 +- pkg/cloudbroker/compute/attach_pci_device.go | 2 +- pkg/cloudbroker/compute/audits.go | 2 +- pkg/cloudbroker/compute/boot_disk_set.go | 2 +- pkg/cloudbroker/compute/boot_order_get.go | 2 +- pkg/cloudbroker/compute/boot_order_set.go | 2 +- pkg/cloudbroker/compute/cd_eject.go | 2 +- pkg/cloudbroker/compute/cd_insert.go | 2 +- pkg/cloudbroker/compute/change_ip.go | 2 +- pkg/cloudbroker/compute/change_link_state.go | 2 +- pkg/cloudbroker/compute/clone.go | 2 +- pkg/cloudbroker/compute/compute.go | 2 +- pkg/cloudbroker/compute/computeci_set.go | 2 +- pkg/cloudbroker/compute/computeci_unset.go | 2 +- pkg/cloudbroker/compute/create_template.go | 2 +- .../compute/create_template_from_blank.go | 2 +- pkg/cloudbroker/compute/delete.go | 2 +- .../compute/delete_custom_fields.go | 2 +- pkg/cloudbroker/compute/detach_gpu.go | 2 +- pkg/cloudbroker/compute/detach_pci_device.go | 2 +- pkg/cloudbroker/compute/disable.go | 2 +- pkg/cloudbroker/compute/disk_add.go | 2 +- pkg/cloudbroker/compute/disk_attach.go | 2 +- pkg/cloudbroker/compute/disk_del.go | 2 +- pkg/cloudbroker/compute/disk_detach.go | 2 +- pkg/cloudbroker/compute/disk_migrate.go | 2 +- pkg/cloudbroker/compute/disk_qos.go | 2 +- pkg/cloudbroker/compute/disk_resize.go | 2 +- .../compute/disk_switch_to_replication.go | 2 +- pkg/cloudbroker/compute/enable.go | 2 +- pkg/cloudbroker/compute/filter.go | 6 +- pkg/cloudbroker/compute/get.go | 2 +- pkg/cloudbroker/compute/get_audits.go | 2 +- pkg/cloudbroker/compute/get_console_url.go | 2 +- pkg/cloudbroker/compute/get_custom_fields.go | 2 +- pkg/cloudbroker/compute/get_log.go | 2 +- pkg/cloudbroker/compute/list.go | 6 +- pkg/cloudbroker/compute/list_deleted.go | 2 +- pkg/cloudbroker/compute/list_pci_device.go | 2 +- pkg/cloudbroker/compute/list_vgpu.go | 2 +- pkg/cloudbroker/compute/mass_delete.go | 2 +- pkg/cloudbroker/compute/mass_reboot.go | 2 +- .../compute/mass_repair_boot_fs.go | 2 +- pkg/cloudbroker/compute/mass_start.go | 2 +- pkg/cloudbroker/compute/mass_stop.go | 2 +- pkg/cloudbroker/compute/migrate.go | 2 +- pkg/cloudbroker/compute/migrate_storage.go | 2 +- .../compute/migrate_storage_abort.go | 2 +- .../compute/migrate_storage_clean_up.go | 2 +- .../compute/migrate_storage_info.go | 2 +- pkg/cloudbroker/compute/models.go | 19 +++- pkg/cloudbroker/compute/move_to_rg.go | 2 +- pkg/cloudbroker/compute/net_attach.go | 2 +- pkg/cloudbroker/compute/net_detach.go | 2 +- pkg/cloudbroker/compute/net_qos.go | 2 +- pkg/cloudbroker/compute/pause.go | 2 +- pkg/cloudbroker/compute/pfw_add.go | 2 +- pkg/cloudbroker/compute/pfw_del.go | 2 +- pkg/cloudbroker/compute/pfw_list.go | 2 +- pkg/cloudbroker/compute/pin_to_stack.go | 7 +- pkg/cloudbroker/compute/power_cycle.go | 2 +- pkg/cloudbroker/compute/reboot.go | 2 +- pkg/cloudbroker/compute/redeploy.go | 2 +- pkg/cloudbroker/compute/registration.go | 2 +- pkg/cloudbroker/compute/repair_boot_fs.go | 2 +- pkg/cloudbroker/compute/reset.go | 2 +- pkg/cloudbroker/compute/resize.go | 6 +- pkg/cloudbroker/compute/restore.go | 2 +- pkg/cloudbroker/compute/resume.go | 2 +- pkg/cloudbroker/compute/serialize.go | 2 +- pkg/cloudbroker/compute/set_custom_fields.go | 2 +- pkg/cloudbroker/compute/set_net_config.go | 2 +- pkg/cloudbroker/compute/snapshot_create.go | 2 +- pkg/cloudbroker/compute/snapshot_delete.go | 2 +- .../compute/snapshot_evict_disk.go | 2 +- pkg/cloudbroker/compute/snapshot_list.go | 2 +- pkg/cloudbroker/compute/snapshot_rollback.go | 2 +- pkg/cloudbroker/compute/snapshot_usage.go | 2 +- pkg/cloudbroker/compute/start.go | 2 +- pkg/cloudbroker/compute/stop.go | 2 +- pkg/cloudbroker/compute/tag_add.go | 2 +- pkg/cloudbroker/compute/tag_remove.go | 2 +- pkg/cloudbroker/compute/unpin_from_stack.go | 2 +- pkg/cloudbroker/compute/update.go | 11 +- pkg/cloudbroker/compute/user_grant.go | 2 +- pkg/cloudbroker/compute/user_list.go | 2 +- pkg/cloudbroker/compute/user_revoke.go | 2 +- pkg/cloudbroker/compute/user_update.go | 2 +- pkg/cloudbroker/disks.go | 2 +- pkg/cloudbroker/disks/create.go | 2 +- pkg/cloudbroker/disks/delete.go | 2 +- pkg/cloudbroker/disks/delete_disks.go | 2 +- pkg/cloudbroker/disks/depresent.go | 2 +- pkg/cloudbroker/disks/disks.go | 2 +- pkg/cloudbroker/disks/filter.go | 6 +- pkg/cloudbroker/disks/from_platform_disk.go | 2 +- pkg/cloudbroker/disks/get.go | 2 +- pkg/cloudbroker/disks/limit_io.go | 2 +- pkg/cloudbroker/disks/list.go | 2 +- pkg/cloudbroker/disks/list_deleted.go | 2 +- pkg/cloudbroker/disks/list_types.go | 2 +- pkg/cloudbroker/disks/list_unattached.go | 2 +- pkg/cloudbroker/disks/present.go | 2 +- pkg/cloudbroker/disks/rename.go | 2 +- pkg/cloudbroker/disks/replicate.go | 2 +- pkg/cloudbroker/disks/replication_resume.go | 2 +- pkg/cloudbroker/disks/replication_reverse.go | 2 +- pkg/cloudbroker/disks/replication_start.go | 2 +- pkg/cloudbroker/disks/replication_status.go | 2 +- pkg/cloudbroker/disks/replication_stop.go | 2 +- pkg/cloudbroker/disks/replication_suspend.go | 2 +- pkg/cloudbroker/disks/resize.go | 27 +---- pkg/cloudbroker/disks/restore.go | 2 +- pkg/cloudbroker/disks/serialize.go | 2 +- pkg/cloudbroker/disks/share.go | 2 +- pkg/cloudbroker/disks/snapshot_delete.go | 2 +- pkg/cloudbroker/disks/snapshot_rollback.go | 2 +- pkg/cloudbroker/disks/unshare.go | 2 +- pkg/cloudbroker/dpdk.go | 2 +- pkg/cloudbroker/dpdknet/create.go | 2 +- pkg/cloudbroker/dpdknet/delete.go | 2 +- pkg/cloudbroker/dpdknet/disable.go | 2 +- pkg/cloudbroker/dpdknet/dpdk.go | 2 +- pkg/cloudbroker/dpdknet/enable.go | 2 +- pkg/cloudbroker/dpdknet/get.go | 2 +- pkg/cloudbroker/dpdknet/list.go | 2 +- pkg/cloudbroker/dpdknet/update.go | 2 +- pkg/cloudbroker/extnet.go | 2 +- pkg/cloudbroker/extnet/access_add.go | 2 +- pkg/cloudbroker/extnet/access_remove.go | 2 +- pkg/cloudbroker/extnet/add_reserved_ip.go | 50 +++++++++ pkg/cloudbroker/extnet/create.go | 2 +- pkg/cloudbroker/extnet/default_qos_update.go | 2 +- pkg/cloudbroker/extnet/del_reserved_ip.go | 50 +++++++++ pkg/cloudbroker/extnet/destroy.go | 2 +- pkg/cloudbroker/extnet/device_deploy.go | 2 +- pkg/cloudbroker/extnet/device_migrate.go | 2 +- pkg/cloudbroker/extnet/device_remove.go | 2 +- pkg/cloudbroker/extnet/device_restart.go | 2 +- pkg/cloudbroker/extnet/disable.go | 2 +- pkg/cloudbroker/extnet/dns_apply.go | 2 +- pkg/cloudbroker/extnet/enable.go | 2 +- pkg/cloudbroker/extnet/extnet.go | 2 +- pkg/cloudbroker/extnet/get.go | 2 +- pkg/cloudbroker/extnet/get_reserved_ip.go | 50 +++++++++ pkg/cloudbroker/extnet/ips_exclude.go | 2 +- pkg/cloudbroker/extnet/ips_exclude_range.go | 2 +- pkg/cloudbroker/extnet/ips_include.go | 2 +- pkg/cloudbroker/extnet/ips_include_range.go | 2 +- pkg/cloudbroker/extnet/list.go | 2 +- pkg/cloudbroker/extnet/models.go | 20 ++++ pkg/cloudbroker/extnet/ntp_apply.go | 2 +- pkg/cloudbroker/extnet/serialize.go | 2 +- pkg/cloudbroker/extnet/set_default.go | 2 +- .../extnet/static_route_access_grant.go | 2 +- .../extnet/static_route_access_revoke.go | 2 +- pkg/cloudbroker/extnet/static_route_add.go | 2 +- pkg/cloudbroker/extnet/static_route_del.go | 2 +- pkg/cloudbroker/extnet/static_route_list.go | 2 +- pkg/cloudbroker/extnet/update.go | 2 +- pkg/cloudbroker/flipgoup.go | 2 +- pkg/cloudbroker/flipgroup/compute_add.go | 2 +- pkg/cloudbroker/flipgroup/compute_remove.go | 2 +- pkg/cloudbroker/flipgroup/create.go | 2 +- pkg/cloudbroker/flipgroup/delete.go | 2 +- pkg/cloudbroker/flipgroup/edit.go | 2 +- pkg/cloudbroker/flipgroup/flipgroup.go | 2 +- pkg/cloudbroker/flipgroup/get.go | 2 +- pkg/cloudbroker/flipgroup/list.go | 2 +- pkg/cloudbroker/flipgroup/serialize.go | 2 +- pkg/cloudbroker/grid.go | 2 +- pkg/cloudbroker/grid/add.go | 2 +- .../grid/add_custom_backup_path.go | 2 +- pkg/cloudbroker/grid/change_settings.go | 2 +- .../grid/execute_maintenance_script.go | 2 +- pkg/cloudbroker/grid/get.go | 2 +- pkg/cloudbroker/grid/get_backup.go | 2 +- pkg/cloudbroker/grid/get_diagnosis.go | 5 +- .../grid/get_resource_consumption.go | 2 +- pkg/cloudbroker/grid/get_settings.go | 2 +- pkg/cloudbroker/grid/grid.go | 2 +- pkg/cloudbroker/grid/list.go | 2 +- pkg/cloudbroker/grid/purge_logs.go | 2 +- .../grid/remove_custom_backup_path.go | 2 +- pkg/cloudbroker/grid/rename.go | 2 +- pkg/cloudbroker/grid/serialize.go | 2 +- pkg/cloudbroker/grid/services_restart.go | 2 +- .../grid/set_cpu_allocation_parameter.go | 2 +- .../grid/set_cpu_allocation_ratio.go | 2 +- .../grid/set_cpu_allocation_ratio_for_vm.go | 2 +- .../grid/set_mem_allocation_ratio.go | 2 +- pkg/cloudbroker/grid/set_password_policy.go | 2 +- pkg/cloudbroker/group.go | 2 +- pkg/cloudbroker/group/get.go | 2 +- pkg/cloudbroker/group/group.go | 2 +- pkg/cloudbroker/group/list.go | 2 +- pkg/cloudbroker/image.go | 2 +- pkg/cloudbroker/image/computeci_set.go | 2 +- pkg/cloudbroker/image/computeci_unset.go | 2 +- pkg/cloudbroker/image/create_cdrom_image.go | 2 +- pkg/cloudbroker/image/create_image.go | 2 +- pkg/cloudbroker/image/create_virtual.go | 2 +- pkg/cloudbroker/image/delete.go | 2 +- pkg/cloudbroker/image/delete_cdrom_image.go | 2 +- pkg/cloudbroker/image/delete_images.go | 2 +- pkg/cloudbroker/image/disable.go | 2 +- pkg/cloudbroker/image/edit.go | 2 +- pkg/cloudbroker/image/enable.go | 2 +- pkg/cloudbroker/image/get.go | 2 +- pkg/cloudbroker/image/grant_access.go | 2 +- pkg/cloudbroker/image/image.go | 2 +- pkg/cloudbroker/image/link.go | 2 +- pkg/cloudbroker/image/list.go | 2 +- pkg/cloudbroker/image/list_stacks.go | 2 +- pkg/cloudbroker/image/models.go | 6 + pkg/cloudbroker/image/rename.go | 2 +- pkg/cloudbroker/image/revoke_access.go | 2 +- pkg/cloudbroker/image/serialize.go | 2 +- pkg/cloudbroker/image/share.go | 2 +- pkg/cloudbroker/image/sync_create_image.go | 2 +- pkg/cloudbroker/image/update_nodes.go | 2 +- pkg/cloudbroker/k8ci.go | 2 +- pkg/cloudbroker/k8ci/access_add.go | 2 +- pkg/cloudbroker/k8ci/access_remove.go | 2 +- pkg/cloudbroker/k8ci/create.go | 2 +- pkg/cloudbroker/k8ci/delete.go | 2 +- pkg/cloudbroker/k8ci/disable.go | 2 +- pkg/cloudbroker/k8ci/enable.go | 2 +- pkg/cloudbroker/k8ci/get.go | 2 +- pkg/cloudbroker/k8ci/k8ci.go | 2 +- pkg/cloudbroker/k8ci/list.go | 2 +- pkg/cloudbroker/k8ci/list_deleted.go | 2 +- pkg/cloudbroker/k8ci/restore.go | 2 +- pkg/cloudbroker/k8ci/serialize.go | 2 +- pkg/cloudbroker/k8s.go | 2 +- pkg/cloudbroker/k8s/create.go | 2 +- pkg/cloudbroker/k8s/delete.go | 2 +- .../k8s/delete_master_from_group.go | 2 +- .../k8s/delete_worker_from_group.go | 2 +- pkg/cloudbroker/k8s/disable.go | 2 +- pkg/cloudbroker/k8s/enable.go | 2 +- pkg/cloudbroker/k8s/find_group_by_label.go | 2 +- pkg/cloudbroker/k8s/get.go | 2 +- pkg/cloudbroker/k8s/get_config.go | 2 +- pkg/cloudbroker/k8s/get_node_annotations.go | 2 +- pkg/cloudbroker/k8s/get_node_labels.go | 2 +- pkg/cloudbroker/k8s/get_node_taints.go | 2 +- .../k8s/get_worker_nodes_meta_data.go | 2 +- pkg/cloudbroker/k8s/k8s.go | 2 +- pkg/cloudbroker/k8s/list.go | 2 +- pkg/cloudbroker/k8s/list_deleted.go | 2 +- pkg/cloudbroker/k8s/restore.go | 2 +- pkg/cloudbroker/k8s/serialize.go | 2 +- pkg/cloudbroker/k8s/start.go | 2 +- pkg/cloudbroker/k8s/stop.go | 2 +- pkg/cloudbroker/k8s/update.go | 2 +- .../k8s/update_worker_nodes_meta_data.go | 2 +- pkg/cloudbroker/k8s/worker_add.go | 2 +- pkg/cloudbroker/k8s/worker_reset.go | 2 +- pkg/cloudbroker/k8s/worker_restart.go | 2 +- pkg/cloudbroker/k8s/workers_group_add.go | 2 +- pkg/cloudbroker/k8s/workers_group_delete.go | 2 +- .../k8s/workers_group_get_by_name.go | 2 +- pkg/cloudbroker/kvmx86.go | 2 +- pkg/cloudbroker/kvmx86/create.go | 6 +- pkg/cloudbroker/kvmx86/create_blank.go | 6 +- pkg/cloudbroker/kvmx86/kvmx86.go | 2 +- pkg/cloudbroker/kvmx86/mass_create.go | 2 +- pkg/cloudbroker/lb.go | 2 +- pkg/cloudbroker/lb/backend_create.go | 2 +- pkg/cloudbroker/lb/backend_delete.go | 2 +- pkg/cloudbroker/lb/backend_server_add.go | 2 +- pkg/cloudbroker/lb/backend_server_delete.go | 2 +- pkg/cloudbroker/lb/backend_server_update.go | 2 +- pkg/cloudbroker/lb/backend_update.go | 2 +- pkg/cloudbroker/lb/config_reset.go | 2 +- pkg/cloudbroker/lb/create.go | 2 +- pkg/cloudbroker/lb/delete.go | 2 +- pkg/cloudbroker/lb/disable.go | 2 +- pkg/cloudbroker/lb/enable.go | 2 +- pkg/cloudbroker/lb/filter.go | 4 +- pkg/cloudbroker/lb/frontend_bind.go | 2 +- pkg/cloudbroker/lb/frontend_bind_delete.go | 2 +- pkg/cloudbroker/lb/frontend_binding_update.go | 2 +- pkg/cloudbroker/lb/frontend_create.go | 2 +- pkg/cloudbroker/lb/frontend_delete.go | 2 +- pkg/cloudbroker/lb/get.go | 2 +- pkg/cloudbroker/lb/lb.go | 2 +- pkg/cloudbroker/lb/list.go | 2 +- pkg/cloudbroker/lb/list_deleted.go | 2 +- pkg/cloudbroker/lb/make_highly_available.go | 2 +- pkg/cloudbroker/lb/restart.go | 2 +- pkg/cloudbroker/lb/restore.go | 2 +- pkg/cloudbroker/lb/serialize.go | 2 +- pkg/cloudbroker/lb/start.go | 2 +- pkg/cloudbroker/lb/stop.go | 2 +- pkg/cloudbroker/lb/update.go | 2 +- pkg/cloudbroker/lb/update_sysctl_params.go | 2 +- pkg/cloudbroker/node.go | 2 +- pkg/cloudbroker/node/apply_ipmi_action.go | 2 +- pkg/cloudbroker/node/consumption.go | 2 +- pkg/cloudbroker/node/decommission.go | 2 +- pkg/cloudbroker/node/enable.go | 2 +- pkg/cloudbroker/node/enable_nodes.go | 2 +- pkg/cloudbroker/node/get.go | 2 +- pkg/cloudbroker/node/list.go | 2 +- pkg/cloudbroker/node/maintenance.go | 2 +- pkg/cloudbroker/node/models.go | 66 +++++++++++ pkg/cloudbroker/node/node.go | 2 +- pkg/cloudbroker/node/restrict.go | 2 +- pkg/cloudbroker/node/serialize.go | 2 +- pkg/cloudbroker/node/set_core_isolation.go | 2 +- pkg/cloudbroker/node/set_huge_pages.go | 2 +- pkg/cloudbroker/node/set_sriov_status.go | 2 +- pkg/cloudbroker/node/set_vfs_number.go | 6 +- pkg/cloudbroker/node/update.go | 2 +- pkg/cloudbroker/pcidevice.go | 2 +- pkg/cloudbroker/pcidevice/create.go | 2 +- pkg/cloudbroker/pcidevice/delete.go | 2 +- pkg/cloudbroker/pcidevice/disable.go | 2 +- pkg/cloudbroker/pcidevice/enable.go | 2 +- pkg/cloudbroker/pcidevice/list.go | 2 +- pkg/cloudbroker/pcidevice/pcidevice.go | 2 +- pkg/cloudbroker/pcidevice/serialize.go | 2 +- pkg/cloudbroker/prometheus.go | 2 +- .../prometheus/compute_cpu_load.go | 2 +- .../prometheus/compute_memory_available.go | 2 +- .../prometheus/compute_memory_unused.go | 2 +- .../prometheus/compute_memory_usable.go | 2 +- .../prometheus/compute_memory_usage.go | 2 +- .../prometheus/compute_memory_used.go | 2 +- .../prometheus/compute_read_bytes.go | 2 +- .../prometheus/compute_read_requests.go | 2 +- .../prometheus/compute_receive_bytes.go | 2 +- .../prometheus/compute_receive_packets.go | 2 +- .../prometheus/compute_transmit_bytes.go | 2 +- .../prometheus/compute_transmit_packets.go | 2 +- .../prometheus/compute_write_bytes.go | 2 +- .../prometheus/compute_write_requests.go | 2 +- pkg/cloudbroker/prometheus/prometheus.go | 2 +- pkg/cloudbroker/resmon.go | 2 +- pkg/cloudbroker/resmon/get_by_compute.go | 2 +- pkg/cloudbroker/resmon/get_by_computes.go | 2 +- pkg/cloudbroker/resmon/get_by_grid.go | 2 +- pkg/cloudbroker/resmon/get_by_stack.go | 2 +- pkg/cloudbroker/resmon/get_by_stacks.go | 2 +- pkg/cloudbroker/resmon/resmon.go | 2 +- pkg/cloudbroker/rg.go | 2 +- pkg/cloudbroker/rg/access_grant.go | 2 +- pkg/cloudbroker/rg/access_revoke.go | 2 +- pkg/cloudbroker/rg/affinity_group_computes.go | 2 +- pkg/cloudbroker/rg/affinity_groups_get.go | 2 +- pkg/cloudbroker/rg/affinity_groups_list.go | 2 +- pkg/cloudbroker/rg/audits.go | 2 +- pkg/cloudbroker/rg/create.go | 2 +- pkg/cloudbroker/rg/delete.go | 2 +- pkg/cloudbroker/rg/disable.go | 2 +- pkg/cloudbroker/rg/enable.go | 2 +- pkg/cloudbroker/rg/get.go | 2 +- .../rg/get_resource_consumption.go | 2 +- pkg/cloudbroker/rg/list.go | 2 +- pkg/cloudbroker/rg/list_computes.go | 2 +- pkg/cloudbroker/rg/list_deleted.go | 2 +- pkg/cloudbroker/rg/list_lb.go | 2 +- pkg/cloudbroker/rg/list_pfw.go | 2 +- pkg/cloudbroker/rg/list_vins.go | 2 +- pkg/cloudbroker/rg/mass_delete.go | 2 +- pkg/cloudbroker/rg/mass_disable.go | 2 +- pkg/cloudbroker/rg/mass_enable.go | 2 +- pkg/cloudbroker/rg/remove_def_net.go | 2 +- pkg/cloudbroker/rg/restore.go | 2 +- pkg/cloudbroker/rg/rg.go | 2 +- pkg/cloudbroker/rg/serialize.go | 2 +- .../rg/set_cpu_allocation_parameter.go | 2 +- .../rg/set_cpu_allocation_ratio.go | 2 +- pkg/cloudbroker/rg/set_def_net.go | 2 +- pkg/cloudbroker/rg/update.go | 2 +- pkg/cloudbroker/rg/update_compute_features.go | 2 +- pkg/cloudbroker/rg/update_resource_types.go | 2 +- pkg/cloudbroker/rg/usage.go | 2 +- pkg/cloudbroker/sep.go | 2 +- pkg/cloudbroker/sep/access_grant.go | 2 +- pkg/cloudbroker/sep/access_grant_to_pool.go | 2 +- pkg/cloudbroker/sep/access_revoke.go | 2 +- pkg/cloudbroker/sep/access_revoke_to_pool.go | 2 +- pkg/cloudbroker/sep/add_consumer_nodes.go | 2 +- pkg/cloudbroker/sep/add_pool.go | 2 +- pkg/cloudbroker/sep/add_provider_nodes.go | 2 +- pkg/cloudbroker/sep/config_field_edit.go | 2 +- pkg/cloudbroker/sep/config_insert.go | 2 +- pkg/cloudbroker/sep/config_validate.go | 2 +- pkg/cloudbroker/sep/consumption.go | 2 +- pkg/cloudbroker/sep/create.go | 2 +- pkg/cloudbroker/sep/decommission.go | 2 +- pkg/cloudbroker/sep/del_consumer_nodes.go | 2 +- pkg/cloudbroker/sep/del_pool.go | 2 +- pkg/cloudbroker/sep/delete.go | 2 +- pkg/cloudbroker/sep/disable.go | 2 +- pkg/cloudbroker/sep/disk_list.go | 2 +- pkg/cloudbroker/sep/enable.go | 2 +- pkg/cloudbroker/sep/get.go | 2 +- pkg/cloudbroker/sep/get_config.go | 2 +- pkg/cloudbroker/sep/get_pool.go | 2 +- pkg/cloudbroker/sep/list.go | 2 +- pkg/cloudbroker/sep/models.go | 11 +- pkg/cloudbroker/sep/sep.go | 2 +- pkg/cloudbroker/sep/serialize.go | 2 +- pkg/cloudbroker/sep/shared_lock_start.go | 2 +- pkg/cloudbroker/sep/shared_lock_stop.go | 2 +- pkg/cloudbroker/sep/update_capacity_limit.go | 38 ------- pkg/cloudbroker/stack.go | 2 +- pkg/cloudbroker/stack/get.go | 2 +- .../stack/get_logical_cores_count.go | 2 +- pkg/cloudbroker/stack/list.go | 2 +- .../stack/set_cpu_allocation_ratio.go | 2 +- .../stack/set_mem_allocation_ratio.go | 2 +- pkg/cloudbroker/stack/stack.go | 2 +- pkg/cloudbroker/tasks.go | 2 +- pkg/cloudbroker/tasks/get.go | 2 +- pkg/cloudbroker/tasks/list.go | 2 +- pkg/cloudbroker/tasks/tasks.go | 2 +- pkg/cloudbroker/user.go | 2 +- pkg/cloudbroker/user/api_list.go | 2 +- pkg/cloudbroker/user/apiaccess_join.go | 2 +- pkg/cloudbroker/user/apiaccess_leave.go | 2 +- pkg/cloudbroker/user/apiaccess_list.go | 2 +- pkg/cloudbroker/user/create.go | 2 +- pkg/cloudbroker/user/delete.go | 2 +- pkg/cloudbroker/user/delete_by_guid.go | 2 +- pkg/cloudbroker/user/delete_users.go | 2 +- pkg/cloudbroker/user/get.go | 2 +- .../user/get_matching_usernames.go | 2 +- pkg/cloudbroker/user/list.go | 2 +- pkg/cloudbroker/user/user.go | 2 +- pkg/cloudbroker/vfpool.go | 2 +- pkg/cloudbroker/vfpool/create.go | 2 +- pkg/cloudbroker/vfpool/delete.go | 2 +- pkg/cloudbroker/vfpool/disable.go | 2 +- pkg/cloudbroker/vfpool/enable.go | 2 +- pkg/cloudbroker/vfpool/get.go | 2 +- pkg/cloudbroker/vfpool/list.go | 2 +- pkg/cloudbroker/vfpool/serialize.go | 2 +- pkg/cloudbroker/vfpool/update.go | 2 +- pkg/cloudbroker/vfpool/vfpool.go | 2 +- pkg/cloudbroker/vgpu.go | 2 +- pkg/cloudbroker/vgpu/allocate.go | 2 +- pkg/cloudbroker/vgpu/create.go | 2 +- pkg/cloudbroker/vgpu/deallocate.go | 2 +- pkg/cloudbroker/vgpu/destroy.go | 2 +- pkg/cloudbroker/vgpu/list.go | 6 +- pkg/cloudbroker/vgpu/serialize.go | 2 +- pkg/cloudbroker/vgpu/vgpu.go | 2 +- pkg/cloudbroker/vins.go | 2 +- pkg/cloudbroker/vins/audits.go | 2 +- pkg/cloudbroker/vins/create_in_account.go | 2 +- pkg/cloudbroker/vins/create_in_rg.go | 2 +- pkg/cloudbroker/vins/default_qos_update.go | 2 +- pkg/cloudbroker/vins/delete.go | 2 +- pkg/cloudbroker/vins/disable.go | 2 +- pkg/cloudbroker/vins/dns_apply.go | 2 +- pkg/cloudbroker/vins/enable.go | 2 +- pkg/cloudbroker/vins/extnet_connect.go | 2 +- pkg/cloudbroker/vins/extnet_disconnect.go | 2 +- pkg/cloudbroker/vins/extnet_list.go | 2 +- pkg/cloudbroker/vins/get.go | 2 +- pkg/cloudbroker/vins/ip_list.go | 2 +- pkg/cloudbroker/vins/ip_release.go | 2 +- pkg/cloudbroker/vins/ip_reserve.go | 2 +- pkg/cloudbroker/vins/list.go | 2 +- pkg/cloudbroker/vins/list_deleted.go | 2 +- pkg/cloudbroker/vins/mass_delete.go | 2 +- pkg/cloudbroker/vins/mass_disable.go | 2 +- pkg/cloudbroker/vins/mass_enable.go | 2 +- pkg/cloudbroker/vins/models.go | 16 +-- pkg/cloudbroker/vins/nat_rule_add.go | 2 +- pkg/cloudbroker/vins/nat_rule_del.go | 2 +- pkg/cloudbroker/vins/nat_rule_list.go | 2 +- pkg/cloudbroker/vins/net_qos.go | 2 +- pkg/cloudbroker/vins/restore.go | 2 +- pkg/cloudbroker/vins/serialize.go | 2 +- .../vins/static_route_access_grant.go | 2 +- .../vins/static_route_access_revoke.go | 2 +- pkg/cloudbroker/vins/static_route_add.go | 6 +- pkg/cloudbroker/vins/static_route_del.go | 2 +- pkg/cloudbroker/vins/static_route_list.go | 2 +- pkg/cloudbroker/vins/vins.go | 2 +- pkg/cloudbroker/vins/vnfdev_redeploy.go | 2 +- pkg/cloudbroker/vins/vnfdev_reset.go | 2 +- pkg/cloudbroker/vins/vnfdev_restart.go | 2 +- pkg/cloudbroker/vins/vnfdev_start.go | 2 +- pkg/cloudbroker/vins/vnfdev_stop.go | 2 +- universal-client.go | 6 +- 931 files changed, 1444 insertions(+), 1130 deletions(-) create mode 100644 pkg/cloudapi/extnet/get_reserved_ip.go create mode 100644 pkg/cloudbroker/extnet/add_reserved_ip.go create mode 100644 pkg/cloudbroker/extnet/del_reserved_ip.go create mode 100644 pkg/cloudbroker/extnet/get_reserved_ip.go delete mode 100644 pkg/cloudbroker/sep/update_capacity_limit.go diff --git a/README.md b/README.md index 82a94d8..1929d89 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ Dynamix SDK - это библиотека, написанная на языке ## Версии - - Версия 9.0.х Decort-SDK соответствует 4.1.0 версии платформы + - Версия 9.0.х Dynamix-SDK соответствует 4.1.0 версии платформы + - Версия 10.0.х Dynamix-SDK соответствует 4.2.0 версии платформы ## Оглавление @@ -74,7 +75,7 @@ Dynamix SDK - это библиотека, написанная на языке Выполните команду в терминале: ```bash -go get -u repository.basistech.ru/BASIS/dynamix-golang-sdk +go get -u repository.basistech.ru/BASIS/dynamix-golang-sdk/v10 ``` ## Список API @@ -172,7 +173,7 @@ go get -u repository.basistech.ru/BASIS/dynamix-golang-sdk ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main(){ @@ -197,7 +198,7 @@ func main(){ ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main() { @@ -242,8 +243,8 @@ sslSkipVerify: false package main import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -420,9 +421,9 @@ type CreateRequest struct { package main import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudapi/kvmx86" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/kvmx86" ) func main() { @@ -535,9 +536,9 @@ import ( "log" "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudapi/kvmx86" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/kvmx86" ) func main() { @@ -585,9 +586,9 @@ import ( "log" "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudapi/account" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/account" ) func main() { @@ -765,9 +766,9 @@ import ( "context" "log" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudbroker/compute" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/compute" ) func main() { @@ -823,9 +824,9 @@ import ( "log" "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudapi/bservice" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/bservice" ) func main() { @@ -878,10 +879,10 @@ import ( "log" "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudapi/tasks" - tasks_cb "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudbroker/tasks" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/tasks" + tasks_cb "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/tasks" ) func main() { @@ -961,7 +962,7 @@ func main() { ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main(){ @@ -985,7 +986,7 @@ func main(){ ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main() { @@ -1026,8 +1027,8 @@ sslSkipVerify: true package main import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1054,8 +1055,8 @@ package main import ( "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1137,7 +1138,7 @@ func main() { ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main(){ @@ -1165,7 +1166,7 @@ func main(){ ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main() { @@ -1182,7 +1183,7 @@ func main() { ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main() { @@ -1248,8 +1249,8 @@ func main() { package main import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1282,8 +1283,8 @@ package main import ( "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1323,8 +1324,8 @@ package main import ( "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1362,8 +1363,8 @@ package main import ( "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1416,11 +1417,11 @@ import ( "log" "os" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/internal/constants" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/internal/validators" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/pkg/cloudbroker/kvmx86" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/constants" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/kvmx86" ) func main() { @@ -1482,7 +1483,7 @@ func main() { ```go import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" ) func main(){ @@ -1515,8 +1516,8 @@ func main(){ package main import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { @@ -1547,8 +1548,8 @@ package main import ( "fmt" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/config" - decort "repository.basistech.ru/BASIS/dynamix-golang-sdk" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + decort "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10" ) func main() { diff --git a/client.go b/client.go index 94a0f79..4a97953 100644 --- a/client.go +++ b/client.go @@ -16,11 +16,11 @@ import ( "time" "github.com/google/go-querystring/query" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/constants" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/constants" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker" ) // DecortClient is HTTP-client for platform diff --git a/client_bvs.go b/client_bvs.go index b5ebfcf..bbb14a5 100644 --- a/client_bvs.go +++ b/client_bvs.go @@ -14,10 +14,10 @@ import ( "time" "github.com/google/go-querystring/query" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/constants" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/constants" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker" ) // BVSDecortClient is HTTP-client for platform diff --git a/config/config.go b/config/config.go index f51d1bd..da39fa9 100644 --- a/config/config.go +++ b/config/config.go @@ -6,7 +6,7 @@ import ( "time" "gopkg.in/yaml.v3" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // Configuration for creating request to platform diff --git a/config/config_bvs.go b/config/config_bvs.go index 482d3c3..6c50135 100644 --- a/config/config_bvs.go +++ b/config/config_bvs.go @@ -6,8 +6,8 @@ import ( "time" "gopkg.in/yaml.v3" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type BVSConfig struct { diff --git a/config/legacy-config.go b/config/legacy-config.go index 64eb9d6..77df19b 100644 --- a/config/legacy-config.go +++ b/config/legacy-config.go @@ -6,7 +6,7 @@ import ( "time" "gopkg.in/yaml.v3" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // Legacy client configuration diff --git a/go.mod b/go.mod index 40fd282..c1da83a 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,10 @@ -module repository.basistech.ru/BASIS/dynamix-golang-sdk/v9 +module repository.basistech.ru/BASIS/dynamix-golang-sdk/v10 go 1.20 require ( github.com/go-playground/validator/v10 v10.11.2 github.com/google/go-querystring v1.1.0 - github.com/joho/godotenv v1.5.1 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index a63c3b7..52f813c 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,6 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= -github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= diff --git a/internal/validators/custom.go b/internal/validators/custom.go index f3a3992..678fcb8 100644 --- a/internal/validators/custom.go +++ b/internal/validators/custom.go @@ -9,8 +9,8 @@ import ( "strings" "github.com/go-playground/validator/v10" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/multierror" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/multierror" ) // computeDriverValidator is used to validate Driver field in kvmx86 create. @@ -374,11 +374,25 @@ func urlValidartor(fl validator.FieldLevel) bool { func chipsetValidator(fe validator.FieldLevel) bool { fieldValue := fe.Field().String() - fieldValue = strings.ToLower(fieldValue) return IsInSlice(fieldValue, chipsetValues) } +func preferredCPUValidator(fe validator.FieldLevel) bool { + fieldSlice, ok := fe.Field().Interface().([]int64) + if !ok { + return false + } + + for _, value := range fieldSlice { + if value < -1 { + return false + } + } + + return true +} + // ValidateRAM checks if request contains RAM value that is positive integer divisible by divisibility passed. // It is recommended to pass constants.RAM_DIVISIBILITY as divisility arguement func ValidateRAM(r interfaces.RequestWithRAM, divisibility uint64) error { diff --git a/internal/validators/helper.go b/internal/validators/helper.go index 9b948e5..1282ab1 100644 --- a/internal/validators/helper.go +++ b/internal/validators/helper.go @@ -3,7 +3,7 @@ package validators import ( "errors" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/multierror" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/multierror" "github.com/go-playground/validator/v10" ) diff --git a/internal/validators/messages.go b/internal/validators/messages.go index 72b4100..3ec169b 100644 --- a/internal/validators/messages.go +++ b/internal/validators/messages.go @@ -94,6 +94,9 @@ func errorMessage(fe validator.FieldError) string { case "mtu": return fmt.Sprint(prefix, fe.Field(), "must be ", mtuMin, "-", mtuMax) + case "preferredCPU": + return fmt.Sprint(prefix, fe.Field(), "must be equal to or greater than", -1) + case "computex86NetType": return fmt.Sprintf("%s %s must be one of the following: %s", prefix, diff --git a/internal/validators/validator.go b/internal/validators/validator.go index 829eb95..49f295a 100644 --- a/internal/validators/validator.go +++ b/internal/validators/validator.go @@ -261,5 +261,10 @@ func registerAllValidators(validate *validator.Validate) error { return err } + err = validate.RegisterValidation("preferredCPU", preferredCPUValidator) + if err != nil { + return err + } + return nil } diff --git a/legacy-client.go b/legacy-client.go index 3ba3dd9..893a863 100644 --- a/legacy-client.go +++ b/legacy-client.go @@ -13,10 +13,10 @@ import ( "time" "github.com/google/go-querystring/query" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/constants" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/constants" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker" ) // LegacyDecortClient is Legacy HTTP-client for platform diff --git a/pkg/cloudapi/account.go b/pkg/cloudapi/account.go index 5b5a459..59ccff7 100644 --- a/pkg/cloudapi/account.go +++ b/pkg/cloudapi/account.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/account" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/account" ) // Accessing the Account method group diff --git a/pkg/cloudapi/account/account.go b/pkg/cloudapi/account/account.go index 0b54279..ff312fd 100644 --- a/pkg/cloudapi/account/account.go +++ b/pkg/cloudapi/account/account.go @@ -2,7 +2,7 @@ package account import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to account diff --git a/pkg/cloudapi/account/add_user.go b/pkg/cloudapi/account/add_user.go index 8c27da0..19b9825 100644 --- a/pkg/cloudapi/account/add_user.go +++ b/pkg/cloudapi/account/add_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddUserRequest struct to add permission to access account for a user diff --git a/pkg/cloudapi/account/audits.go b/pkg/cloudapi/account/audits.go index dd53d20..5fef1e9 100644 --- a/pkg/cloudapi/account/audits.go +++ b/pkg/cloudapi/account/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to give list of account audits diff --git a/pkg/cloudapi/account/create.go b/pkg/cloudapi/account/create.go index 9d74d1c..d39a9dc 100644 --- a/pkg/cloudapi/account/create.go +++ b/pkg/cloudapi/account/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for creating account diff --git a/pkg/cloudapi/account/delete.go b/pkg/cloudapi/account/delete.go index 7af2fe1..6e17aae 100644 --- a/pkg/cloudapi/account/delete.go +++ b/pkg/cloudapi/account/delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete account diff --git a/pkg/cloudapi/account/delete_user.go b/pkg/cloudapi/account/delete_user.go index 7121720..f04de7b 100644 --- a/pkg/cloudapi/account/delete_user.go +++ b/pkg/cloudapi/account/delete_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteUserRequest struct to revoke access to account diff --git a/pkg/cloudapi/account/disable_enable.go b/pkg/cloudapi/account/disable_enable.go index 24c9fd9..476f9f2 100644 --- a/pkg/cloudapi/account/disable_enable.go +++ b/pkg/cloudapi/account/disable_enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableEnableRequest struct to change status of account diff --git a/pkg/cloudapi/account/get.go b/pkg/cloudapi/account/get.go index 682fdb4..17e0a74 100644 --- a/pkg/cloudapi/account/get.go +++ b/pkg/cloudapi/account/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about account diff --git a/pkg/cloudapi/account/get_consumed_account_units.go b/pkg/cloudapi/account/get_consumed_account_units.go index 08093a1..eef44fb 100644 --- a/pkg/cloudapi/account/get_consumed_account_units.go +++ b/pkg/cloudapi/account/get_consumed_account_units.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConsumedAccountUnitsRequest struct to calculate the currently consumed units for all cloudspaces and resource groups in the account diff --git a/pkg/cloudapi/account/get_consumed_cloud_units_by_type.go b/pkg/cloudapi/account/get_consumed_cloud_units_by_type.go index 18e63b1..55a559d 100644 --- a/pkg/cloudapi/account/get_consumed_cloud_units_by_type.go +++ b/pkg/cloudapi/account/get_consumed_cloud_units_by_type.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConsumedCloudUnitsByTypeRequest struct to calculate the currently consumed cloud units of the specified type for all cloudspaces and resource groups in the account diff --git a/pkg/cloudapi/account/get_reserved_account_units.go b/pkg/cloudapi/account/get_reserved_account_units.go index 4630f2a..05937d0 100644 --- a/pkg/cloudapi/account/get_reserved_account_units.go +++ b/pkg/cloudapi/account/get_reserved_account_units.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetReservedAccountUnitsRequest struct to calculate the reserved units for all cloudspaces and resource groups in the account diff --git a/pkg/cloudapi/account/get_resource_consumption.go b/pkg/cloudapi/account/get_resource_consumption.go index 8f47266..de23720 100644 --- a/pkg/cloudapi/account/get_resource_consumption.go +++ b/pkg/cloudapi/account/get_resource_consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetResourceConsumptionRequest struct to get resource consumption diff --git a/pkg/cloudapi/account/list.go b/pkg/cloudapi/account/list.go index f894dff..25254d3 100644 --- a/pkg/cloudapi/account/list.go +++ b/pkg/cloudapi/account/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of accounts diff --git a/pkg/cloudapi/account/list_computes.go b/pkg/cloudapi/account/list_computes.go index f5c41f6..497e91e 100644 --- a/pkg/cloudapi/account/list_computes.go +++ b/pkg/cloudapi/account/list_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListComputesRequest struct to get a list of compute instances diff --git a/pkg/cloudapi/account/list_deleted.go b/pkg/cloudapi/account/list_deleted.go index b461d20..2854704 100644 --- a/pkg/cloudapi/account/list_deleted.go +++ b/pkg/cloudapi/account/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get a list of deleted accounts diff --git a/pkg/cloudapi/account/list_disks.go b/pkg/cloudapi/account/list_disks.go index 4c9d268..e1be28c 100644 --- a/pkg/cloudapi/account/list_disks.go +++ b/pkg/cloudapi/account/list_disks.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDisksRequest struct to get a list of deleted disks diff --git a/pkg/cloudapi/account/list_flipgroups.go b/pkg/cloudapi/account/list_flipgroups.go index 6c0afb3..d12c2f8 100644 --- a/pkg/cloudapi/account/list_flipgroups.go +++ b/pkg/cloudapi/account/list_flipgroups.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListFLIPGroupsRequest struct to get a list of FLIPGroups diff --git a/pkg/cloudapi/account/list_rg.go b/pkg/cloudapi/account/list_rg.go index 70545c3..c92398b 100644 --- a/pkg/cloudapi/account/list_rg.go +++ b/pkg/cloudapi/account/list_rg.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRGRequest struct to get a list of resource groups diff --git a/pkg/cloudapi/account/list_templates.go b/pkg/cloudapi/account/list_templates.go index cf84487..c676633 100644 --- a/pkg/cloudapi/account/list_templates.go +++ b/pkg/cloudapi/account/list_templates.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListTemplatesRequest struct to get a list of templates diff --git a/pkg/cloudapi/account/list_vins.go b/pkg/cloudapi/account/list_vins.go index 3f81842..8303a02 100644 --- a/pkg/cloudapi/account/list_vins.go +++ b/pkg/cloudapi/account/list_vins.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVINSRequest struct to get a list of VINS diff --git a/pkg/cloudapi/account/restore.go b/pkg/cloudapi/account/restore.go index 696e53f..fad6657 100644 --- a/pkg/cloudapi/account/restore.go +++ b/pkg/cloudapi/account/restore.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore a deleted account diff --git a/pkg/cloudapi/account/serialize.go b/pkg/cloudapi/account/serialize.go index 45b57dd..3e219f0 100644 --- a/pkg/cloudapi/account/serialize.go +++ b/pkg/cloudapi/account/serialize.go @@ -3,7 +3,7 @@ package account import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/account/update.go b/pkg/cloudapi/account/update.go index 74fbfb2..6c2ad70 100644 --- a/pkg/cloudapi/account/update.go +++ b/pkg/cloudapi/account/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update account diff --git a/pkg/cloudapi/account/update_user.go b/pkg/cloudapi/account/update_user.go index 8592832..386f932 100644 --- a/pkg/cloudapi/account/update_user.go +++ b/pkg/cloudapi/account/update_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateUserRequest struct to update user access rights diff --git a/pkg/cloudapi/audit.go b/pkg/cloudapi/audit.go index 19b437a..d371de7 100644 --- a/pkg/cloudapi/audit.go +++ b/pkg/cloudapi/audit.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/audit" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/audit" ) // Accessing the Stack method group diff --git a/pkg/cloudapi/audit/audit.go b/pkg/cloudapi/audit/audit.go index 81e0263..c099d42 100644 --- a/pkg/cloudapi/audit/audit.go +++ b/pkg/cloudapi/audit/audit.go @@ -1,6 +1,6 @@ package audit -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to audit type Audit struct { diff --git a/pkg/cloudapi/audit/get.go b/pkg/cloudapi/audit/get.go index 0e5487b..f09562f 100644 --- a/pkg/cloudapi/audit/get.go +++ b/pkg/cloudapi/audit/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about account diff --git a/pkg/cloudapi/bservice.go b/pkg/cloudapi/bservice.go index 2f15c7d..4631f8e 100644 --- a/pkg/cloudapi/bservice.go +++ b/pkg/cloudapi/bservice.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/bservice" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/bservice" // Accessing the BService method group func (ca *CloudAPI) BService() *bservice.BService { diff --git a/pkg/cloudapi/bservice/bservice.go b/pkg/cloudapi/bservice/bservice.go index 19e769d..8051532 100644 --- a/pkg/cloudapi/bservice/bservice.go +++ b/pkg/cloudapi/bservice/bservice.go @@ -1,7 +1,7 @@ // API Actor for managing Compute Group. This actor is a final API for endusers to manage Compute Group package bservice -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to bservice type BService struct { diff --git a/pkg/cloudapi/bservice/create.go b/pkg/cloudapi/bservice/create.go index a9bc6b5..79ef592 100644 --- a/pkg/cloudapi/bservice/create.go +++ b/pkg/cloudapi/bservice/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for BasicService diff --git a/pkg/cloudapi/bservice/delete.go b/pkg/cloudapi/bservice/delete.go index 4e5f8ea..e674278 100644 --- a/pkg/cloudapi/bservice/delete.go +++ b/pkg/cloudapi/bservice/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete basic service diff --git a/pkg/cloudapi/bservice/disable.go b/pkg/cloudapi/bservice/disable.go index c5b381b..0bac581 100644 --- a/pkg/cloudapi/bservice/disable.go +++ b/pkg/cloudapi/bservice/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct for disable service diff --git a/pkg/cloudapi/bservice/enable.go b/pkg/cloudapi/bservice/enable.go index 4ec6146..ce09efa 100644 --- a/pkg/cloudapi/bservice/enable.go +++ b/pkg/cloudapi/bservice/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to disable service diff --git a/pkg/cloudapi/bservice/get.go b/pkg/cloudapi/bservice/get.go index b339a99..ef5d7d3 100644 --- a/pkg/cloudapi/bservice/get.go +++ b/pkg/cloudapi/bservice/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about service diff --git a/pkg/cloudapi/bservice/group_add.go b/pkg/cloudapi/bservice/group_add.go index 84d92e6..2fde07b 100644 --- a/pkg/cloudapi/bservice/group_add.go +++ b/pkg/cloudapi/bservice/group_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupAddRequest struct to create new compute group within BasicService diff --git a/pkg/cloudapi/bservice/group_compute_remove.go b/pkg/cloudapi/bservice/group_compute_remove.go index cfd492e..032925f 100644 --- a/pkg/cloudapi/bservice/group_compute_remove.go +++ b/pkg/cloudapi/bservice/group_compute_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupComputeRemoveRequest struct to remove group compute diff --git a/pkg/cloudapi/bservice/group_get.go b/pkg/cloudapi/bservice/group_get.go index d5d140a..973537c 100644 --- a/pkg/cloudapi/bservice/group_get.go +++ b/pkg/cloudapi/bservice/group_get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupGetRequest struct to get detailed information about Compute Group diff --git a/pkg/cloudapi/bservice/group_parent_add.go b/pkg/cloudapi/bservice/group_parent_add.go index e701667..bad33b7 100644 --- a/pkg/cloudapi/bservice/group_parent_add.go +++ b/pkg/cloudapi/bservice/group_parent_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupParentAddRequest struct to add parent Compute Group relation to the specified Compute Group diff --git a/pkg/cloudapi/bservice/group_parent_remove.go b/pkg/cloudapi/bservice/group_parent_remove.go index 92ef1c3..5134646 100644 --- a/pkg/cloudapi/bservice/group_parent_remove.go +++ b/pkg/cloudapi/bservice/group_parent_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupParentRemoveRequest struct to remove parent Compute Group diff --git a/pkg/cloudapi/bservice/group_remove.go b/pkg/cloudapi/bservice/group_remove.go index 9349be4..0d311c0 100644 --- a/pkg/cloudapi/bservice/group_remove.go +++ b/pkg/cloudapi/bservice/group_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupRemoveRequest struct for destroy the specified Compute Group diff --git a/pkg/cloudapi/bservice/group_resize.go b/pkg/cloudapi/bservice/group_resize.go index dd5839e..69dc1ab 100644 --- a/pkg/cloudapi/bservice/group_resize.go +++ b/pkg/cloudapi/bservice/group_resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupResizeRequest struct to resize the group diff --git a/pkg/cloudapi/bservice/group_start.go b/pkg/cloudapi/bservice/group_start.go index 7005fea..a96d8c7 100644 --- a/pkg/cloudapi/bservice/group_start.go +++ b/pkg/cloudapi/bservice/group_start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupStartRequest struct to start the specified Compute Group diff --git a/pkg/cloudapi/bservice/group_stop.go b/pkg/cloudapi/bservice/group_stop.go index e4eaebb..9c05602 100644 --- a/pkg/cloudapi/bservice/group_stop.go +++ b/pkg/cloudapi/bservice/group_stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupStopRequest struct to stop the specified Compute Group diff --git a/pkg/cloudapi/bservice/group_update.go b/pkg/cloudapi/bservice/group_update.go index db7809f..902f4ab 100644 --- a/pkg/cloudapi/bservice/group_update.go +++ b/pkg/cloudapi/bservice/group_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupUpdateRequest struct to update existing Compute group diff --git a/pkg/cloudapi/bservice/group_update_extnet.go b/pkg/cloudapi/bservice/group_update_extnet.go index c241847..74d2f6a 100644 --- a/pkg/cloudapi/bservice/group_update_extnet.go +++ b/pkg/cloudapi/bservice/group_update_extnet.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupUpdateExtNetRequest struct to update External Network settings diff --git a/pkg/cloudapi/bservice/group_update_vins.go b/pkg/cloudapi/bservice/group_update_vins.go index b329191..a3170a1 100644 --- a/pkg/cloudapi/bservice/group_update_vins.go +++ b/pkg/cloudapi/bservice/group_update_vins.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GroupUpdateVINSRequest struct to update VINS settings diff --git a/pkg/cloudapi/bservice/list.go b/pkg/cloudapi/bservice/list.go index 97e61a6..ef4ea02 100644 --- a/pkg/cloudapi/bservice/list.go +++ b/pkg/cloudapi/bservice/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of BasicService instances diff --git a/pkg/cloudapi/bservice/list_deleted.go b/pkg/cloudapi/bservice/list_deleted.go index d0ad3a9..21dc33a 100644 --- a/pkg/cloudapi/bservice/list_deleted.go +++ b/pkg/cloudapi/bservice/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted BasicService instances diff --git a/pkg/cloudapi/bservice/restore.go b/pkg/cloudapi/bservice/restore.go index fe350e3..da63a58 100644 --- a/pkg/cloudapi/bservice/restore.go +++ b/pkg/cloudapi/bservice/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore BasicService instance diff --git a/pkg/cloudapi/bservice/serialize.go b/pkg/cloudapi/bservice/serialize.go index 840249d..7f5afe9 100644 --- a/pkg/cloudapi/bservice/serialize.go +++ b/pkg/cloudapi/bservice/serialize.go @@ -3,7 +3,7 @@ package bservice import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/bservice/snapshot_create.go b/pkg/cloudapi/bservice/snapshot_create.go index 2c867c5..bb3c2a7 100644 --- a/pkg/cloudapi/bservice/snapshot_create.go +++ b/pkg/cloudapi/bservice/snapshot_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotCreateRequest struct to create snapshot diff --git a/pkg/cloudapi/bservice/snapshot_delete.go b/pkg/cloudapi/bservice/snapshot_delete.go index 5c3dcca..6f5e2ab 100644 --- a/pkg/cloudapi/bservice/snapshot_delete.go +++ b/pkg/cloudapi/bservice/snapshot_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotDeleteRequest struct to delete snapshot diff --git a/pkg/cloudapi/bservice/snapshot_list.go b/pkg/cloudapi/bservice/snapshot_list.go index 86ea387..de4a7e9 100644 --- a/pkg/cloudapi/bservice/snapshot_list.go +++ b/pkg/cloudapi/bservice/snapshot_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotListRequest struct to get list of existing snapshots diff --git a/pkg/cloudapi/bservice/snapshot_rollback.go b/pkg/cloudapi/bservice/snapshot_rollback.go index 85a6299..ecf22d1 100644 --- a/pkg/cloudapi/bservice/snapshot_rollback.go +++ b/pkg/cloudapi/bservice/snapshot_rollback.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotRollbackRequest struct to rollback snapshot diff --git a/pkg/cloudapi/bservice/start.go b/pkg/cloudapi/bservice/start.go index ed64952..60d7e7b 100644 --- a/pkg/cloudapi/bservice/start.go +++ b/pkg/cloudapi/bservice/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start service diff --git a/pkg/cloudapi/bservice/stop.go b/pkg/cloudapi/bservice/stop.go index ee41865..c39f5d7 100644 --- a/pkg/cloudapi/bservice/stop.go +++ b/pkg/cloudapi/bservice/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop service diff --git a/pkg/cloudapi/cloudapi.go b/pkg/cloudapi/cloudapi.go index d4a5a17..47c474d 100644 --- a/pkg/cloudapi/cloudapi.go +++ b/pkg/cloudapi/cloudapi.go @@ -2,7 +2,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to CloudAPI groups diff --git a/pkg/cloudapi/compute.go b/pkg/cloudapi/compute.go index cd507fe..2a1f594 100644 --- a/pkg/cloudapi/compute.go +++ b/pkg/cloudapi/compute.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/compute" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/compute" ) // Accessing the Compute method group diff --git a/pkg/cloudapi/compute/affinity_group_check_start.go b/pkg/cloudapi/compute/affinity_group_check_start.go index 0c454cf..bca628a 100644 --- a/pkg/cloudapi/compute/affinity_group_check_start.go +++ b/pkg/cloudapi/compute/affinity_group_check_start.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupCheckStartRequest struct to check all computes with current affinity label can start diff --git a/pkg/cloudapi/compute/affinity_label_remove.go b/pkg/cloudapi/compute/affinity_label_remove.go index e6ca1d1..8cca7ea 100644 --- a/pkg/cloudapi/compute/affinity_label_remove.go +++ b/pkg/cloudapi/compute/affinity_label_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityLabelRemoveRequest struct to clear affinity label for compute diff --git a/pkg/cloudapi/compute/affinity_label_set.go b/pkg/cloudapi/compute/affinity_label_set.go index 245fede..0692bc7 100644 --- a/pkg/cloudapi/compute/affinity_label_set.go +++ b/pkg/cloudapi/compute/affinity_label_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityLabelSetRequest struct to set affinity label for compute diff --git a/pkg/cloudapi/compute/affinity_relations.go b/pkg/cloudapi/compute/affinity_relations.go index 7c5cd59..c1e4a33 100644 --- a/pkg/cloudapi/compute/affinity_relations.go +++ b/pkg/cloudapi/compute/affinity_relations.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRelationsRequest struct to get dict of computes diff --git a/pkg/cloudapi/compute/affinity_rule_add.go b/pkg/cloudapi/compute/affinity_rule_add.go index 23aad64..115d964 100644 --- a/pkg/cloudapi/compute/affinity_rule_add.go +++ b/pkg/cloudapi/compute/affinity_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRuleAddRequest struct to add affinity rule diff --git a/pkg/cloudapi/compute/affinity_rule_remove.go b/pkg/cloudapi/compute/affinity_rule_remove.go index 7f680a6..c0dc88e 100644 --- a/pkg/cloudapi/compute/affinity_rule_remove.go +++ b/pkg/cloudapi/compute/affinity_rule_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRuleRemoveRequest struct to remove affinity rule diff --git a/pkg/cloudapi/compute/affinity_rules_clear.go b/pkg/cloudapi/compute/affinity_rules_clear.go index 9e0bc80..fa97033 100644 --- a/pkg/cloudapi/compute/affinity_rules_clear.go +++ b/pkg/cloudapi/compute/affinity_rules_clear.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRulesClearRequest struct to clear affinity rules diff --git a/pkg/cloudapi/compute/anti_affinity_rule_add.go b/pkg/cloudapi/compute/anti_affinity_rule_add.go index 582e67d..c35aff1 100644 --- a/pkg/cloudapi/compute/anti_affinity_rule_add.go +++ b/pkg/cloudapi/compute/anti_affinity_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRuleAddRequest struct to add anti affinity rule diff --git a/pkg/cloudapi/compute/anti_affinity_rule_remove.go b/pkg/cloudapi/compute/anti_affinity_rule_remove.go index b1f2551..06ea137 100644 --- a/pkg/cloudapi/compute/anti_affinity_rule_remove.go +++ b/pkg/cloudapi/compute/anti_affinity_rule_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRuleRemoveRequest struct to remove anti affinity rule diff --git a/pkg/cloudapi/compute/anti_affinity_rules_clear.go b/pkg/cloudapi/compute/anti_affinity_rules_clear.go index 25dc85d..a9fed8a 100644 --- a/pkg/cloudapi/compute/anti_affinity_rules_clear.go +++ b/pkg/cloudapi/compute/anti_affinity_rules_clear.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRulesClearRequest struct to clear anti affinity rules diff --git a/pkg/cloudapi/compute/attach_gpu.go b/pkg/cloudapi/compute/attach_gpu.go index 880bbe6..14a2be9 100644 --- a/pkg/cloudapi/compute/attach_gpu.go +++ b/pkg/cloudapi/compute/attach_gpu.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AttachGPURequest struct to attach GPU for compute diff --git a/pkg/cloudapi/compute/attach_pci_device.go b/pkg/cloudapi/compute/attach_pci_device.go index 8695068..83dc07e 100644 --- a/pkg/cloudapi/compute/attach_pci_device.go +++ b/pkg/cloudapi/compute/attach_pci_device.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AttachPCIDeviceRequest struct to attach PCI device diff --git a/pkg/cloudapi/compute/audits.go b/pkg/cloudapi/compute/audits.go index 6029d89..c5672f0 100644 --- a/pkg/cloudapi/compute/audits.go +++ b/pkg/cloudapi/compute/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audit records diff --git a/pkg/cloudapi/compute/boot_disk_set.go b/pkg/cloudapi/compute/boot_disk_set.go index ee14d57..408f281 100644 --- a/pkg/cloudapi/compute/boot_disk_set.go +++ b/pkg/cloudapi/compute/boot_disk_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootDiskSetRequest struct to set boot disk for compute diff --git a/pkg/cloudapi/compute/boot_order_get.go b/pkg/cloudapi/compute/boot_order_get.go index 9526356..be74ca1 100644 --- a/pkg/cloudapi/compute/boot_order_get.go +++ b/pkg/cloudapi/compute/boot_order_get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootOrderGetRequest struct to get boot order diff --git a/pkg/cloudapi/compute/boot_order_set.go b/pkg/cloudapi/compute/boot_order_set.go index cf8ec1c..5c62327 100644 --- a/pkg/cloudapi/compute/boot_order_set.go +++ b/pkg/cloudapi/compute/boot_order_set.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootOrderSetRequest struct to set boot order diff --git a/pkg/cloudapi/compute/cd_eject.go b/pkg/cloudapi/compute/cd_eject.go index fbc9c56..6962a2c 100644 --- a/pkg/cloudapi/compute/cd_eject.go +++ b/pkg/cloudapi/compute/cd_eject.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CDEjectRequest struct to eject CD image diff --git a/pkg/cloudapi/compute/cd_insert.go b/pkg/cloudapi/compute/cd_insert.go index ec942cd..1d6413f 100644 --- a/pkg/cloudapi/compute/cd_insert.go +++ b/pkg/cloudapi/compute/cd_insert.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CDInsertRequest struct to insert new CD image diff --git a/pkg/cloudapi/compute/change_ip.go b/pkg/cloudapi/compute/change_ip.go index dc771bc..2cde709 100644 --- a/pkg/cloudapi/compute/change_ip.go +++ b/pkg/cloudapi/compute/change_ip.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ChangeIPRequest struct to change IP for network diff --git a/pkg/cloudapi/compute/change_link_state.go b/pkg/cloudapi/compute/change_link_state.go index acdc668..e728380 100644 --- a/pkg/cloudapi/compute/change_link_state.go +++ b/pkg/cloudapi/compute/change_link_state.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ChangeLinkStateRequest struct to change link state diff --git a/pkg/cloudapi/compute/clone.go b/pkg/cloudapi/compute/clone.go index f66b7f0..44c8799 100644 --- a/pkg/cloudapi/compute/clone.go +++ b/pkg/cloudapi/compute/clone.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CloneRequest struct to clone compute instance diff --git a/pkg/cloudapi/compute/compute.go b/pkg/cloudapi/compute/compute.go index 070bc72..7b2b65c 100644 --- a/pkg/cloudapi/compute/compute.go +++ b/pkg/cloudapi/compute/compute.go @@ -2,7 +2,7 @@ package compute import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to compute diff --git a/pkg/cloudapi/compute/create_template.go b/pkg/cloudapi/compute/create_template.go index 0a28dfb..77ff3c3 100644 --- a/pkg/cloudapi/compute/create_template.go +++ b/pkg/cloudapi/compute/create_template.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateTemplateRequest struct to create template diff --git a/pkg/cloudapi/compute/create_template_from_blank.go b/pkg/cloudapi/compute/create_template_from_blank.go index d29788b..0d50ead 100644 --- a/pkg/cloudapi/compute/create_template_from_blank.go +++ b/pkg/cloudapi/compute/create_template_from_blank.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateTemplateFromBlankRequest struct to create template from boot disk of current compute diff --git a/pkg/cloudapi/compute/delete.go b/pkg/cloudapi/compute/delete.go index 5d5e67a..cf61054 100644 --- a/pkg/cloudapi/compute/delete.go +++ b/pkg/cloudapi/compute/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete compute diff --git a/pkg/cloudapi/compute/delete_custom_fields.go b/pkg/cloudapi/compute/delete_custom_fields.go index 2666285..c17bf3e 100644 --- a/pkg/cloudapi/compute/delete_custom_fields.go +++ b/pkg/cloudapi/compute/delete_custom_fields.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteCustomFieldsRequest struct to delete compute's custom fields diff --git a/pkg/cloudapi/compute/detach_gpu.go b/pkg/cloudapi/compute/detach_gpu.go index 4006c4d..23d9c6a 100644 --- a/pkg/cloudapi/compute/detach_gpu.go +++ b/pkg/cloudapi/compute/detach_gpu.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DetachGPURequest struct to detach vgpu for compute diff --git a/pkg/cloudapi/compute/detach_pci_device.go b/pkg/cloudapi/compute/detach_pci_device.go index 4fc6dc0..5c97dd1 100644 --- a/pkg/cloudapi/compute/detach_pci_device.go +++ b/pkg/cloudapi/compute/detach_pci_device.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DetachPCIDeviceRequest struct to detach PCI device diff --git a/pkg/cloudapi/compute/disable.go b/pkg/cloudapi/compute/disable.go index 50db29a..a916757 100644 --- a/pkg/cloudapi/compute/disable.go +++ b/pkg/cloudapi/compute/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable compute diff --git a/pkg/cloudapi/compute/disk_add.go b/pkg/cloudapi/compute/disk_add.go index 6f5c3fe..6d1adbf 100644 --- a/pkg/cloudapi/compute/disk_add.go +++ b/pkg/cloudapi/compute/disk_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskAddRequest struct to create and attach disk to compute diff --git a/pkg/cloudapi/compute/disk_attach.go b/pkg/cloudapi/compute/disk_attach.go index 74766b6..863c4b2 100644 --- a/pkg/cloudapi/compute/disk_attach.go +++ b/pkg/cloudapi/compute/disk_attach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskAttachRequest struct to attach disk to compute diff --git a/pkg/cloudapi/compute/disk_del.go b/pkg/cloudapi/compute/disk_del.go index a0793c7..5aad981 100644 --- a/pkg/cloudapi/compute/disk_del.go +++ b/pkg/cloudapi/compute/disk_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskDelRequest struct to detach and delete disk from compute diff --git a/pkg/cloudapi/compute/disk_detach.go b/pkg/cloudapi/compute/disk_detach.go index 410a5df..b5d46b4 100644 --- a/pkg/cloudapi/compute/disk_detach.go +++ b/pkg/cloudapi/compute/disk_detach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskDetachRequest struct to detach disk from compute diff --git a/pkg/cloudapi/compute/disk_migrate.go b/pkg/cloudapi/compute/disk_migrate.go index b2ef322..9677d02 100644 --- a/pkg/cloudapi/compute/disk_migrate.go +++ b/pkg/cloudapi/compute/disk_migrate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskMigrateRequest struct to migrate compute's disk to target disk diff --git a/pkg/cloudapi/compute/disk_qos.go b/pkg/cloudapi/compute/disk_qos.go index 79b609e..31c1309 100644 --- a/pkg/cloudapi/compute/disk_qos.go +++ b/pkg/cloudapi/compute/disk_qos.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskQOSRequest struct to change QoS of the disk diff --git a/pkg/cloudapi/compute/disk_resize.go b/pkg/cloudapi/compute/disk_resize.go index 769e48a..02918e2 100644 --- a/pkg/cloudapi/compute/disk_resize.go +++ b/pkg/cloudapi/compute/disk_resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskResizeRequest struct to change disk size diff --git a/pkg/cloudapi/compute/disk_switch_to_replication.go b/pkg/cloudapi/compute/disk_switch_to_replication.go index 9355f47..c074217 100644 --- a/pkg/cloudapi/compute/disk_switch_to_replication.go +++ b/pkg/cloudapi/compute/disk_switch_to_replication.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskSwitchToReplicationRequest struct to switch disk to it's replication diff --git a/pkg/cloudapi/compute/enable.go b/pkg/cloudapi/compute/enable.go index f4db82f..a443521 100644 --- a/pkg/cloudapi/compute/enable.go +++ b/pkg/cloudapi/compute/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable compute diff --git a/pkg/cloudapi/compute/filter.go b/pkg/cloudapi/compute/filter.go index 6dec2c4..900dd94 100644 --- a/pkg/cloudapi/compute/filter.go +++ b/pkg/cloudapi/compute/filter.go @@ -3,9 +3,9 @@ package compute import ( "context" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/k8s" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/lb" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/lb" ) // FilterByID returns ListComputes with specified ID. diff --git a/pkg/cloudapi/compute/get.go b/pkg/cloudapi/compute/get.go index b6cf8a2..6c4d550 100644 --- a/pkg/cloudapi/compute/get.go +++ b/pkg/cloudapi/compute/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about compute diff --git a/pkg/cloudapi/compute/get_audits.go b/pkg/cloudapi/compute/get_audits.go index 8be0bfa..d853429 100644 --- a/pkg/cloudapi/compute/get_audits.go +++ b/pkg/cloudapi/compute/get_audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetAuditsRequest struct to get compute audits diff --git a/pkg/cloudapi/compute/get_console_url.go b/pkg/cloudapi/compute/get_console_url.go index 4a81a1f..25acb40 100644 --- a/pkg/cloudapi/compute/get_console_url.go +++ b/pkg/cloudapi/compute/get_console_url.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConsoleURLRequest struct to get console URL diff --git a/pkg/cloudapi/compute/get_custom_fields.go b/pkg/cloudapi/compute/get_custom_fields.go index 4ceb1f6..63c06fe 100644 --- a/pkg/cloudapi/compute/get_custom_fields.go +++ b/pkg/cloudapi/compute/get_custom_fields.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetCustomFieldsRequest struct to get Compute's customFields diff --git a/pkg/cloudapi/compute/get_log.go b/pkg/cloudapi/compute/get_log.go index a97d00d..3e2243c 100644 --- a/pkg/cloudapi/compute/get_log.go +++ b/pkg/cloudapi/compute/get_log.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetLogRequest struct to get compute logs @@ -42,7 +42,7 @@ func (c Compute) GetLogGet(ctx context.Context, req GetLogRequest) (string, erro return "", validators.ValidationErrors(validators.GetErrors(err)) } - url := "/cloudapi//compute/getLog" + url := "/cloudapi/compute/getLog" res, err := c.client.DecortApiCall(ctx, http.MethodGet, url, req) if err != nil { diff --git a/pkg/cloudapi/compute/list.go b/pkg/cloudapi/compute/list.go index 8d1f261..fdd231e 100644 --- a/pkg/cloudapi/compute/list.go +++ b/pkg/cloudapi/compute/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of available computes diff --git a/pkg/cloudapi/compute/list_deleted.go b/pkg/cloudapi/compute/list_deleted.go index fbae713..b73cf2a 100644 --- a/pkg/cloudapi/compute/list_deleted.go +++ b/pkg/cloudapi/compute/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get deleted computes list diff --git a/pkg/cloudapi/compute/list_pci_device.go b/pkg/cloudapi/compute/list_pci_device.go index 3fcfc4b..6995999 100644 --- a/pkg/cloudapi/compute/list_pci_device.go +++ b/pkg/cloudapi/compute/list_pci_device.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListPCIDeviceRequest struct to get list of PCI devices diff --git a/pkg/cloudapi/compute/list_vgpu.go b/pkg/cloudapi/compute/list_vgpu.go index 6a2458d..6914cd3 100644 --- a/pkg/cloudapi/compute/list_vgpu.go +++ b/pkg/cloudapi/compute/list_vgpu.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVGPURequest struct to get vGPU list diff --git a/pkg/cloudapi/compute/models.go b/pkg/cloudapi/compute/models.go index b51469d..0037ae7 100644 --- a/pkg/cloudapi/compute/models.go +++ b/pkg/cloudapi/compute/models.go @@ -299,6 +299,9 @@ type RecordCompute struct { // List anti affinity rules AntiAffinityRules ListRules `json:"antiAffinityRules"` + // Auto start when node restarted + AutoStart bool `json:"autoStart"` + // Architecture Architecture string `json:"arch"` @@ -425,6 +428,9 @@ type RecordCompute struct { // Pinned or not Pinned bool `json:"pinned"` + // PreferredCPU + PreferredCPU []int64 `json:"preferredCpu"` + // Number of RAM RAM uint64 `json:"ram"` @@ -476,14 +482,17 @@ type RecordCompute struct { // Userdata Userdata interface{} `json:"userdata"` - // vGPU list - VGPUs []ItemVGPU `json:"vgpus"` + // vGPU IDs + VGPUs []uint64 `json:"vgpus"` // Virtual image ID VirtualImageID uint64 `json:"virtualImageId"` // Virtual image name VirtualImageName string `json:"virtualImageName"` + + // VNC password + VNCPassword string `json:"vncPasswd"` } // Information about libvirt settings @@ -866,6 +875,9 @@ type ItemCompute struct { // List anti affinity rules AntiAffinityRules ListRules `json:"antiAffinityRules"` + // Auto start when node restarted + AutoStart bool `json:"autoStart"` + // Architecture Architecture string `json:"arch"` @@ -971,6 +983,9 @@ type ItemCompute struct { // Pinned or not Pinned bool `json:"pinned"` + // PreferredCPU + PreferredCPU []int64 `json:"preferredCpu"` + // Number of RAM RAM uint64 `json:"ram"` diff --git a/pkg/cloudapi/compute/move_to_rg.go b/pkg/cloudapi/compute/move_to_rg.go index 0cb5e40..aa4c39e 100644 --- a/pkg/cloudapi/compute/move_to_rg.go +++ b/pkg/cloudapi/compute/move_to_rg.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MoveToRGRequest struct to move compute to new resource group diff --git a/pkg/cloudapi/compute/net_attach.go b/pkg/cloudapi/compute/net_attach.go index d02d5ef..15704c4 100644 --- a/pkg/cloudapi/compute/net_attach.go +++ b/pkg/cloudapi/compute/net_attach.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetAttachRequest struct to attach network diff --git a/pkg/cloudapi/compute/net_detach.go b/pkg/cloudapi/compute/net_detach.go index 29af344..99a2611 100644 --- a/pkg/cloudapi/compute/net_detach.go +++ b/pkg/cloudapi/compute/net_detach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetDetachRequest struct to detach network from compute diff --git a/pkg/cloudapi/compute/pause.go b/pkg/cloudapi/compute/pause.go index 6634bf3..795145a 100644 --- a/pkg/cloudapi/compute/pause.go +++ b/pkg/cloudapi/compute/pause.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PauseRequest struct to pause compute diff --git a/pkg/cloudapi/compute/pfw_add.go b/pkg/cloudapi/compute/pfw_add.go index ee01c39..f5280fc 100644 --- a/pkg/cloudapi/compute/pfw_add.go +++ b/pkg/cloudapi/compute/pfw_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWAddRequest struct to add port forward rule diff --git a/pkg/cloudapi/compute/pfw_del.go b/pkg/cloudapi/compute/pfw_del.go index 0226a15..6c60179 100644 --- a/pkg/cloudapi/compute/pfw_del.go +++ b/pkg/cloudapi/compute/pfw_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWDelRequest struct to delete port forward rule diff --git a/pkg/cloudapi/compute/pfw_list.go b/pkg/cloudapi/compute/pfw_list.go index bb2191e..4dd91e2 100644 --- a/pkg/cloudapi/compute/pfw_list.go +++ b/pkg/cloudapi/compute/pfw_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWListRequest struct to get list of port forwards diff --git a/pkg/cloudapi/compute/pin_to_stack.go b/pkg/cloudapi/compute/pin_to_stack.go index 50f824e..5fda488 100644 --- a/pkg/cloudapi/compute/pin_to_stack.go +++ b/pkg/cloudapi/compute/pin_to_stack.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PinToStackRequest struct to pin compute to stack @@ -13,25 +13,30 @@ type PinToStackRequest struct { // ID of the compute instance // Required: true ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"` + + // Auto start when node restarted + // Required: false + // Default: false + AutoStart bool `url:"autoStart" json:"autoStart"` } // PinToStack pin compute to current stack -func (c Compute) PinToStack(ctx context.Context, req PinToStackRequest) (uint64, error) { +func (c Compute) PinToStack(ctx context.Context, req PinToStackRequest) (bool, error) { err := validators.ValidateRequest(req) if err != nil { - return 0, validators.ValidationErrors(validators.GetErrors(err)) + return false, validators.ValidationErrors(validators.GetErrors(err)) } url := "/cloudapi/compute/pinToStack" res, err := c.client.DecortApiCall(ctx, http.MethodPost, url, req) if err != nil { - return 0, err + return false, err } - result, err := strconv.ParseUint(string(res), 10, 64) + result, err := strconv.ParseBool(string(res)) if err != nil { - return 0, err + return false, err } return result, nil diff --git a/pkg/cloudapi/compute/power_cycle.go b/pkg/cloudapi/compute/power_cycle.go index c78d138..4cb9d61 100644 --- a/pkg/cloudapi/compute/power_cycle.go +++ b/pkg/cloudapi/compute/power_cycle.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PowerCycleRequest struct to force stop and start compute diff --git a/pkg/cloudapi/compute/reboot.go b/pkg/cloudapi/compute/reboot.go index 009c2f3..71c2e8d 100644 --- a/pkg/cloudapi/compute/reboot.go +++ b/pkg/cloudapi/compute/reboot.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RebootRequest struct to reboot compute diff --git a/pkg/cloudapi/compute/redeploy.go b/pkg/cloudapi/compute/redeploy.go index 0a5959c..28dcc8e 100644 --- a/pkg/cloudapi/compute/redeploy.go +++ b/pkg/cloudapi/compute/redeploy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RedeployRequest struct to redeploy diff --git a/pkg/cloudapi/compute/reset.go b/pkg/cloudapi/compute/reset.go index 9a13ca2..7cfff2b 100644 --- a/pkg/cloudapi/compute/reset.go +++ b/pkg/cloudapi/compute/reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResetRequest struct to reset compute diff --git a/pkg/cloudapi/compute/resize.go b/pkg/cloudapi/compute/resize.go index 9ae2709..7218460 100644 --- a/pkg/cloudapi/compute/resize.go +++ b/pkg/cloudapi/compute/resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResizeRequest struct to resize compute @@ -27,6 +27,10 @@ type ResizeRequest struct { // Force compute resize // Required: false Force bool `url:"force,omitempty" json:"force,omitempty"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudapi/compute/restore.go b/pkg/cloudapi/compute/restore.go index 0a87826..270eb34 100644 --- a/pkg/cloudapi/compute/restore.go +++ b/pkg/cloudapi/compute/restore.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore compute diff --git a/pkg/cloudapi/compute/resume.go b/pkg/cloudapi/compute/resume.go index 1781c68..00b14e8 100644 --- a/pkg/cloudapi/compute/resume.go +++ b/pkg/cloudapi/compute/resume.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResumeRequest struct to resume compute diff --git a/pkg/cloudapi/compute/serialize.go b/pkg/cloudapi/compute/serialize.go index 34e848a..95d4963 100644 --- a/pkg/cloudapi/compute/serialize.go +++ b/pkg/cloudapi/compute/serialize.go @@ -3,7 +3,7 @@ package compute import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/compute/set_custom_fields.go b/pkg/cloudapi/compute/set_custom_fields.go index 320c61f..fc11f8d 100644 --- a/pkg/cloudapi/compute/set_custom_fields.go +++ b/pkg/cloudapi/compute/set_custom_fields.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCustomFieldsRequest struct to set customFields values for the Compute diff --git a/pkg/cloudapi/compute/snapshot_create.go b/pkg/cloudapi/compute/snapshot_create.go index f1d69d2..286844f 100644 --- a/pkg/cloudapi/compute/snapshot_create.go +++ b/pkg/cloudapi/compute/snapshot_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotCreateRequest struct to create snapshot diff --git a/pkg/cloudapi/compute/snapshot_delete.go b/pkg/cloudapi/compute/snapshot_delete.go index 7f2b1e9..e6e0cc4 100644 --- a/pkg/cloudapi/compute/snapshot_delete.go +++ b/pkg/cloudapi/compute/snapshot_delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotDeleteRequest struct to delete snapshot diff --git a/pkg/cloudapi/compute/snapshot_list.go b/pkg/cloudapi/compute/snapshot_list.go index 21a999e..ee43548 100644 --- a/pkg/cloudapi/compute/snapshot_list.go +++ b/pkg/cloudapi/compute/snapshot_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotListRequest struct to get list snapshots diff --git a/pkg/cloudapi/compute/snapshot_rollback.go b/pkg/cloudapi/compute/snapshot_rollback.go index 78134dc..21eabd9 100644 --- a/pkg/cloudapi/compute/snapshot_rollback.go +++ b/pkg/cloudapi/compute/snapshot_rollback.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotRollbackRequest struct for rollback diff --git a/pkg/cloudapi/compute/snapshot_usage.go b/pkg/cloudapi/compute/snapshot_usage.go index f3f62a1..4b507a7 100644 --- a/pkg/cloudapi/compute/snapshot_usage.go +++ b/pkg/cloudapi/compute/snapshot_usage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotUsageRequest struct to get compute snapshot real size on storage diff --git a/pkg/cloudapi/compute/start.go b/pkg/cloudapi/compute/start.go index 46c6807..50ce8d8 100644 --- a/pkg/cloudapi/compute/start.go +++ b/pkg/cloudapi/compute/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start compute diff --git a/pkg/cloudapi/compute/stop.go b/pkg/cloudapi/compute/stop.go index 356859f..5f86f52 100644 --- a/pkg/cloudapi/compute/stop.go +++ b/pkg/cloudapi/compute/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop compute diff --git a/pkg/cloudapi/compute/tag_add.go b/pkg/cloudapi/compute/tag_add.go index e0e0761..74b1bd2 100644 --- a/pkg/cloudapi/compute/tag_add.go +++ b/pkg/cloudapi/compute/tag_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // TagAddRequest struct to add tag to compute diff --git a/pkg/cloudapi/compute/tag_remove.go b/pkg/cloudapi/compute/tag_remove.go index e6af8fb..b70c6fc 100644 --- a/pkg/cloudapi/compute/tag_remove.go +++ b/pkg/cloudapi/compute/tag_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // TagRemoveRequest struct to remove tag from compute diff --git a/pkg/cloudapi/compute/unpin_from_stack.go b/pkg/cloudapi/compute/unpin_from_stack.go index feb8f1f..a75aa09 100644 --- a/pkg/cloudapi/compute/unpin_from_stack.go +++ b/pkg/cloudapi/compute/unpin_from_stack.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UnpinFromStackRequest struct for unpin from stack diff --git a/pkg/cloudapi/compute/update.go b/pkg/cloudapi/compute/update.go index 744ee66..1d876d0 100644 --- a/pkg/cloudapi/compute/update.go +++ b/pkg/cloudapi/compute/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update compute @@ -43,6 +43,15 @@ type UpdateRequest struct { // Required: false // Default: false HPBacked bool `url:"hpBacked" json:"hpBacked"` + + // Auto start when node restarted + // Required: false + // Default: false + AutoStart bool `url:"autoStart" json:"autoStart"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // Update updates some properties of the compute diff --git a/pkg/cloudapi/compute/user_grant.go b/pkg/cloudapi/compute/user_grant.go index 56411c5..f7503f6 100644 --- a/pkg/cloudapi/compute/user_grant.go +++ b/pkg/cloudapi/compute/user_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserGrantRequest struct to grant access to compute diff --git a/pkg/cloudapi/compute/user_list.go b/pkg/cloudapi/compute/user_list.go index 7defb6f..0a7eaf4 100644 --- a/pkg/cloudapi/compute/user_list.go +++ b/pkg/cloudapi/compute/user_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserListRequest struct to get list of users for compute diff --git a/pkg/cloudapi/compute/user_revoke.go b/pkg/cloudapi/compute/user_revoke.go index 36d26f1..1bd569d 100644 --- a/pkg/cloudapi/compute/user_revoke.go +++ b/pkg/cloudapi/compute/user_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserRevokeRequest struct to revoke user access diff --git a/pkg/cloudapi/compute/user_update.go b/pkg/cloudapi/compute/user_update.go index f13e22c..e0de0be 100644 --- a/pkg/cloudapi/compute/user_update.go +++ b/pkg/cloudapi/compute/user_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserUpdateRequest struct to update user access diff --git a/pkg/cloudapi/disks.go b/pkg/cloudapi/disks.go index b5fa588..27f08a3 100644 --- a/pkg/cloudapi/disks.go +++ b/pkg/cloudapi/disks.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/disks" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/disks" ) // Accessing the Disks method group diff --git a/pkg/cloudapi/disks/create.go b/pkg/cloudapi/disks/create.go index 328be84..a03c1e5 100644 --- a/pkg/cloudapi/disks/create.go +++ b/pkg/cloudapi/disks/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create disk diff --git a/pkg/cloudapi/disks/delete.go b/pkg/cloudapi/disks/delete.go index dd2572f..6064186 100644 --- a/pkg/cloudapi/disks/delete.go +++ b/pkg/cloudapi/disks/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest to delete disk diff --git a/pkg/cloudapi/disks/delete_disks.go b/pkg/cloudapi/disks/delete_disks.go index edaf7d7..444dbcd 100644 --- a/pkg/cloudapi/disks/delete_disks.go +++ b/pkg/cloudapi/disks/delete_disks.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisksDeleteRequest struct for multiple disks diff --git a/pkg/cloudapi/disks/disks.go b/pkg/cloudapi/disks/disks.go index f025474..d49870e 100644 --- a/pkg/cloudapi/disks/disks.go +++ b/pkg/cloudapi/disks/disks.go @@ -2,7 +2,7 @@ package disks import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to disks diff --git a/pkg/cloudapi/disks/filter.go b/pkg/cloudapi/disks/filter.go index 4dd8e4c..219f0f2 100644 --- a/pkg/cloudapi/disks/filter.go +++ b/pkg/cloudapi/disks/filter.go @@ -4,9 +4,9 @@ import ( "context" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/k8s" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/lb" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/lb" ) // FilterByID returns ListDisks with specified ID. diff --git a/pkg/cloudapi/disks/from_platform_disk.go b/pkg/cloudapi/disks/from_platform_disk.go index baf9ec4..9d879f6 100644 --- a/pkg/cloudapi/disks/from_platform_disk.go +++ b/pkg/cloudapi/disks/from_platform_disk.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FromPlatformDiskRequest struct to create template from platform disk diff --git a/pkg/cloudapi/disks/get.go b/pkg/cloudapi/disks/get.go index afacad5..756b6e1 100644 --- a/pkg/cloudapi/disks/get.go +++ b/pkg/cloudapi/disks/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about disk diff --git a/pkg/cloudapi/disks/limitio.go b/pkg/cloudapi/disks/limitio.go index d85e485..b358b3e 100644 --- a/pkg/cloudapi/disks/limitio.go +++ b/pkg/cloudapi/disks/limitio.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // LimitIORequest struct for limit IO diff --git a/pkg/cloudapi/disks/list.go b/pkg/cloudapi/disks/list.go index 476f6f7..89e9caf 100644 --- a/pkg/cloudapi/disks/list.go +++ b/pkg/cloudapi/disks/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of disks diff --git a/pkg/cloudapi/disks/list_deleted.go b/pkg/cloudapi/disks/list_deleted.go index 729799a..e49ea7a 100644 --- a/pkg/cloudapi/disks/list_deleted.go +++ b/pkg/cloudapi/disks/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted disks diff --git a/pkg/cloudapi/disks/list_types.go b/pkg/cloudapi/disks/list_types.go index 79ea859..84d451e 100644 --- a/pkg/cloudapi/disks/list_types.go +++ b/pkg/cloudapi/disks/list_types.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListTypesRequest struct to get list types of disks diff --git a/pkg/cloudapi/disks/list_unattached.go b/pkg/cloudapi/disks/list_unattached.go index 6172db0..610dbff 100644 --- a/pkg/cloudapi/disks/list_unattached.go +++ b/pkg/cloudapi/disks/list_unattached.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListUnattachedRequest struct to get list of unattached disk diff --git a/pkg/cloudapi/disks/rename.go b/pkg/cloudapi/disks/rename.go index 2d88fdc..8777715 100644 --- a/pkg/cloudapi/disks/rename.go +++ b/pkg/cloudapi/disks/rename.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RenameRequest struct to rename disk diff --git a/pkg/cloudapi/disks/replicate.go b/pkg/cloudapi/disks/replicate.go index b3139c2..103502c 100644 --- a/pkg/cloudapi/disks/replicate.go +++ b/pkg/cloudapi/disks/replicate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicateRequest struct to create an empty disk in chosen SEP and pool combination. diff --git a/pkg/cloudapi/disks/replication_resume.go b/pkg/cloudapi/disks/replication_resume.go index 909cb8d..b1ac504 100644 --- a/pkg/cloudapi/disks/replication_resume.go +++ b/pkg/cloudapi/disks/replication_resume.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationResume struct to resume suspended replication diff --git a/pkg/cloudapi/disks/replication_reverse.go b/pkg/cloudapi/disks/replication_reverse.go index de2b2de..5f458ef 100644 --- a/pkg/cloudapi/disks/replication_reverse.go +++ b/pkg/cloudapi/disks/replication_reverse.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationReverseRequest struct to change role between disks replications diff --git a/pkg/cloudapi/disks/replication_start.go b/pkg/cloudapi/disks/replication_start.go index c048d88..c344cd5 100644 --- a/pkg/cloudapi/disks/replication_start.go +++ b/pkg/cloudapi/disks/replication_start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStartRequest struct to starts replication between two chosen disks diff --git a/pkg/cloudapi/disks/replication_status.go b/pkg/cloudapi/disks/replication_status.go index 23e5991..3d729f5 100644 --- a/pkg/cloudapi/disks/replication_status.go +++ b/pkg/cloudapi/disks/replication_status.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStatusRequest struct to get replication status diff --git a/pkg/cloudapi/disks/replication_stop.go b/pkg/cloudapi/disks/replication_stop.go index a74fd18..21fd37c 100644 --- a/pkg/cloudapi/disks/replication_stop.go +++ b/pkg/cloudapi/disks/replication_stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStopRequest struct to remove replication between disks completely diff --git a/pkg/cloudapi/disks/replication_suspend.go b/pkg/cloudapi/disks/replication_suspend.go index c644d8d..2dbfc00 100644 --- a/pkg/cloudapi/disks/replication_suspend.go +++ b/pkg/cloudapi/disks/replication_suspend.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationSuspendRequest struct to pause replication with possibility to resume from pause moment diff --git a/pkg/cloudapi/disks/resize.go b/pkg/cloudapi/disks/resize.go index ea7f130..43d1bc5 100644 --- a/pkg/cloudapi/disks/resize.go +++ b/pkg/cloudapi/disks/resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResizeRequest struct to resize disk @@ -19,31 +19,6 @@ type ResizeRequest struct { Size uint64 `url:"size" json:"size" validate:"required"` } -// Resize resizes disk -// Returns 200 if disk is resized online, else will return 202, -// in that case please stop and start your machine after changing the disk size, for your changes to be reflected. -// This method will not be used for disks, assigned to computes. Only unassigned disks and disks, assigned with "old" virtual machines. -func (d Disks) Resize(ctx context.Context, req ResizeRequest) (bool, error) { - err := validators.ValidateRequest(req) - if err != nil { - return false, validators.ValidationErrors(validators.GetErrors(err)) - } - - url := "/cloudapi/disks/resize" - - res, err := d.client.DecortApiCall(ctx, http.MethodPost, url, req) - if err != nil { - return false, err - } - - result, err := strconv.ParseBool(string(res)) - if err != nil { - return false, err - } - - return result, nil -} - // Resize2 resize disk // Returns 200 if disk is resized online, else will return 202, // in that case please stop and start your machine after changing the disk size, for your changes to be reflected. diff --git a/pkg/cloudapi/disks/restore.go b/pkg/cloudapi/disks/restore.go index 5d784e9..2581366 100644 --- a/pkg/cloudapi/disks/restore.go +++ b/pkg/cloudapi/disks/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore a deleted unattached disk diff --git a/pkg/cloudapi/disks/serialize.go b/pkg/cloudapi/disks/serialize.go index bf22f8e..0ffe92c 100644 --- a/pkg/cloudapi/disks/serialize.go +++ b/pkg/cloudapi/disks/serialize.go @@ -3,7 +3,7 @@ package disks import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/disks/share.go b/pkg/cloudapi/disks/share.go index 180f32b..06d1cd1 100644 --- a/pkg/cloudapi/disks/share.go +++ b/pkg/cloudapi/disks/share.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ShareRequest struct to share disk data diff --git a/pkg/cloudapi/disks/snapshot_delete.go b/pkg/cloudapi/disks/snapshot_delete.go index 79a77de..dd95f02 100644 --- a/pkg/cloudapi/disks/snapshot_delete.go +++ b/pkg/cloudapi/disks/snapshot_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotDeleteRequest struct to delete snapshot diff --git a/pkg/cloudapi/disks/snapshot_rollback.go b/pkg/cloudapi/disks/snapshot_rollback.go index 68c9a95..022229e 100644 --- a/pkg/cloudapi/disks/snapshot_rollback.go +++ b/pkg/cloudapi/disks/snapshot_rollback.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotRollbackRequest struct to rollback snapshot diff --git a/pkg/cloudapi/disks/unshare.go b/pkg/cloudapi/disks/unshare.go index 78fc832..e081873 100644 --- a/pkg/cloudapi/disks/unshare.go +++ b/pkg/cloudapi/disks/unshare.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UnshareRequest struct to unshare data disk diff --git a/pkg/cloudapi/dpdknet.go b/pkg/cloudapi/dpdknet.go index b6f91d8..e977d4a 100644 --- a/pkg/cloudapi/dpdknet.go +++ b/pkg/cloudapi/dpdknet.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/dpdknet" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/dpdknet" // Accessing the DPDKNet method group func (ca *CloudAPI) DPDKNet() *dpdknet.DPDKNet { diff --git a/pkg/cloudapi/dpdknet/dpdknet.go b/pkg/cloudapi/dpdknet/dpdknet.go index c7de8c2..8b301fa 100644 --- a/pkg/cloudapi/dpdknet/dpdknet.go +++ b/pkg/cloudapi/dpdknet/dpdknet.go @@ -1,6 +1,6 @@ package dpdknet -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to DPDK network type DPDKNet struct { diff --git a/pkg/cloudapi/dpdknet/get.go b/pkg/cloudapi/dpdknet/get.go index 98ef42e..8ec8cd1 100644 --- a/pkg/cloudapi/dpdknet/get.go +++ b/pkg/cloudapi/dpdknet/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about DPDK network diff --git a/pkg/cloudapi/dpdknet/list.go b/pkg/cloudapi/dpdknet/list.go index cc139a8..873277c 100644 --- a/pkg/cloudapi/dpdknet/list.go +++ b/pkg/cloudapi/dpdknet/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of DPDK networks diff --git a/pkg/cloudapi/extnet.go b/pkg/cloudapi/extnet.go index d6012c9..883d9e3 100644 --- a/pkg/cloudapi/extnet.go +++ b/pkg/cloudapi/extnet.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/extnet" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/extnet" ) // Accessing the ExtNet method group diff --git a/pkg/cloudapi/extnet/extnet.go b/pkg/cloudapi/extnet/extnet.go index 5530e03..9263a7e 100644 --- a/pkg/cloudapi/extnet/extnet.go +++ b/pkg/cloudapi/extnet/extnet.go @@ -2,7 +2,7 @@ package extnet import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to extnet diff --git a/pkg/cloudapi/extnet/get.go b/pkg/cloudapi/extnet/get.go index 1e287bf..bab7294 100644 --- a/pkg/cloudapi/extnet/get.go +++ b/pkg/cloudapi/extnet/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about external network diff --git a/pkg/cloudapi/extnet/get_reserved_ip.go b/pkg/cloudapi/extnet/get_reserved_ip.go new file mode 100644 index 0000000..cf04003 --- /dev/null +++ b/pkg/cloudapi/extnet/get_reserved_ip.go @@ -0,0 +1,50 @@ +package extnet + +import ( + "context" + "encoding/json" + "net/http" + + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" +) + +// GetRequest struct to get information about reserved address or address poll +type GetReservedIP struct { + // AccountID of the account whose reservation information we want to receive + // Required: true + AccountID uint64 `url:"accountId" json:"accountId" validate:"required"` + + // Field for specifying the ID of extnet whose reservation information we want to receive + // Required: false + ExtNetID uint64 `url:"extnetId,omitempty" json:"extnetId,omitempty"` +} + +// GetReservedIP gets information about reserved address or address poll as a slice of RecordReservedIP struct +func (e ExtNet) GetReservedIP(ctx context.Context, req GetReservedIP) ([]RecordReservedIP, error) { + res, err := e.GetReservedIPRaw(ctx, req) + if err != nil { + return nil, err + } + + reservedIP := make([]RecordReservedIP, 0) + + err = json.Unmarshal(res, &reservedIP) + if err != nil { + return nil, err + } + + return reservedIP, nil +} + +// GetRaw gets detailed information about external network as an array of bytes +func (e ExtNet) GetReservedIPRaw(ctx context.Context, req GetReservedIP) ([]byte, error) { + err := validators.ValidateRequest(req) + if err != nil { + return nil, validators.ValidationErrors(validators.GetErrors(err)) + } + + url := "/cloudapi/extnet/getReservedIp" + + res, err := e.client.DecortApiCall(ctx, http.MethodPost, url, req) + return res, err +} diff --git a/pkg/cloudapi/extnet/list.go b/pkg/cloudapi/extnet/list.go index f42e07a..fe4d16d 100644 --- a/pkg/cloudapi/extnet/list.go +++ b/pkg/cloudapi/extnet/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of external network diff --git a/pkg/cloudapi/extnet/list_computes.go b/pkg/cloudapi/extnet/list_computes.go index bcd608e..bd00cfc 100644 --- a/pkg/cloudapi/extnet/list_computes.go +++ b/pkg/cloudapi/extnet/list_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListComputesRequest struct to get list computes diff --git a/pkg/cloudapi/extnet/models.go b/pkg/cloudapi/extnet/models.go index 257e2b9..cb52015 100644 --- a/pkg/cloudapi/extnet/models.go +++ b/pkg/cloudapi/extnet/models.go @@ -87,6 +87,9 @@ type QOS struct { // Main information about reservations type ItemReservation struct { + // Account ID + AccountID uint64 `json:"account_id"` + // ClientType ClientType string `json:"clientType"` @@ -226,3 +229,20 @@ type RecordExtNet struct { // VNFs VNFs VNFs `json:"vnfs"` } + +// Detailed information about reserved address or address pool +type RecordReservedIP struct { + ExtnetID int `json:"extnet_id"` + Reservations []Reservations `json:"reservations"` +} + +type Reservations struct { + AccountID int `json:"account_id"` + ClientType string `json:"clientType"` + DomainName string `json:"domainname"` + Hostname string `json:"hostname"` + IP string `json:"ip"` + Mac string `json:"mac"` + Type string `json:"type"` + VMID int `json:"vmId"` +} diff --git a/pkg/cloudapi/extnet/serialize.go b/pkg/cloudapi/extnet/serialize.go index 6cfed24..dcee4b0 100644 --- a/pkg/cloudapi/extnet/serialize.go +++ b/pkg/cloudapi/extnet/serialize.go @@ -3,7 +3,7 @@ package extnet import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/flipgroup.go b/pkg/cloudapi/flipgroup.go index 61bcbc6..1fbab51 100644 --- a/pkg/cloudapi/flipgroup.go +++ b/pkg/cloudapi/flipgroup.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/flipgroup" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/flipgroup" ) // Accessing the FLIPGroup method group diff --git a/pkg/cloudapi/flipgroup/compute_add.go b/pkg/cloudapi/flipgroup/compute_add.go index 86b591e..e9c80a3 100644 --- a/pkg/cloudapi/flipgroup/compute_add.go +++ b/pkg/cloudapi/flipgroup/compute_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeAddRequest struct to add compute instance diff --git a/pkg/cloudapi/flipgroup/compute_remove.go b/pkg/cloudapi/flipgroup/compute_remove.go index c75d69a..ac5cbc5 100644 --- a/pkg/cloudapi/flipgroup/compute_remove.go +++ b/pkg/cloudapi/flipgroup/compute_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeRemoveRequest struct to remove compute instance diff --git a/pkg/cloudapi/flipgroup/create.go b/pkg/cloudapi/flipgroup/create.go index 3a9f6a4..4a398a3 100644 --- a/pkg/cloudapi/flipgroup/create.go +++ b/pkg/cloudapi/flipgroup/create.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create FLIPGroup diff --git a/pkg/cloudapi/flipgroup/delete.go b/pkg/cloudapi/flipgroup/delete.go index a766fdc..755a853 100644 --- a/pkg/cloudapi/flipgroup/delete.go +++ b/pkg/cloudapi/flipgroup/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete FLIPGroup diff --git a/pkg/cloudapi/flipgroup/edit.go b/pkg/cloudapi/flipgroup/edit.go index 8d696e5..a79e9b2 100644 --- a/pkg/cloudapi/flipgroup/edit.go +++ b/pkg/cloudapi/flipgroup/edit.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EditRequest struct to edit FLIPGroup diff --git a/pkg/cloudapi/flipgroup/flipgroup.go b/pkg/cloudapi/flipgroup/flipgroup.go index 0b19d15..9e75eee 100644 --- a/pkg/cloudapi/flipgroup/flipgroup.go +++ b/pkg/cloudapi/flipgroup/flipgroup.go @@ -2,7 +2,7 @@ package flipgroup import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to FLIPGroup diff --git a/pkg/cloudapi/flipgroup/get.go b/pkg/cloudapi/flipgroup/get.go index e5ad341..27551b7 100644 --- a/pkg/cloudapi/flipgroup/get.go +++ b/pkg/cloudapi/flipgroup/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about FLIPGroup diff --git a/pkg/cloudapi/flipgroup/list.go b/pkg/cloudapi/flipgroup/list.go index f59b9ae..2b2a1b5 100644 --- a/pkg/cloudapi/flipgroup/list.go +++ b/pkg/cloudapi/flipgroup/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of FLIPGroup available to the current user diff --git a/pkg/cloudapi/flipgroup/serialize.go b/pkg/cloudapi/flipgroup/serialize.go index ee1ad19..9f367e3 100644 --- a/pkg/cloudapi/flipgroup/serialize.go +++ b/pkg/cloudapi/flipgroup/serialize.go @@ -3,7 +3,7 @@ package flipgroup import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/image.go b/pkg/cloudapi/image.go index adc3eb2..3c6f07b 100644 --- a/pkg/cloudapi/image.go +++ b/pkg/cloudapi/image.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/image" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/image" ) // Accessing the Image method group diff --git a/pkg/cloudapi/image/create.go b/pkg/cloudapi/image/create.go index f9e2bfa..139c9dc 100644 --- a/pkg/cloudapi/image/create.go +++ b/pkg/cloudapi/image/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create image diff --git a/pkg/cloudapi/image/create_virtual.go b/pkg/cloudapi/image/create_virtual.go index d899357..f8b84a2 100644 --- a/pkg/cloudapi/image/create_virtual.go +++ b/pkg/cloudapi/image/create_virtual.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateVirtualRequest struct to create virtual image diff --git a/pkg/cloudapi/image/delete.go b/pkg/cloudapi/image/delete.go index a989985..57cd2dc 100644 --- a/pkg/cloudapi/image/delete.go +++ b/pkg/cloudapi/image/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete image diff --git a/pkg/cloudapi/image/get.go b/pkg/cloudapi/image/get.go index 8ea5f1a..d267c39 100644 --- a/pkg/cloudapi/image/get.go +++ b/pkg/cloudapi/image/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about image diff --git a/pkg/cloudapi/image/image.go b/pkg/cloudapi/image/image.go index 06469bc..4c6e9cc 100644 --- a/pkg/cloudapi/image/image.go +++ b/pkg/cloudapi/image/image.go @@ -2,7 +2,7 @@ package image import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to image diff --git a/pkg/cloudapi/image/link.go b/pkg/cloudapi/image/link.go index caf8934..3e9ec31 100644 --- a/pkg/cloudapi/image/link.go +++ b/pkg/cloudapi/image/link.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // LinkRequest struct to link virtual image to another image diff --git a/pkg/cloudapi/image/list.go b/pkg/cloudapi/image/list.go index d8bb80c..7280ac8 100644 --- a/pkg/cloudapi/image/list.go +++ b/pkg/cloudapi/image/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of available images diff --git a/pkg/cloudapi/image/rename.go b/pkg/cloudapi/image/rename.go index 5c3c735..5b1b76e 100644 --- a/pkg/cloudapi/image/rename.go +++ b/pkg/cloudapi/image/rename.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RenameRequest struct to rename image diff --git a/pkg/cloudapi/image/serialize.go b/pkg/cloudapi/image/serialize.go index 718036b..689c394 100644 --- a/pkg/cloudapi/image/serialize.go +++ b/pkg/cloudapi/image/serialize.go @@ -3,7 +3,7 @@ package image import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/k8ci.go b/pkg/cloudapi/k8ci.go index bee6d0c..ce4e43c 100644 --- a/pkg/cloudapi/k8ci.go +++ b/pkg/cloudapi/k8ci.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/k8ci" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/k8ci" ) // Accessing the K8CI method group diff --git a/pkg/cloudapi/k8ci/get.go b/pkg/cloudapi/k8ci/get.go index a961af0..13c6931 100644 --- a/pkg/cloudapi/k8ci/get.go +++ b/pkg/cloudapi/k8ci/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about K8CI diff --git a/pkg/cloudapi/k8ci/k8ci.go b/pkg/cloudapi/k8ci/k8ci.go index c0093ef..0142773 100644 --- a/pkg/cloudapi/k8ci/k8ci.go +++ b/pkg/cloudapi/k8ci/k8ci.go @@ -2,7 +2,7 @@ package k8ci import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to K8CI diff --git a/pkg/cloudapi/k8ci/list.go b/pkg/cloudapi/k8ci/list.go index 5175cad..0272ada 100644 --- a/pkg/cloudapi/k8ci/list.go +++ b/pkg/cloudapi/k8ci/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of information about images diff --git a/pkg/cloudapi/k8ci/list_deleted.go b/pkg/cloudapi/k8ci/list_deleted.go index 28cfc11..0ab8c68 100644 --- a/pkg/cloudapi/k8ci/list_deleted.go +++ b/pkg/cloudapi/k8ci/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list information about deleted k8ci items diff --git a/pkg/cloudapi/k8ci/serialize.go b/pkg/cloudapi/k8ci/serialize.go index c420ca7..e63136d 100644 --- a/pkg/cloudapi/k8ci/serialize.go +++ b/pkg/cloudapi/k8ci/serialize.go @@ -3,7 +3,7 @@ package k8ci import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/k8s.go b/pkg/cloudapi/k8s.go index a6e88c3..29cf952 100644 --- a/pkg/cloudapi/k8s.go +++ b/pkg/cloudapi/k8s.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/k8s" ) // Accessing the K8S method group diff --git a/pkg/cloudapi/k8s/create.go b/pkg/cloudapi/k8s/create.go index 70f5042..2605b66 100644 --- a/pkg/cloudapi/k8s/create.go +++ b/pkg/cloudapi/k8s/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create kubernetes cluster diff --git a/pkg/cloudapi/k8s/delete.go b/pkg/cloudapi/k8s/delete.go index bb615fd..5466444 100644 --- a/pkg/cloudapi/k8s/delete.go +++ b/pkg/cloudapi/k8s/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete kubernetes cluster diff --git a/pkg/cloudapi/k8s/delete_master_from_group.go b/pkg/cloudapi/k8s/delete_master_from_group.go index df0cedf..8a1b051 100644 --- a/pkg/cloudapi/k8s/delete_master_from_group.go +++ b/pkg/cloudapi/k8s/delete_master_from_group.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteMasterFromGroupRequest struct to delete master from group diff --git a/pkg/cloudapi/k8s/delete_worker_from_group.go b/pkg/cloudapi/k8s/delete_worker_from_group.go index deb90a0..c217a3e 100644 --- a/pkg/cloudapi/k8s/delete_worker_from_group.go +++ b/pkg/cloudapi/k8s/delete_worker_from_group.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteWorkerFromGroupRequest struct to delete worker from group diff --git a/pkg/cloudapi/k8s/disable_enable.go b/pkg/cloudapi/k8s/disable_enable.go index 9f207ca..d3e9643 100644 --- a/pkg/cloudapi/k8s/disable_enable.go +++ b/pkg/cloudapi/k8s/disable_enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableEnableRequest struct to disable/enable kubernetes cluster diff --git a/pkg/cloudapi/k8s/find_group_by_label.go b/pkg/cloudapi/k8s/find_group_by_label.go index 3e8c515..ad2b334 100644 --- a/pkg/cloudapi/k8s/find_group_by_label.go +++ b/pkg/cloudapi/k8s/find_group_by_label.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FindGroupByLabelRequest struct to get information about group of kubernetes cluster diff --git a/pkg/cloudapi/k8s/get.go b/pkg/cloudapi/k8s/get.go index 91f71b9..7e32b8a 100644 --- a/pkg/cloudapi/k8s/get.go +++ b/pkg/cloudapi/k8s/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about kubernetes cluster diff --git a/pkg/cloudapi/k8s/get_config.go b/pkg/cloudapi/k8s/get_config.go index 7088e7b..d4421e6 100644 --- a/pkg/cloudapi/k8s/get_config.go +++ b/pkg/cloudapi/k8s/get_config.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConfigRequest struct to get configuration of kubernetes cluster diff --git a/pkg/cloudapi/k8s/get_node_annotations.go b/pkg/cloudapi/k8s/get_node_annotations.go index 8f2a259..0afe0fb 100644 --- a/pkg/cloudapi/k8s/get_node_annotations.go +++ b/pkg/cloudapi/k8s/get_node_annotations.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeAnnotationsRequest struct to get node annotations diff --git a/pkg/cloudapi/k8s/get_node_labels.go b/pkg/cloudapi/k8s/get_node_labels.go index a58b795..1a75c90 100644 --- a/pkg/cloudapi/k8s/get_node_labels.go +++ b/pkg/cloudapi/k8s/get_node_labels.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeLabelsRequest struct to get node labels diff --git a/pkg/cloudapi/k8s/get_node_taints.go b/pkg/cloudapi/k8s/get_node_taints.go index 12faacb..18ee1bf 100644 --- a/pkg/cloudapi/k8s/get_node_taints.go +++ b/pkg/cloudapi/k8s/get_node_taints.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeTaintsRequest struct to get node taints diff --git a/pkg/cloudapi/k8s/get_worker_nodes_meta_data.go b/pkg/cloudapi/k8s/get_worker_nodes_meta_data.go index 39560ea..4db901e 100644 --- a/pkg/cloudapi/k8s/get_worker_nodes_meta_data.go +++ b/pkg/cloudapi/k8s/get_worker_nodes_meta_data.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetWorkerNodesMetaDataRequest struct to get worker group metadata by ID diff --git a/pkg/cloudapi/k8s/k8s.go b/pkg/cloudapi/k8s/k8s.go index d5770e0..ab1a456 100644 --- a/pkg/cloudapi/k8s/k8s.go +++ b/pkg/cloudapi/k8s/k8s.go @@ -2,7 +2,7 @@ package k8s import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to K8S diff --git a/pkg/cloudapi/k8s/list.go b/pkg/cloudapi/k8s/list.go index 5cc62a7..13e0375 100644 --- a/pkg/cloudapi/k8s/list.go +++ b/pkg/cloudapi/k8s/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list information K8S diff --git a/pkg/cloudapi/k8s/list_deleted.go b/pkg/cloudapi/k8s/list_deleted.go index f2a8028..7c3f96f 100644 --- a/pkg/cloudapi/k8s/list_deleted.go +++ b/pkg/cloudapi/k8s/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted kubernetes cluster diff --git a/pkg/cloudapi/k8s/restore.go b/pkg/cloudapi/k8s/restore.go index c07a4b7..e07312c 100644 --- a/pkg/cloudapi/k8s/restore.go +++ b/pkg/cloudapi/k8s/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore kubernetes cluster diff --git a/pkg/cloudapi/k8s/serialize.go b/pkg/cloudapi/k8s/serialize.go index 0ad7dfa..c2dd456 100644 --- a/pkg/cloudapi/k8s/serialize.go +++ b/pkg/cloudapi/k8s/serialize.go @@ -3,7 +3,7 @@ package k8s import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/k8s/start.go b/pkg/cloudapi/k8s/start.go index 7fdca52..e0b20b2 100644 --- a/pkg/cloudapi/k8s/start.go +++ b/pkg/cloudapi/k8s/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start kubernetes cluster diff --git a/pkg/cloudapi/k8s/stop.go b/pkg/cloudapi/k8s/stop.go index a93c5e0..8f7e31e 100644 --- a/pkg/cloudapi/k8s/stop.go +++ b/pkg/cloudapi/k8s/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop kubernetes cluster diff --git a/pkg/cloudapi/k8s/update.go b/pkg/cloudapi/k8s/update.go index 881753d..aeef0e1 100644 --- a/pkg/cloudapi/k8s/update.go +++ b/pkg/cloudapi/k8s/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update kubernetes cluster diff --git a/pkg/cloudapi/k8s/update_worker_nodes_meta_data.go b/pkg/cloudapi/k8s/update_worker_nodes_meta_data.go index e428646..e4e92e2 100644 --- a/pkg/cloudapi/k8s/update_worker_nodes_meta_data.go +++ b/pkg/cloudapi/k8s/update_worker_nodes_meta_data.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateWorkerNodesMetaDataRequest struct to add worker to a kubernetes cluster diff --git a/pkg/cloudapi/k8s/worker_add.go b/pkg/cloudapi/k8s/worker_add.go index cab07d4..dac5b1f 100644 --- a/pkg/cloudapi/k8s/worker_add.go +++ b/pkg/cloudapi/k8s/worker_add.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerAddRequest struct to add worker to a kubernetes cluster diff --git a/pkg/cloudapi/k8s/worker_reset.go b/pkg/cloudapi/k8s/worker_reset.go index 03b1b7f..6ef6c05 100644 --- a/pkg/cloudapi/k8s/worker_reset.go +++ b/pkg/cloudapi/k8s/worker_reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerResetRequest struct for hard reset kubernetes cluster diff --git a/pkg/cloudapi/k8s/worker_restart.go b/pkg/cloudapi/k8s/worker_restart.go index b3af975..f6527d8 100644 --- a/pkg/cloudapi/k8s/worker_restart.go +++ b/pkg/cloudapi/k8s/worker_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerRestartRequest struct to restart worker node diff --git a/pkg/cloudapi/k8s/workers_group_add.go b/pkg/cloudapi/k8s/workers_group_add.go index 08cb832..843775a 100644 --- a/pkg/cloudapi/k8s/workers_group_add.go +++ b/pkg/cloudapi/k8s/workers_group_add.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupAddRequest struct to add workers group diff --git a/pkg/cloudapi/k8s/workers_group_delete.go b/pkg/cloudapi/k8s/workers_group_delete.go index 2e3bb83..b411338 100644 --- a/pkg/cloudapi/k8s/workers_group_delete.go +++ b/pkg/cloudapi/k8s/workers_group_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupDeleteRequest struct to delete workers group diff --git a/pkg/cloudapi/k8s/workers_group_get_by_name.go b/pkg/cloudapi/k8s/workers_group_get_by_name.go index f27bf76..029d72c 100644 --- a/pkg/cloudapi/k8s/workers_group_get_by_name.go +++ b/pkg/cloudapi/k8s/workers_group_get_by_name.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupGetByNameRequest struct to get information about worker group diff --git a/pkg/cloudapi/kvmx86.go b/pkg/cloudapi/kvmx86.go index a61f89c..25329df 100644 --- a/pkg/cloudapi/kvmx86.go +++ b/pkg/cloudapi/kvmx86.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/kvmx86" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/kvmx86" ) // Accessing the KVMX86 method group diff --git a/pkg/cloudapi/kvmx86/create.go b/pkg/cloudapi/kvmx86/create.go index 480a3b0..8ed5a57 100644 --- a/pkg/cloudapi/kvmx86/create.go +++ b/pkg/cloudapi/kvmx86/create.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Interface struct { @@ -164,6 +164,10 @@ type CreateRequest struct { // Required: false // Default: false HPBacked bool `url:"hpBacked" json:"hpBacked"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudapi/kvmx86/create_blank.go b/pkg/cloudapi/kvmx86/create_blank.go index bb729f2..09dad2b 100644 --- a/pkg/cloudapi/kvmx86/create_blank.go +++ b/pkg/cloudapi/kvmx86/create_blank.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateBlankRequest struct to create KVM x86 VM from scratch @@ -68,6 +68,10 @@ type CreateBlankRequest struct { // Text description of this VM // Required: false Description string `url:"desc,omitempty" json:"desc,omitempty"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudapi/kvmx86/kvmx86.go b/pkg/cloudapi/kvmx86/kvmx86.go index 7868d20..fa3ff1e 100644 --- a/pkg/cloudapi/kvmx86/kvmx86.go +++ b/pkg/cloudapi/kvmx86/kvmx86.go @@ -2,7 +2,7 @@ package kvmx86 import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to KVMX86 diff --git a/pkg/cloudapi/lb.go b/pkg/cloudapi/lb.go index 2fbe33e..5699d92 100644 --- a/pkg/cloudapi/lb.go +++ b/pkg/cloudapi/lb.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/lb" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/lb" // Accessing the LB method group func (ca *CloudAPI) LB() *lb.LB { diff --git a/pkg/cloudapi/lb/backend_create.go b/pkg/cloudapi/lb/backend_create.go index d23c351..3101a06 100644 --- a/pkg/cloudapi/lb/backend_create.go +++ b/pkg/cloudapi/lb/backend_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendCreateRequest struct to create backend diff --git a/pkg/cloudapi/lb/backend_delete.go b/pkg/cloudapi/lb/backend_delete.go index 113978c..28325db 100644 --- a/pkg/cloudapi/lb/backend_delete.go +++ b/pkg/cloudapi/lb/backend_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendDeleteRequest struct to delete backend diff --git a/pkg/cloudapi/lb/backend_server_add.go b/pkg/cloudapi/lb/backend_server_add.go index bfbe557..dcab0f9 100644 --- a/pkg/cloudapi/lb/backend_server_add.go +++ b/pkg/cloudapi/lb/backend_server_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerAddRequest struct to add server definition to the backend diff --git a/pkg/cloudapi/lb/backend_server_delete.go b/pkg/cloudapi/lb/backend_server_delete.go index 0231146..8091c23 100644 --- a/pkg/cloudapi/lb/backend_server_delete.go +++ b/pkg/cloudapi/lb/backend_server_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerDeleteRequest struct to delete server definition diff --git a/pkg/cloudapi/lb/backend_server_update.go b/pkg/cloudapi/lb/backend_server_update.go index 2f867f1..092d9f4 100644 --- a/pkg/cloudapi/lb/backend_server_update.go +++ b/pkg/cloudapi/lb/backend_server_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerUpdateRequest struct to update server diff --git a/pkg/cloudapi/lb/backend_update.go b/pkg/cloudapi/lb/backend_update.go index 84b997c..173ffed 100644 --- a/pkg/cloudapi/lb/backend_update.go +++ b/pkg/cloudapi/lb/backend_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendUpdateRequest struct to update backend diff --git a/pkg/cloudapi/lb/config_reset.go b/pkg/cloudapi/lb/config_reset.go index 48e25be..e21ccc1 100644 --- a/pkg/cloudapi/lb/config_reset.go +++ b/pkg/cloudapi/lb/config_reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConfigResetRequest struct for reset config diff --git a/pkg/cloudapi/lb/create.go b/pkg/cloudapi/lb/create.go index a25009f..acb956f 100644 --- a/pkg/cloudapi/lb/create.go +++ b/pkg/cloudapi/lb/create.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create load balancer diff --git a/pkg/cloudapi/lb/delete.go b/pkg/cloudapi/lb/delete.go index ed3bbcf..dcb00e8 100644 --- a/pkg/cloudapi/lb/delete.go +++ b/pkg/cloudapi/lb/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete load balancer diff --git a/pkg/cloudapi/lb/disable_enable.go b/pkg/cloudapi/lb/disable_enable.go index dc42aeb..91b0b00 100644 --- a/pkg/cloudapi/lb/disable_enable.go +++ b/pkg/cloudapi/lb/disable_enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableEnableRequest struct for disable/enable load balancer diff --git a/pkg/cloudapi/lb/filter.go b/pkg/cloudapi/lb/filter.go index 062734a..1a543dc 100644 --- a/pkg/cloudapi/lb/filter.go +++ b/pkg/cloudapi/lb/filter.go @@ -3,8 +3,8 @@ package lb import ( "context" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/k8s" ) // FilterByID returns ListLB with specified ID. diff --git a/pkg/cloudapi/lb/frontend_bind.go b/pkg/cloudapi/lb/frontend_bind.go index 271ab8f..a7c3f17 100644 --- a/pkg/cloudapi/lb/frontend_bind.go +++ b/pkg/cloudapi/lb/frontend_bind.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindRequest struct for frontend bind diff --git a/pkg/cloudapi/lb/frontend_bind_delete.go b/pkg/cloudapi/lb/frontend_bind_delete.go index fb29206..474a69f 100644 --- a/pkg/cloudapi/lb/frontend_bind_delete.go +++ b/pkg/cloudapi/lb/frontend_bind_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindDeleteRequest struct to delete bind diff --git a/pkg/cloudapi/lb/frontend_bind_update.go b/pkg/cloudapi/lb/frontend_bind_update.go index 49b39d7..eb1918b 100644 --- a/pkg/cloudapi/lb/frontend_bind_update.go +++ b/pkg/cloudapi/lb/frontend_bind_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindUpdateRequest struct to update binding diff --git a/pkg/cloudapi/lb/frontend_create.go b/pkg/cloudapi/lb/frontend_create.go index cb49f67..2baa335 100644 --- a/pkg/cloudapi/lb/frontend_create.go +++ b/pkg/cloudapi/lb/frontend_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendCreateRequest struct to create frontend diff --git a/pkg/cloudapi/lb/frontend_delete.go b/pkg/cloudapi/lb/frontend_delete.go index 5082c74..1d09740 100644 --- a/pkg/cloudapi/lb/frontend_delete.go +++ b/pkg/cloudapi/lb/frontend_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendDeleteRequest struct to delete frontend diff --git a/pkg/cloudapi/lb/get.go b/pkg/cloudapi/lb/get.go index 6b4c66e..83ae1fc 100644 --- a/pkg/cloudapi/lb/get.go +++ b/pkg/cloudapi/lb/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about load balancer diff --git a/pkg/cloudapi/lb/lb.go b/pkg/cloudapi/lb/lb.go index 992b322..04f6ba6 100644 --- a/pkg/cloudapi/lb/lb.go +++ b/pkg/cloudapi/lb/lb.go @@ -2,7 +2,7 @@ package lb import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to load balancer diff --git a/pkg/cloudapi/lb/list.go b/pkg/cloudapi/lb/list.go index 38bbfc3..448fa42 100644 --- a/pkg/cloudapi/lb/list.go +++ b/pkg/cloudapi/lb/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of load balancers diff --git a/pkg/cloudapi/lb/list_deleted.go b/pkg/cloudapi/lb/list_deleted.go index 46c1065..d2bddff 100644 --- a/pkg/cloudapi/lb/list_deleted.go +++ b/pkg/cloudapi/lb/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted load balancers diff --git a/pkg/cloudapi/lb/make_highly_available.go b/pkg/cloudapi/lb/make_highly_available.go index 495852a..f44c15c 100644 --- a/pkg/cloudapi/lb/make_highly_available.go +++ b/pkg/cloudapi/lb/make_highly_available.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // HighlyAvailableRequest struct to make Load Balancer Highly available diff --git a/pkg/cloudapi/lb/restart.go b/pkg/cloudapi/lb/restart.go index 4db4674..e279a34 100644 --- a/pkg/cloudapi/lb/restart.go +++ b/pkg/cloudapi/lb/restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestartRequest struct to restart load balancer diff --git a/pkg/cloudapi/lb/restore.go b/pkg/cloudapi/lb/restore.go index 5ce3313..e8d6391 100644 --- a/pkg/cloudapi/lb/restore.go +++ b/pkg/cloudapi/lb/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore load balancer diff --git a/pkg/cloudapi/lb/serialize.go b/pkg/cloudapi/lb/serialize.go index 5ba76f5..89d920f 100644 --- a/pkg/cloudapi/lb/serialize.go +++ b/pkg/cloudapi/lb/serialize.go @@ -3,7 +3,7 @@ package lb import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/lb/start.go b/pkg/cloudapi/lb/start.go index b087fd2..1b3c192 100644 --- a/pkg/cloudapi/lb/start.go +++ b/pkg/cloudapi/lb/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start load balancer diff --git a/pkg/cloudapi/lb/stop.go b/pkg/cloudapi/lb/stop.go index 5483a67..ecee20b 100644 --- a/pkg/cloudapi/lb/stop.go +++ b/pkg/cloudapi/lb/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop load balancer diff --git a/pkg/cloudapi/lb/update.go b/pkg/cloudapi/lb/update.go index 7c94012..322d62c 100644 --- a/pkg/cloudapi/lb/update.go +++ b/pkg/cloudapi/lb/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update load balancer diff --git a/pkg/cloudapi/lb/update_sysctl_params.go b/pkg/cloudapi/lb/update_sysctl_params.go index d02eaf7..e0a7712 100644 --- a/pkg/cloudapi/lb/update_sysctl_params.go +++ b/pkg/cloudapi/lb/update_sysctl_params.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateSysctParamsRequest struct to update sysct params for lb diff --git a/pkg/cloudapi/locations/list.go b/pkg/cloudapi/locations/list.go index af140a4..c1a70f4 100644 --- a/pkg/cloudapi/locations/list.go +++ b/pkg/cloudapi/locations/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of locations diff --git a/pkg/cloudapi/locations/locations.go b/pkg/cloudapi/locations/locations.go index 6872fb7..c5c579a 100644 --- a/pkg/cloudapi/locations/locations.go +++ b/pkg/cloudapi/locations/locations.go @@ -2,7 +2,7 @@ package locations import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to locations diff --git a/pkg/cloudapi/locations/serialize.go b/pkg/cloudapi/locations/serialize.go index 1a60b30..a2df16b 100644 --- a/pkg/cloudapi/locations/serialize.go +++ b/pkg/cloudapi/locations/serialize.go @@ -3,7 +3,7 @@ package locations import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/locatons.go b/pkg/cloudapi/locatons.go index a0a2e90..742675f 100644 --- a/pkg/cloudapi/locatons.go +++ b/pkg/cloudapi/locatons.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/locations" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/locations" // Accessing the Locations method group func (ca *CloudAPI) Locations() *locations.Locations { diff --git a/pkg/cloudapi/pcidevice.go b/pkg/cloudapi/pcidevice.go index ca98d50..336c7bc 100644 --- a/pkg/cloudapi/pcidevice.go +++ b/pkg/cloudapi/pcidevice.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/pcidevice" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/pcidevice" // Accessing the PCI Device method group func (ca *CloudAPI) PCIDevice() *pcidevice.PCIDevice { diff --git a/pkg/cloudapi/pcidevice/list.go b/pkg/cloudapi/pcidevice/list.go index 21acc43..76a1435 100644 --- a/pkg/cloudapi/pcidevice/list.go +++ b/pkg/cloudapi/pcidevice/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of pci devices diff --git a/pkg/cloudapi/pcidevice/pcidevice.go b/pkg/cloudapi/pcidevice/pcidevice.go index 82b3d3a..3e16d35 100644 --- a/pkg/cloudapi/pcidevice/pcidevice.go +++ b/pkg/cloudapi/pcidevice/pcidevice.go @@ -1,6 +1,6 @@ package pcidevice -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to PCI device type PCIDevice struct { diff --git a/pkg/cloudapi/pcidevice/serialize.go b/pkg/cloudapi/pcidevice/serialize.go index 7616b54..aea3039 100644 --- a/pkg/cloudapi/pcidevice/serialize.go +++ b/pkg/cloudapi/pcidevice/serialize.go @@ -3,7 +3,7 @@ package pcidevice import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/rg.go b/pkg/cloudapi/rg.go index 4e6af0c..60901aa 100644 --- a/pkg/cloudapi/rg.go +++ b/pkg/cloudapi/rg.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/rg" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/rg" // Accessing the RG method group func (ca *CloudAPI) RG() *rg.RG { diff --git a/pkg/cloudapi/rg/access_grant.go b/pkg/cloudapi/rg/access_grant.go index 8a9b081..9ee839a 100644 --- a/pkg/cloudapi/rg/access_grant.go +++ b/pkg/cloudapi/rg/access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessGrantRequest struct to grant access to resource group diff --git a/pkg/cloudapi/rg/access_revoke.go b/pkg/cloudapi/rg/access_revoke.go index 64f545c..ca53d7a 100644 --- a/pkg/cloudapi/rg/access_revoke.go +++ b/pkg/cloudapi/rg/access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRevokeRequest struct to revoke access diff --git a/pkg/cloudapi/rg/affinity_group_computes.go b/pkg/cloudapi/rg/affinity_group_computes.go index ca877eb..b61f78b 100644 --- a/pkg/cloudapi/rg/affinity_group_computes.go +++ b/pkg/cloudapi/rg/affinity_group_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupComputesRequest struct to get list of all computes with their relationships diff --git a/pkg/cloudapi/rg/affinity_groups_get.go b/pkg/cloudapi/rg/affinity_groups_get.go index be5c6ff..d0463aa 100644 --- a/pkg/cloudapi/rg/affinity_groups_get.go +++ b/pkg/cloudapi/rg/affinity_groups_get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupsGetRequest struct to get list computes from affinity group diff --git a/pkg/cloudapi/rg/affinity_groups_list.go b/pkg/cloudapi/rg/affinity_groups_list.go index 1094797..fc16421 100644 --- a/pkg/cloudapi/rg/affinity_groups_list.go +++ b/pkg/cloudapi/rg/affinity_groups_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupsListRequest struct to get list of affinity groups from resource group diff --git a/pkg/cloudapi/rg/audits.go b/pkg/cloudapi/rg/audits.go index 4a5d0c7..17990d5 100644 --- a/pkg/cloudapi/rg/audits.go +++ b/pkg/cloudapi/rg/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audit diff --git a/pkg/cloudapi/rg/create.go b/pkg/cloudapi/rg/create.go index 93f7f57..13b7456 100644 --- a/pkg/cloudapi/rg/create.go +++ b/pkg/cloudapi/rg/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create resource group diff --git a/pkg/cloudapi/rg/delete.go b/pkg/cloudapi/rg/delete.go index 796f847..b88e3f9 100644 --- a/pkg/cloudapi/rg/delete.go +++ b/pkg/cloudapi/rg/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete resource group diff --git a/pkg/cloudapi/rg/disable.go b/pkg/cloudapi/rg/disable.go index d46770b..5e03cfd 100644 --- a/pkg/cloudapi/rg/disable.go +++ b/pkg/cloudapi/rg/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable resource group diff --git a/pkg/cloudapi/rg/enable.go b/pkg/cloudapi/rg/enable.go index 1e0c40d..6aa2a75 100644 --- a/pkg/cloudapi/rg/enable.go +++ b/pkg/cloudapi/rg/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable resource group diff --git a/pkg/cloudapi/rg/get.go b/pkg/cloudapi/rg/get.go index e3e3b83..16e5f45 100644 --- a/pkg/cloudapi/rg/get.go +++ b/pkg/cloudapi/rg/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about resource group diff --git a/pkg/cloudapi/rg/get_resource_consumption.go b/pkg/cloudapi/rg/get_resource_consumption.go index 309c086..63a7025 100644 --- a/pkg/cloudapi/rg/get_resource_consumption.go +++ b/pkg/cloudapi/rg/get_resource_consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetResourceConsumptionRequest struct to get detailed information about resource consumption for ResGroup diff --git a/pkg/cloudapi/rg/list.go b/pkg/cloudapi/rg/list.go index 5490616..271b26f 100644 --- a/pkg/cloudapi/rg/list.go +++ b/pkg/cloudapi/rg/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of resource groups diff --git a/pkg/cloudapi/rg/list_computes.go b/pkg/cloudapi/rg/list_computes.go index 8dc54e9..9aa8d61 100644 --- a/pkg/cloudapi/rg/list_computes.go +++ b/pkg/cloudapi/rg/list_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListComputesRequest struct to get list of computes diff --git a/pkg/cloudapi/rg/list_deleted.go b/pkg/cloudapi/rg/list_deleted.go index 8547d36..f32cad8 100644 --- a/pkg/cloudapi/rg/list_deleted.go +++ b/pkg/cloudapi/rg/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list deleted resource groups diff --git a/pkg/cloudapi/rg/list_lb.go b/pkg/cloudapi/rg/list_lb.go index effafda..3b2ccb4 100644 --- a/pkg/cloudapi/rg/list_lb.go +++ b/pkg/cloudapi/rg/list_lb.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListLBRequest struct to get list of load balancers diff --git a/pkg/cloudapi/rg/list_pfw.go b/pkg/cloudapi/rg/list_pfw.go index 5ab6aef..d2293e2 100644 --- a/pkg/cloudapi/rg/list_pfw.go +++ b/pkg/cloudapi/rg/list_pfw.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListPFWRequest struct to get list of port forward rules diff --git a/pkg/cloudapi/rg/list_vins.go b/pkg/cloudapi/rg/list_vins.go index c364a6d..7951f3a 100644 --- a/pkg/cloudapi/rg/list_vins.go +++ b/pkg/cloudapi/rg/list_vins.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVINSRequest struct to get list of VINSes diff --git a/pkg/cloudapi/rg/remove_def_net.go b/pkg/cloudapi/rg/remove_def_net.go index d606208..5992e39 100644 --- a/pkg/cloudapi/rg/remove_def_net.go +++ b/pkg/cloudapi/rg/remove_def_net.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RemoveDefNetRequest struct to remove default network diff --git a/pkg/cloudapi/rg/restore.go b/pkg/cloudapi/rg/restore.go index 2c30e0d..fdf875f 100644 --- a/pkg/cloudapi/rg/restore.go +++ b/pkg/cloudapi/rg/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore resource group diff --git a/pkg/cloudapi/rg/rg.go b/pkg/cloudapi/rg/rg.go index 9582724..1868a89 100644 --- a/pkg/cloudapi/rg/rg.go +++ b/pkg/cloudapi/rg/rg.go @@ -2,7 +2,7 @@ package rg import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to resource group diff --git a/pkg/cloudapi/rg/serialize.go b/pkg/cloudapi/rg/serialize.go index e6f62d9..1d5030f 100644 --- a/pkg/cloudapi/rg/serialize.go +++ b/pkg/cloudapi/rg/serialize.go @@ -3,7 +3,7 @@ package rg import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/rg/set_def_net.go b/pkg/cloudapi/rg/set_def_net.go index abf6001..20be4a7 100644 --- a/pkg/cloudapi/rg/set_def_net.go +++ b/pkg/cloudapi/rg/set_def_net.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetDefNetRequest struct to set default network diff --git a/pkg/cloudapi/rg/update.go b/pkg/cloudapi/rg/update.go index 0e4c595..9ae2a15 100644 --- a/pkg/cloudapi/rg/update.go +++ b/pkg/cloudapi/rg/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update resource group diff --git a/pkg/cloudapi/rg/usage.go b/pkg/cloudapi/rg/usage.go index 1a2069a..c583cd1 100644 --- a/pkg/cloudapi/rg/usage.go +++ b/pkg/cloudapi/rg/usage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UsageRequest struct to get report of resource usage diff --git a/pkg/cloudapi/stack.go b/pkg/cloudapi/stack.go index ea4a48f..492e1b4 100644 --- a/pkg/cloudapi/stack.go +++ b/pkg/cloudapi/stack.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/stack" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/stack" ) // Accessing the Stack method group diff --git a/pkg/cloudapi/stack/get.go b/pkg/cloudapi/stack/get.go index 38d56e9..54a49e0 100644 --- a/pkg/cloudapi/stack/get.go +++ b/pkg/cloudapi/stack/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get info of stack diff --git a/pkg/cloudapi/stack/list.go b/pkg/cloudapi/stack/list.go index 90d6d95..424d115 100644 --- a/pkg/cloudapi/stack/list.go +++ b/pkg/cloudapi/stack/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of stacks diff --git a/pkg/cloudapi/stack/stack.go b/pkg/cloudapi/stack/stack.go index 11e3b5d..65ffe5b 100644 --- a/pkg/cloudapi/stack/stack.go +++ b/pkg/cloudapi/stack/stack.go @@ -1,7 +1,7 @@ // Lists all the stack. package stack -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to stack type Stack struct { diff --git a/pkg/cloudapi/tasks.go b/pkg/cloudapi/tasks.go index 474c3f6..62e94f6 100644 --- a/pkg/cloudapi/tasks.go +++ b/pkg/cloudapi/tasks.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/tasks" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/tasks" ) // Accessing the Tasks method group diff --git a/pkg/cloudapi/tasks/get.go b/pkg/cloudapi/tasks/get.go index fdbdeea..aacc159 100644 --- a/pkg/cloudapi/tasks/get.go +++ b/pkg/cloudapi/tasks/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about task diff --git a/pkg/cloudapi/tasks/list.go b/pkg/cloudapi/tasks/list.go index 50f717e..66af731 100644 --- a/pkg/cloudapi/tasks/list.go +++ b/pkg/cloudapi/tasks/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of tasks diff --git a/pkg/cloudapi/tasks/tasks.go b/pkg/cloudapi/tasks/tasks.go index 67b9321..5e12827 100644 --- a/pkg/cloudapi/tasks/tasks.go +++ b/pkg/cloudapi/tasks/tasks.go @@ -2,7 +2,7 @@ package tasks import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to tasks diff --git a/pkg/cloudapi/user.go b/pkg/cloudapi/user.go index c5d7d02..457cfe3 100644 --- a/pkg/cloudapi/user.go +++ b/pkg/cloudapi/user.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/user" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/user" func (ca *CloudAPI) User() *user.User { return user.New(ca.client) diff --git a/pkg/cloudapi/user/api_list.go b/pkg/cloudapi/user/api_list.go index 55eadd1..00db665 100644 --- a/pkg/cloudapi/user/api_list.go +++ b/pkg/cloudapi/user/api_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIListRequest struct for getting API list. diff --git a/pkg/cloudapi/user/authenticate.go b/pkg/cloudapi/user/authenticate.go index 4a64865..4b03eb5 100644 --- a/pkg/cloudapi/user/authenticate.go +++ b/pkg/cloudapi/user/authenticate.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuthenticateRequest struct to authenticate user. diff --git a/pkg/cloudapi/user/get.go b/pkg/cloudapi/user/get.go index 0c74998..d2305e1 100644 --- a/pkg/cloudapi/user/get.go +++ b/pkg/cloudapi/user/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get user details. diff --git a/pkg/cloudapi/user/is_valid_invite_user_token.go b/pkg/cloudapi/user/is_valid_invite_user_token.go index f8e8f37..d2682f1 100644 --- a/pkg/cloudapi/user/is_valid_invite_user_token.go +++ b/pkg/cloudapi/user/is_valid_invite_user_token.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to check if the inviteusertoken and emailaddress pair are valid and matching. diff --git a/pkg/cloudapi/user/set_data.go b/pkg/cloudapi/user/set_data.go index d67cc0e..5e927e0 100644 --- a/pkg/cloudapi/user/set_data.go +++ b/pkg/cloudapi/user/set_data.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetDataRequest struct for setting extra user information. diff --git a/pkg/cloudapi/user/user.go b/pkg/cloudapi/user/user.go index 9a1ff2c..2fe152a 100644 --- a/pkg/cloudapi/user/user.go +++ b/pkg/cloudapi/user/user.go @@ -1,6 +1,6 @@ package user -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to User type User struct { diff --git a/pkg/cloudapi/vfpool.go b/pkg/cloudapi/vfpool.go index 2d7a912..0388715 100644 --- a/pkg/cloudapi/vfpool.go +++ b/pkg/cloudapi/vfpool.go @@ -1,6 +1,6 @@ package cloudapi -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/vfpool" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/vfpool" // Accessing the VFPool method group func (ca *CloudAPI) VFPool() *vfpool.VFPool { diff --git a/pkg/cloudapi/vfpool/get.go b/pkg/cloudapi/vfpool/get.go index e5fc736..e2e7172 100644 --- a/pkg/cloudapi/vfpool/get.go +++ b/pkg/cloudapi/vfpool/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about vfpool device diff --git a/pkg/cloudapi/vfpool/list.go b/pkg/cloudapi/vfpool/list.go index 2782112..6a9649a 100644 --- a/pkg/cloudapi/vfpool/list.go +++ b/pkg/cloudapi/vfpool/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of vfpool devices diff --git a/pkg/cloudapi/vfpool/serialize.go b/pkg/cloudapi/vfpool/serialize.go index d840502..c40fc44 100644 --- a/pkg/cloudapi/vfpool/serialize.go +++ b/pkg/cloudapi/vfpool/serialize.go @@ -3,7 +3,7 @@ package vfpool import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/vfpool/vfpool.go b/pkg/cloudapi/vfpool/vfpool.go index 15f7996..f952dee 100644 --- a/pkg/cloudapi/vfpool/vfpool.go +++ b/pkg/cloudapi/vfpool/vfpool.go @@ -2,7 +2,7 @@ package vfpool import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to vfpool diff --git a/pkg/cloudapi/vins.go b/pkg/cloudapi/vins.go index f6badd0..6421324 100644 --- a/pkg/cloudapi/vins.go +++ b/pkg/cloudapi/vins.go @@ -1,7 +1,7 @@ package cloudapi import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi/vins" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi/vins" ) // Accessing the VINS method group diff --git a/pkg/cloudapi/vins/audits.go b/pkg/cloudapi/vins/audits.go index 4358b99..5a59365 100644 --- a/pkg/cloudapi/vins/audits.go +++ b/pkg/cloudapi/vins/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audits diff --git a/pkg/cloudapi/vins/create_in_account.go b/pkg/cloudapi/vins/create_in_account.go index 6f24aa7..8c3eb84 100644 --- a/pkg/cloudapi/vins/create_in_account.go +++ b/pkg/cloudapi/vins/create_in_account.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Route struct { diff --git a/pkg/cloudapi/vins/create_in_rg.go b/pkg/cloudapi/vins/create_in_rg.go index c23eeb1..4213181 100644 --- a/pkg/cloudapi/vins/create_in_rg.go +++ b/pkg/cloudapi/vins/create_in_rg.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateInRGRequest struct to create VINS in resource group diff --git a/pkg/cloudapi/vins/delete.go b/pkg/cloudapi/vins/delete.go index 64e93b6..53cc0cb 100644 --- a/pkg/cloudapi/vins/delete.go +++ b/pkg/cloudapi/vins/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete VINS diff --git a/pkg/cloudapi/vins/disable_enable.go b/pkg/cloudapi/vins/disable_enable.go index eaa0c71..7d3186e 100644 --- a/pkg/cloudapi/vins/disable_enable.go +++ b/pkg/cloudapi/vins/disable_enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableEnableRequest struct to disable/enable VINS diff --git a/pkg/cloudapi/vins/dns_apply.go b/pkg/cloudapi/vins/dns_apply.go index 7ef8495..601c916 100644 --- a/pkg/cloudapi/vins/dns_apply.go +++ b/pkg/cloudapi/vins/dns_apply.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DNSApplyRequest struct to apply new DNS list in VINS diff --git a/pkg/cloudapi/vins/extnet_connect.go b/pkg/cloudapi/vins/extnet_connect.go index 3ccb048..b324a61 100644 --- a/pkg/cloudapi/vins/extnet_connect.go +++ b/pkg/cloudapi/vins/extnet_connect.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetConnectRequest struct to connect to external network diff --git a/pkg/cloudapi/vins/extnet_disconnect.go b/pkg/cloudapi/vins/extnet_disconnect.go index 492b6b9..16d67f1 100644 --- a/pkg/cloudapi/vins/extnet_disconnect.go +++ b/pkg/cloudapi/vins/extnet_disconnect.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetDisconnectRequest struct to disconnect VINS from external network diff --git a/pkg/cloudapi/vins/extnet_list.go b/pkg/cloudapi/vins/extnet_list.go index 632ff3c..9554d75 100644 --- a/pkg/cloudapi/vins/extnet_list.go +++ b/pkg/cloudapi/vins/extnet_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetListRequest struct to get list of VINS external network connections diff --git a/pkg/cloudapi/vins/get.go b/pkg/cloudapi/vins/get.go index 3e2e5b5..dfc887e 100644 --- a/pkg/cloudapi/vins/get.go +++ b/pkg/cloudapi/vins/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about VINS diff --git a/pkg/cloudapi/vins/ip_list.go b/pkg/cloudapi/vins/ip_list.go index 950cabf..4252fd3 100644 --- a/pkg/cloudapi/vins/ip_list.go +++ b/pkg/cloudapi/vins/ip_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPListRequest struct for DHCP IP diff --git a/pkg/cloudapi/vins/ip_release.go b/pkg/cloudapi/vins/ip_release.go index 88df0fa..802ce60 100644 --- a/pkg/cloudapi/vins/ip_release.go +++ b/pkg/cloudapi/vins/ip_release.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPReleaseRequest struct for IP release diff --git a/pkg/cloudapi/vins/ip_reserve.go b/pkg/cloudapi/vins/ip_reserve.go index a836f59..ba63a49 100644 --- a/pkg/cloudapi/vins/ip_reserve.go +++ b/pkg/cloudapi/vins/ip_reserve.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPReserveRequest struct for IP reserve diff --git a/pkg/cloudapi/vins/list.go b/pkg/cloudapi/vins/list.go index 59e7711..9116761 100644 --- a/pkg/cloudapi/vins/list.go +++ b/pkg/cloudapi/vins/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of VINSes diff --git a/pkg/cloudapi/vins/list_deleted.go b/pkg/cloudapi/vins/list_deleted.go index 4e67093..3b7400a 100644 --- a/pkg/cloudapi/vins/list_deleted.go +++ b/pkg/cloudapi/vins/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted VINSes diff --git a/pkg/cloudapi/vins/models.go b/pkg/cloudapi/vins/models.go index 7c97216..1f54c3a 100644 --- a/pkg/cloudapi/vins/models.go +++ b/pkg/cloudapi/vins/models.go @@ -208,6 +208,9 @@ type RecordVNFDev struct { // List of VINS IDs VINS []uint64 `json:"vins"` + + // VNC password + VNCPassword string `json:"vncPasswd"` } // VNF config @@ -793,17 +796,8 @@ type ListNATRules struct { // Main information about reservation type ItemReservation struct { - // Client type - ClientType string `json:"clientType"` - - // Description - Description string `json:"desc"` - - // Domain name - DomainName string `json:"domainname"` - - // Hostname - Hostname string `json:"hostname"` + // Account ID + AccountID uint64 `json:"account_id"` // IP IP string `json:"ip"` diff --git a/pkg/cloudapi/vins/nat_rule_add.go b/pkg/cloudapi/vins/nat_rule_add.go index 7f70ba4..2c55ff9 100644 --- a/pkg/cloudapi/vins/nat_rule_add.go +++ b/pkg/cloudapi/vins/nat_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleAddRequest struct to create NAT rules diff --git a/pkg/cloudapi/vins/nat_rule_del.go b/pkg/cloudapi/vins/nat_rule_del.go index 36712d7..3b61b0a 100644 --- a/pkg/cloudapi/vins/nat_rule_del.go +++ b/pkg/cloudapi/vins/nat_rule_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleDelRequest struct to delete NAT rule diff --git a/pkg/cloudapi/vins/nat_rule_list.go b/pkg/cloudapi/vins/nat_rule_list.go index 0f8c6fe..33e4dd5 100644 --- a/pkg/cloudapi/vins/nat_rule_list.go +++ b/pkg/cloudapi/vins/nat_rule_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleListRequest struct to get list of NAT rules diff --git a/pkg/cloudapi/vins/restore.go b/pkg/cloudapi/vins/restore.go index 8cae3ae..cedbf4a 100644 --- a/pkg/cloudapi/vins/restore.go +++ b/pkg/cloudapi/vins/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct for restore diff --git a/pkg/cloudapi/vins/serialize.go b/pkg/cloudapi/vins/serialize.go index 418f301..0817930 100644 --- a/pkg/cloudapi/vins/serialize.go +++ b/pkg/cloudapi/vins/serialize.go @@ -3,7 +3,7 @@ package vins import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudapi/vins/static_route_access_grant.go b/pkg/cloudapi/vins/static_route_access_grant.go index 6a46234..5fd4b84 100644 --- a/pkg/cloudapi/vins/static_route_access_grant.go +++ b/pkg/cloudapi/vins/static_route_access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessGrantRequest struct to grant access to static route to Compute/ViNS diff --git a/pkg/cloudapi/vins/static_route_access_revoke.go b/pkg/cloudapi/vins/static_route_access_revoke.go index 05c3165..b339f74 100644 --- a/pkg/cloudapi/vins/static_route_access_revoke.go +++ b/pkg/cloudapi/vins/static_route_access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessRevokeRequest struct to revoke access to static route to Compute/ViNS diff --git a/pkg/cloudapi/vins/static_route_add.go b/pkg/cloudapi/vins/static_route_add.go index f375d40..5367a28 100644 --- a/pkg/cloudapi/vins/static_route_add.go +++ b/pkg/cloudapi/vins/static_route_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAddRequest struct to add static route @@ -25,10 +25,6 @@ type StaticRouteAddRequest struct { // Next hop host, IP address from ViNS ID free IP pool // Required: true Gateway string `url:"gateway" json:"gateway" validate:"required"` - - // List of Compute IDs which have access to this route - // Required: false - ComputeIds []uint64 `url:"computeIds,omitempty" json:"computeIds,omitempty"` } // StaticRouteAdd adds new static route to ViNS diff --git a/pkg/cloudapi/vins/static_route_del.go b/pkg/cloudapi/vins/static_route_del.go index 547ff6a..ffb8e02 100644 --- a/pkg/cloudapi/vins/static_route_del.go +++ b/pkg/cloudapi/vins/static_route_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteDelRequest struct to remove static route from ViNS diff --git a/pkg/cloudapi/vins/static_route_list.go b/pkg/cloudapi/vins/static_route_list.go index d1c1dcf..8d69645 100644 --- a/pkg/cloudapi/vins/static_route_list.go +++ b/pkg/cloudapi/vins/static_route_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteListRequest struct for static route list diff --git a/pkg/cloudapi/vins/vins.go b/pkg/cloudapi/vins/vins.go index a8ba08d..89c31d6 100644 --- a/pkg/cloudapi/vins/vins.go +++ b/pkg/cloudapi/vins/vins.go @@ -2,7 +2,7 @@ package vins import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to VINS diff --git a/pkg/cloudapi/vins/vnfdev_redeploy.go b/pkg/cloudapi/vins/vnfdev_redeploy.go index bc08f31..2aca08d 100644 --- a/pkg/cloudapi/vins/vnfdev_redeploy.go +++ b/pkg/cloudapi/vins/vnfdev_redeploy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevRedeployRequest struct for redeploy VNFDevs diff --git a/pkg/cloudapi/vins/vnfdev_restart.go b/pkg/cloudapi/vins/vnfdev_restart.go index e1fe164..42af5ee 100644 --- a/pkg/cloudapi/vins/vnfdev_restart.go +++ b/pkg/cloudapi/vins/vnfdev_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevRestartRequest struct for reboot VINSes primary VNF device diff --git a/pkg/cloudbroker/account.go b/pkg/cloudbroker/account.go index 211a1d9..b079e1b 100644 --- a/pkg/cloudbroker/account.go +++ b/pkg/cloudbroker/account.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/account" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/account" ) // Accessing the Account method group diff --git a/pkg/cloudbroker/account/account.go b/pkg/cloudbroker/account/account.go index e2f55ce..5f89f65 100644 --- a/pkg/cloudbroker/account/account.go +++ b/pkg/cloudbroker/account/account.go @@ -1,7 +1,7 @@ // API Actor API for managing account package account -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to account type Account struct { diff --git a/pkg/cloudbroker/account/add_user.go b/pkg/cloudbroker/account/add_user.go index 220c982..2b27dbd 100644 --- a/pkg/cloudbroker/account/add_user.go +++ b/pkg/cloudbroker/account/add_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddUserRequest struct for adding permission to access to account for a user diff --git a/pkg/cloudbroker/account/audits.go b/pkg/cloudbroker/account/audits.go index d5804bd..4786c49 100644 --- a/pkg/cloudbroker/account/audits.go +++ b/pkg/cloudbroker/account/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to give list of account audits diff --git a/pkg/cloudbroker/account/create.go b/pkg/cloudbroker/account/create.go index 288a493..6bbb079 100644 --- a/pkg/cloudbroker/account/create.go +++ b/pkg/cloudbroker/account/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for creating account diff --git a/pkg/cloudbroker/account/delete.go b/pkg/cloudbroker/account/delete.go index 64893cc..6526788 100644 --- a/pkg/cloudbroker/account/delete.go +++ b/pkg/cloudbroker/account/delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete account diff --git a/pkg/cloudbroker/account/delete_accounts.go b/pkg/cloudbroker/account/delete_accounts.go index 60cd21f..2e07c2f 100644 --- a/pkg/cloudbroker/account/delete_accounts.go +++ b/pkg/cloudbroker/account/delete_accounts.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteAccountsRequest struct to delete group of accounts diff --git a/pkg/cloudbroker/account/delete_user.go b/pkg/cloudbroker/account/delete_user.go index 8b58c15..e9b0437 100644 --- a/pkg/cloudbroker/account/delete_user.go +++ b/pkg/cloudbroker/account/delete_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteUserRequest struct to revoke access to account diff --git a/pkg/cloudbroker/account/disable.go b/pkg/cloudbroker/account/disable.go index 04aec6f..a8d8848 100644 --- a/pkg/cloudbroker/account/disable.go +++ b/pkg/cloudbroker/account/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable account diff --git a/pkg/cloudbroker/account/disable_accounts.go b/pkg/cloudbroker/account/disable_accounts.go index ede6c72..c80899d 100644 --- a/pkg/cloudbroker/account/disable_accounts.go +++ b/pkg/cloudbroker/account/disable_accounts.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableAccountsRequest struct to disable group of accounts diff --git a/pkg/cloudbroker/account/enable.go b/pkg/cloudbroker/account/enable.go index 7898e65..384447b 100644 --- a/pkg/cloudbroker/account/enable.go +++ b/pkg/cloudbroker/account/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable account diff --git a/pkg/cloudbroker/account/enable_accounts.go b/pkg/cloudbroker/account/enable_accounts.go index eb14045..d4bc05f 100644 --- a/pkg/cloudbroker/account/enable_accounts.go +++ b/pkg/cloudbroker/account/enable_accounts.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableAccountsRequest to enable group of accounts diff --git a/pkg/cloudbroker/account/get.go b/pkg/cloudbroker/account/get.go index 0d47099..afe9e7c 100644 --- a/pkg/cloudbroker/account/get.go +++ b/pkg/cloudbroker/account/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about account diff --git a/pkg/cloudbroker/account/get_resource_consumption.go b/pkg/cloudbroker/account/get_resource_consumption.go index 38ede51..a526c00 100644 --- a/pkg/cloudbroker/account/get_resource_consumption.go +++ b/pkg/cloudbroker/account/get_resource_consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetResourceConsumptionRequest struct for getting resource consumption diff --git a/pkg/cloudbroker/account/grant_access_templates.go b/pkg/cloudbroker/account/grant_access_templates.go index 1e375b6..43eab1a 100644 --- a/pkg/cloudbroker/account/grant_access_templates.go +++ b/pkg/cloudbroker/account/grant_access_templates.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GrantAccessTemplatesRequest struct to share images with account diff --git a/pkg/cloudbroker/account/list.go b/pkg/cloudbroker/account/list.go index eb04b1e..6fb1e5a 100644 --- a/pkg/cloudbroker/account/list.go +++ b/pkg/cloudbroker/account/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of accounts diff --git a/pkg/cloudbroker/account/list_available_templates.go b/pkg/cloudbroker/account/list_available_templates.go index a16a277..cd75376 100644 --- a/pkg/cloudbroker/account/list_available_templates.go +++ b/pkg/cloudbroker/account/list_available_templates.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListAvailableTemplatesRequest struct to list templates who sharedWith include accountId diff --git a/pkg/cloudbroker/account/list_computes.go b/pkg/cloudbroker/account/list_computes.go index 1bc0a11..12c7da8 100644 --- a/pkg/cloudbroker/account/list_computes.go +++ b/pkg/cloudbroker/account/list_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListComputesRequest struct to a get list of compute instances diff --git a/pkg/cloudbroker/account/list_deleted.go b/pkg/cloudbroker/account/list_deleted.go index e099256..0b43457 100644 --- a/pkg/cloudbroker/account/list_deleted.go +++ b/pkg/cloudbroker/account/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted accounts diff --git a/pkg/cloudbroker/account/list_disks.go b/pkg/cloudbroker/account/list_disks.go index e8778b0..653c841 100644 --- a/pkg/cloudbroker/account/list_disks.go +++ b/pkg/cloudbroker/account/list_disks.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDisksRequest struct to get list of deleted disks diff --git a/pkg/cloudbroker/account/list_flip_groups.go b/pkg/cloudbroker/account/list_flip_groups.go index 9c208b0..20ccb74 100644 --- a/pkg/cloudbroker/account/list_flip_groups.go +++ b/pkg/cloudbroker/account/list_flip_groups.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListFLIPGroupsRequest struct to get list of FLIPGroups diff --git a/pkg/cloudbroker/account/list_rg.go b/pkg/cloudbroker/account/list_rg.go index 37bb21d..bf58e16 100644 --- a/pkg/cloudbroker/account/list_rg.go +++ b/pkg/cloudbroker/account/list_rg.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRGRequest struct to get list of resource groups diff --git a/pkg/cloudbroker/account/list_vins.go b/pkg/cloudbroker/account/list_vins.go index 4607f2c..f2f6e6d 100644 --- a/pkg/cloudbroker/account/list_vins.go +++ b/pkg/cloudbroker/account/list_vins.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVINSRequest struct to get list of VINS diff --git a/pkg/cloudbroker/account/restore.go b/pkg/cloudbroker/account/restore.go index 7cd6eae..f6e9a1d 100644 --- a/pkg/cloudbroker/account/restore.go +++ b/pkg/cloudbroker/account/restore.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore a deleted account diff --git a/pkg/cloudbroker/account/revoke_access_templates.go b/pkg/cloudbroker/account/revoke_access_templates.go index c12366c..b77eabe 100644 --- a/pkg/cloudbroker/account/revoke_access_templates.go +++ b/pkg/cloudbroker/account/revoke_access_templates.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RevokeAccessTemplatesRequest struct to unshare images with account diff --git a/pkg/cloudbroker/account/serialize.go b/pkg/cloudbroker/account/serialize.go index 225ddfb..619a8f6 100644 --- a/pkg/cloudbroker/account/serialize.go +++ b/pkg/cloudbroker/account/serialize.go @@ -3,7 +3,7 @@ package account import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/account/set_cpu_allocation_parameter.go b/pkg/cloudbroker/account/set_cpu_allocation_parameter.go index bb168ce..6e49704 100644 --- a/pkg/cloudbroker/account/set_cpu_allocation_parameter.go +++ b/pkg/cloudbroker/account/set_cpu_allocation_parameter.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationParameterRequest struct for setting CPU allocation parameter diff --git a/pkg/cloudbroker/account/set_cpu_allocation_ratio.go b/pkg/cloudbroker/account/set_cpu_allocation_ratio.go index 08214d6..c2d6189 100644 --- a/pkg/cloudbroker/account/set_cpu_allocation_ratio.go +++ b/pkg/cloudbroker/account/set_cpu_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationRatioRequest struct for setting CPU allocation ratio diff --git a/pkg/cloudbroker/account/update.go b/pkg/cloudbroker/account/update.go index 7f70783..3e5606c 100644 --- a/pkg/cloudbroker/account/update.go +++ b/pkg/cloudbroker/account/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update account diff --git a/pkg/cloudbroker/account/update_compute_features.go b/pkg/cloudbroker/account/update_compute_features.go index a63d6d6..7176cbd 100644 --- a/pkg/cloudbroker/account/update_compute_features.go +++ b/pkg/cloudbroker/account/update_compute_features.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateComputeFeaturesRequest struct to update advanced compute features diff --git a/pkg/cloudbroker/account/update_resource_types.go b/pkg/cloudbroker/account/update_resource_types.go index 18f5ee2..3ec22b8 100644 --- a/pkg/cloudbroker/account/update_resource_types.go +++ b/pkg/cloudbroker/account/update_resource_types.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateResourceTypesRequest struct to update resource types in account diff --git a/pkg/cloudbroker/account/update_user.go b/pkg/cloudbroker/account/update_user.go index 326f1b2..367f175 100644 --- a/pkg/cloudbroker/account/update_user.go +++ b/pkg/cloudbroker/account/update_user.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateUserRequest struct to update user access rights diff --git a/pkg/cloudbroker/apiaccess.go b/pkg/cloudbroker/apiaccess.go index a647342..218e145 100644 --- a/pkg/cloudbroker/apiaccess.go +++ b/pkg/cloudbroker/apiaccess.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/apiaccess" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/apiaccess" // Accessing the APIAccess method group func (cb *CloudBroker) APIAccess() *apiaccess.APIAccess { diff --git a/pkg/cloudbroker/apiaccess/api_find.go b/pkg/cloudbroker/apiaccess/api_find.go index 31fa7a3..31e7db3 100644 --- a/pkg/cloudbroker/apiaccess/api_find.go +++ b/pkg/cloudbroker/apiaccess/api_find.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIFindRequest struct for finding apiaccess groups. diff --git a/pkg/cloudbroker/apiaccess/apiaccess.go b/pkg/cloudbroker/apiaccess/apiaccess.go index 45c84e4..ca38fec 100644 --- a/pkg/cloudbroker/apiaccess/apiaccess.go +++ b/pkg/cloudbroker/apiaccess/apiaccess.go @@ -1,6 +1,6 @@ package apiaccess -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to APIAccess type APIAccess struct { diff --git a/pkg/cloudbroker/apiaccess/apis_exclude.go b/pkg/cloudbroker/apiaccess/apis_exclude.go index d2073ff..bac104b 100644 --- a/pkg/cloudbroker/apiaccess/apis_exclude.go +++ b/pkg/cloudbroker/apiaccess/apis_exclude.go @@ -6,7 +6,7 @@ import ( "fmt" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type APIString string diff --git a/pkg/cloudbroker/apiaccess/apis_include.go b/pkg/cloudbroker/apiaccess/apis_include.go index 9996a2a..c5450f4 100644 --- a/pkg/cloudbroker/apiaccess/apis_include.go +++ b/pkg/cloudbroker/apiaccess/apis_include.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIsIncludeRequest struct for adding api to access group. diff --git a/pkg/cloudbroker/apiaccess/copy.go b/pkg/cloudbroker/apiaccess/copy.go index 07e9c75..79c50bf 100644 --- a/pkg/cloudbroker/apiaccess/copy.go +++ b/pkg/cloudbroker/apiaccess/copy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CopyRequest Request for copying apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/create.go b/pkg/cloudbroker/apiaccess/create.go index 367228e..56148ad 100644 --- a/pkg/cloudbroker/apiaccess/create.go +++ b/pkg/cloudbroker/apiaccess/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for creating apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/delete.go b/pkg/cloudbroker/apiaccess/delete.go index f633603..98097d9 100644 --- a/pkg/cloudbroker/apiaccess/delete.go +++ b/pkg/cloudbroker/apiaccess/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct for deleting apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/desc_update.go b/pkg/cloudbroker/apiaccess/desc_update.go index 3529ee1..b7b74cd 100644 --- a/pkg/cloudbroker/apiaccess/desc_update.go +++ b/pkg/cloudbroker/apiaccess/desc_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DescUpdateRequest struct for updating apiaccess group description. diff --git a/pkg/cloudbroker/apiaccess/get.go b/pkg/cloudbroker/apiaccess/get.go index af5e7ec..df2c4ae 100644 --- a/pkg/cloudbroker/apiaccess/get.go +++ b/pkg/cloudbroker/apiaccess/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/list.go b/pkg/cloudbroker/apiaccess/list.go index 0be7777..513d6be 100644 --- a/pkg/cloudbroker/apiaccess/list.go +++ b/pkg/cloudbroker/apiaccess/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of all non deleted apiaccess instances. diff --git a/pkg/cloudbroker/apiaccess/list_deleted.go b/pkg/cloudbroker/apiaccess/list_deleted.go index ba36f26..57d2ae1 100644 --- a/pkg/cloudbroker/apiaccess/list_deleted.go +++ b/pkg/cloudbroker/apiaccess/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct for getting list of all deleted apiaccess instances. diff --git a/pkg/cloudbroker/apiaccess/set_default.go b/pkg/cloudbroker/apiaccess/set_default.go index ba05696..fe336d0 100644 --- a/pkg/cloudbroker/apiaccess/set_default.go +++ b/pkg/cloudbroker/apiaccess/set_default.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetDefaultRequest struct for setting default apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/subtract.go b/pkg/cloudbroker/apiaccess/subtract.go index d066073..bf74042 100644 --- a/pkg/cloudbroker/apiaccess/subtract.go +++ b/pkg/cloudbroker/apiaccess/subtract.go @@ -6,7 +6,7 @@ import ( "context" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SubtractRequest struct for subtracting. diff --git a/pkg/cloudbroker/apiaccess/union.go b/pkg/cloudbroker/apiaccess/union.go index 92e64c1..1b4b949 100644 --- a/pkg/cloudbroker/apiaccess/union.go +++ b/pkg/cloudbroker/apiaccess/union.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UnionRequest struct for union. diff --git a/pkg/cloudbroker/apiaccess/update.go b/pkg/cloudbroker/apiaccess/update.go index 688f424..893dbbd 100644 --- a/pkg/cloudbroker/apiaccess/update.go +++ b/pkg/cloudbroker/apiaccess/update.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct for updating apis of apiaccess group. diff --git a/pkg/cloudbroker/apiaccess/user_list.go b/pkg/cloudbroker/apiaccess/user_list.go index 757a91e..9cc0d06 100644 --- a/pkg/cloudbroker/apiaccess/user_list.go +++ b/pkg/cloudbroker/apiaccess/user_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserListRequest struct for getting a list of users currently included in the specified group. diff --git a/pkg/cloudbroker/audit.go b/pkg/cloudbroker/audit.go index 2308dc5..94685fc 100644 --- a/pkg/cloudbroker/audit.go +++ b/pkg/cloudbroker/audit.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/audit" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/audit" ) // Accessing the Stack method group diff --git a/pkg/cloudbroker/audit/audit.go b/pkg/cloudbroker/audit/audit.go index 81e0263..c099d42 100644 --- a/pkg/cloudbroker/audit/audit.go +++ b/pkg/cloudbroker/audit/audit.go @@ -1,6 +1,6 @@ package audit -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to audit type Audit struct { diff --git a/pkg/cloudbroker/audit/export_audits_to_file.go b/pkg/cloudbroker/audit/export_audits_to_file.go index e0dc5fb..de9f2fa 100644 --- a/pkg/cloudbroker/audit/export_audits_to_file.go +++ b/pkg/cloudbroker/audit/export_audits_to_file.go @@ -9,7 +9,7 @@ import ( func (a Audit) ExportAuditsToFile(ctx context.Context) ([]byte, error) { url := "/cloudbroker/audit/exportAuditsToFile" - res, err := a.client.DecortApiCall(ctx, http.MethodPost, url, nil) + res, err := a.client.DecortApiCall(ctx, http.MethodGet, url, nil) if err != nil { return nil, err } diff --git a/pkg/cloudbroker/audit/get.go b/pkg/cloudbroker/audit/get.go index 1aa4bf3..9e58298 100644 --- a/pkg/cloudbroker/audit/get.go +++ b/pkg/cloudbroker/audit/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about account diff --git a/pkg/cloudbroker/audit/linked_jobs.go b/pkg/cloudbroker/audit/linked_jobs.go index 812b4db..a6142cf 100644 --- a/pkg/cloudbroker/audit/linked_jobs.go +++ b/pkg/cloudbroker/audit/linked_jobs.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // LinkedJobsRequest struct to get information about jobs linked with Audit diff --git a/pkg/cloudbroker/audit/list.go b/pkg/cloudbroker/audit/list.go index 19cd8fb..e3b116c 100644 --- a/pkg/cloudbroker/audit/list.go +++ b/pkg/cloudbroker/audit/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to give list of account audits diff --git a/pkg/cloudbroker/backup.go b/pkg/cloudbroker/backup.go index db56f36..93dab64 100644 --- a/pkg/cloudbroker/backup.go +++ b/pkg/cloudbroker/backup.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/backup" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/backup" // Accessing the Backup method group func (cb *CloudBroker) Backup() *backup.Backup { diff --git a/pkg/cloudbroker/backup/backup.go b/pkg/cloudbroker/backup/backup.go index 57e7f23..aa7c96b 100644 --- a/pkg/cloudbroker/backup/backup.go +++ b/pkg/cloudbroker/backup/backup.go @@ -1,7 +1,7 @@ package backup import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to backup diff --git a/pkg/cloudbroker/backup/create_disk_backup.go b/pkg/cloudbroker/backup/create_disk_backup.go index 42fb513..b3afe2f 100644 --- a/pkg/cloudbroker/backup/create_disk_backup.go +++ b/pkg/cloudbroker/backup/create_disk_backup.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateDiskBackupRequest struct for creating disk backup diff --git a/pkg/cloudbroker/backup/create_disks_backup.go b/pkg/cloudbroker/backup/create_disks_backup.go index b7aaa1e..c1ac286 100644 --- a/pkg/cloudbroker/backup/create_disks_backup.go +++ b/pkg/cloudbroker/backup/create_disks_backup.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Disk struct { diff --git a/pkg/cloudbroker/backup/delete_disk_backup.go b/pkg/cloudbroker/backup/delete_disk_backup.go index 783fe25..e2ece58 100644 --- a/pkg/cloudbroker/backup/delete_disk_backup.go +++ b/pkg/cloudbroker/backup/delete_disk_backup.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteDiskBackupRequest struct for deleting disk backup diff --git a/pkg/cloudbroker/backup/list_backup_paths.go b/pkg/cloudbroker/backup/list_backup_paths.go index e506ce2..e2b7fcc 100644 --- a/pkg/cloudbroker/backup/list_backup_paths.go +++ b/pkg/cloudbroker/backup/list_backup_paths.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListBackupPathsRequest struct for getting list of backup paths diff --git a/pkg/cloudbroker/backup/restore_disk_from_backup.go b/pkg/cloudbroker/backup/restore_disk_from_backup.go index 26532cd..c8fdcee 100644 --- a/pkg/cloudbroker/backup/restore_disk_from_backup.go +++ b/pkg/cloudbroker/backup/restore_disk_from_backup.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreDiskFromBackupRequest struct for restoring disk from backup diff --git a/pkg/cloudbroker/backup/restore_disks_from_backup.go b/pkg/cloudbroker/backup/restore_disks_from_backup.go index f02ea46..a22f79e 100644 --- a/pkg/cloudbroker/backup/restore_disks_from_backup.go +++ b/pkg/cloudbroker/backup/restore_disks_from_backup.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type BackupFile struct { diff --git a/pkg/cloudbroker/cloudbroker.go b/pkg/cloudbroker/cloudbroker.go index 621262c..361ef23 100644 --- a/pkg/cloudbroker/cloudbroker.go +++ b/pkg/cloudbroker/cloudbroker.go @@ -1,7 +1,7 @@ // List of method groups for the admin package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to CloudBroker groups type CloudBroker struct { diff --git a/pkg/cloudbroker/compute.go b/pkg/cloudbroker/compute.go index 305020e..778cfc4 100644 --- a/pkg/cloudbroker/compute.go +++ b/pkg/cloudbroker/compute.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/compute" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/compute" ) // Accessing the Compute method group diff --git a/pkg/cloudbroker/compute/affinity_group_check_start.go b/pkg/cloudbroker/compute/affinity_group_check_start.go index 3dc240a..bbb90d8 100644 --- a/pkg/cloudbroker/compute/affinity_group_check_start.go +++ b/pkg/cloudbroker/compute/affinity_group_check_start.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupCheckStartRequest struct to check all computes with current affinity label can start diff --git a/pkg/cloudbroker/compute/affinity_label_remove.go b/pkg/cloudbroker/compute/affinity_label_remove.go index dd2c31b..cb7f229 100644 --- a/pkg/cloudbroker/compute/affinity_label_remove.go +++ b/pkg/cloudbroker/compute/affinity_label_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityLabelRemoveRequest struct for clear affinity label for compute diff --git a/pkg/cloudbroker/compute/affinity_label_set.go b/pkg/cloudbroker/compute/affinity_label_set.go index 496e153..b535cac 100644 --- a/pkg/cloudbroker/compute/affinity_label_set.go +++ b/pkg/cloudbroker/compute/affinity_label_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityLabelSetRequest struct to set affinity label for compute diff --git a/pkg/cloudbroker/compute/affinity_relations.go b/pkg/cloudbroker/compute/affinity_relations.go index c5cfd1f..74a4961 100644 --- a/pkg/cloudbroker/compute/affinity_relations.go +++ b/pkg/cloudbroker/compute/affinity_relations.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRelationsRequest struct to get dict of computes diff --git a/pkg/cloudbroker/compute/affinity_rule_add.go b/pkg/cloudbroker/compute/affinity_rule_add.go index 2dc88fd..d96635e 100644 --- a/pkg/cloudbroker/compute/affinity_rule_add.go +++ b/pkg/cloudbroker/compute/affinity_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRuleAddRequest struct to add affinity rule diff --git a/pkg/cloudbroker/compute/affinity_rule_remove.go b/pkg/cloudbroker/compute/affinity_rule_remove.go index c91b333..ec41aea 100644 --- a/pkg/cloudbroker/compute/affinity_rule_remove.go +++ b/pkg/cloudbroker/compute/affinity_rule_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRuleRemoveRequest struct to remove affinity rule diff --git a/pkg/cloudbroker/compute/affinity_rules_clear.go b/pkg/cloudbroker/compute/affinity_rules_clear.go index 0f74c0b..3bc5754 100644 --- a/pkg/cloudbroker/compute/affinity_rules_clear.go +++ b/pkg/cloudbroker/compute/affinity_rules_clear.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityRulesClearRequest struct to clear affinity rules diff --git a/pkg/cloudbroker/compute/anti_affinity_rule_add.go b/pkg/cloudbroker/compute/anti_affinity_rule_add.go index b2a7095..1ff7abb 100644 --- a/pkg/cloudbroker/compute/anti_affinity_rule_add.go +++ b/pkg/cloudbroker/compute/anti_affinity_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRuleAddRequest struct to add anti affinity rule diff --git a/pkg/cloudbroker/compute/anti_affinity_rule_clear.go b/pkg/cloudbroker/compute/anti_affinity_rule_clear.go index f3fae00..5d846f2 100644 --- a/pkg/cloudbroker/compute/anti_affinity_rule_clear.go +++ b/pkg/cloudbroker/compute/anti_affinity_rule_clear.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRulesClearRequest struct to clear anti affinity rules diff --git a/pkg/cloudbroker/compute/anti_affinity_rule_remove.go b/pkg/cloudbroker/compute/anti_affinity_rule_remove.go index 01d7a10..752092e 100644 --- a/pkg/cloudbroker/compute/anti_affinity_rule_remove.go +++ b/pkg/cloudbroker/compute/anti_affinity_rule_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AntiAffinityRuleRemoveRequest struct to remove anti affinity rule diff --git a/pkg/cloudbroker/compute/attach_gpu.go b/pkg/cloudbroker/compute/attach_gpu.go index 041e53a..475057e 100644 --- a/pkg/cloudbroker/compute/attach_gpu.go +++ b/pkg/cloudbroker/compute/attach_gpu.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AttachGPURequest struct to attach GPU for compute diff --git a/pkg/cloudbroker/compute/attach_pci_device.go b/pkg/cloudbroker/compute/attach_pci_device.go index 593554c..4945b72 100644 --- a/pkg/cloudbroker/compute/attach_pci_device.go +++ b/pkg/cloudbroker/compute/attach_pci_device.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AttachPCIDeviceRequest struct to attach PCI device diff --git a/pkg/cloudbroker/compute/audits.go b/pkg/cloudbroker/compute/audits.go index b47638f..81d965e 100644 --- a/pkg/cloudbroker/compute/audits.go +++ b/pkg/cloudbroker/compute/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audit records diff --git a/pkg/cloudbroker/compute/boot_disk_set.go b/pkg/cloudbroker/compute/boot_disk_set.go index b389afe..5445145 100644 --- a/pkg/cloudbroker/compute/boot_disk_set.go +++ b/pkg/cloudbroker/compute/boot_disk_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootDiskSetRequest struct to set boot disk for compute diff --git a/pkg/cloudbroker/compute/boot_order_get.go b/pkg/cloudbroker/compute/boot_order_get.go index 3f19e7c..8368969 100644 --- a/pkg/cloudbroker/compute/boot_order_get.go +++ b/pkg/cloudbroker/compute/boot_order_get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootOrderGetRequest struct to get boot order diff --git a/pkg/cloudbroker/compute/boot_order_set.go b/pkg/cloudbroker/compute/boot_order_set.go index fd937e7..dcb577f 100644 --- a/pkg/cloudbroker/compute/boot_order_set.go +++ b/pkg/cloudbroker/compute/boot_order_set.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BootOrderSetRequest struct to set boot order diff --git a/pkg/cloudbroker/compute/cd_eject.go b/pkg/cloudbroker/compute/cd_eject.go index a4a09eb..a3f222e 100644 --- a/pkg/cloudbroker/compute/cd_eject.go +++ b/pkg/cloudbroker/compute/cd_eject.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CDEjectRequest struct to eject CD image diff --git a/pkg/cloudbroker/compute/cd_insert.go b/pkg/cloudbroker/compute/cd_insert.go index d0694ef..d99af27 100644 --- a/pkg/cloudbroker/compute/cd_insert.go +++ b/pkg/cloudbroker/compute/cd_insert.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CDInsertRequest struct to insert new CD image diff --git a/pkg/cloudbroker/compute/change_ip.go b/pkg/cloudbroker/compute/change_ip.go index 5c7b6c9..8d20168 100644 --- a/pkg/cloudbroker/compute/change_ip.go +++ b/pkg/cloudbroker/compute/change_ip.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ChangeIPRequest struct to change IP for network diff --git a/pkg/cloudbroker/compute/change_link_state.go b/pkg/cloudbroker/compute/change_link_state.go index 56e2d9a..e48790a 100644 --- a/pkg/cloudbroker/compute/change_link_state.go +++ b/pkg/cloudbroker/compute/change_link_state.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ChangeLinkStateRequest struct for changing link state diff --git a/pkg/cloudbroker/compute/clone.go b/pkg/cloudbroker/compute/clone.go index 82f3c6f..2e22ba4 100644 --- a/pkg/cloudbroker/compute/clone.go +++ b/pkg/cloudbroker/compute/clone.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CloneRequest struct to clone compute instance diff --git a/pkg/cloudbroker/compute/compute.go b/pkg/cloudbroker/compute/compute.go index b51dcc7..bedd2f6 100644 --- a/pkg/cloudbroker/compute/compute.go +++ b/pkg/cloudbroker/compute/compute.go @@ -1,7 +1,7 @@ // API Actor for managing Compute. This actor is a final API for admin to manage Compute package compute -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to compute type Compute struct { diff --git a/pkg/cloudbroker/compute/computeci_set.go b/pkg/cloudbroker/compute/computeci_set.go index a2a0845..3af7b68 100644 --- a/pkg/cloudbroker/compute/computeci_set.go +++ b/pkg/cloudbroker/compute/computeci_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeCISetRequest struct to set compute CI diff --git a/pkg/cloudbroker/compute/computeci_unset.go b/pkg/cloudbroker/compute/computeci_unset.go index 8498e46..f321dfa 100644 --- a/pkg/cloudbroker/compute/computeci_unset.go +++ b/pkg/cloudbroker/compute/computeci_unset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeCIUnsetRequest struct to unset compute CI diff --git a/pkg/cloudbroker/compute/create_template.go b/pkg/cloudbroker/compute/create_template.go index 608a6fb..0ca49b3 100644 --- a/pkg/cloudbroker/compute/create_template.go +++ b/pkg/cloudbroker/compute/create_template.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateTemplateRequest struct to create template diff --git a/pkg/cloudbroker/compute/create_template_from_blank.go b/pkg/cloudbroker/compute/create_template_from_blank.go index 070bd3e..1e93ed0 100644 --- a/pkg/cloudbroker/compute/create_template_from_blank.go +++ b/pkg/cloudbroker/compute/create_template_from_blank.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateTemplateFromBlankRequest struct to create template from boot disk of current compute diff --git a/pkg/cloudbroker/compute/delete.go b/pkg/cloudbroker/compute/delete.go index f7542d2..a758811 100644 --- a/pkg/cloudbroker/compute/delete.go +++ b/pkg/cloudbroker/compute/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete compute diff --git a/pkg/cloudbroker/compute/delete_custom_fields.go b/pkg/cloudbroker/compute/delete_custom_fields.go index 19331b3..228e0a2 100644 --- a/pkg/cloudbroker/compute/delete_custom_fields.go +++ b/pkg/cloudbroker/compute/delete_custom_fields.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteCustomFieldsRequest struct to delete compute's custom fields diff --git a/pkg/cloudbroker/compute/detach_gpu.go b/pkg/cloudbroker/compute/detach_gpu.go index 42f987c..a8d00b2 100644 --- a/pkg/cloudbroker/compute/detach_gpu.go +++ b/pkg/cloudbroker/compute/detach_gpu.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DetachGPURequest struct to detach VGPU for compute diff --git a/pkg/cloudbroker/compute/detach_pci_device.go b/pkg/cloudbroker/compute/detach_pci_device.go index dfb7164..96767a7 100644 --- a/pkg/cloudbroker/compute/detach_pci_device.go +++ b/pkg/cloudbroker/compute/detach_pci_device.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DetachPCIDeviceRequest struct to detach PCI device diff --git a/pkg/cloudbroker/compute/disable.go b/pkg/cloudbroker/compute/disable.go index 81f15e5..101c691 100644 --- a/pkg/cloudbroker/compute/disable.go +++ b/pkg/cloudbroker/compute/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable compute diff --git a/pkg/cloudbroker/compute/disk_add.go b/pkg/cloudbroker/compute/disk_add.go index 948ba7a..120742e 100644 --- a/pkg/cloudbroker/compute/disk_add.go +++ b/pkg/cloudbroker/compute/disk_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskAddRequest struct to create and attach disk to compute diff --git a/pkg/cloudbroker/compute/disk_attach.go b/pkg/cloudbroker/compute/disk_attach.go index 6c5e66d..a2c72ba 100644 --- a/pkg/cloudbroker/compute/disk_attach.go +++ b/pkg/cloudbroker/compute/disk_attach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskAttachRequest struct to attach disk to compute diff --git a/pkg/cloudbroker/compute/disk_del.go b/pkg/cloudbroker/compute/disk_del.go index b16873e..0b3b9ed 100644 --- a/pkg/cloudbroker/compute/disk_del.go +++ b/pkg/cloudbroker/compute/disk_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskDelRequest struct to detach and delete disk from compute diff --git a/pkg/cloudbroker/compute/disk_detach.go b/pkg/cloudbroker/compute/disk_detach.go index 854c682..388e192 100644 --- a/pkg/cloudbroker/compute/disk_detach.go +++ b/pkg/cloudbroker/compute/disk_detach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskDetachRequest struct to detach disk from compute diff --git a/pkg/cloudbroker/compute/disk_migrate.go b/pkg/cloudbroker/compute/disk_migrate.go index 6c7d493..391e7f5 100644 --- a/pkg/cloudbroker/compute/disk_migrate.go +++ b/pkg/cloudbroker/compute/disk_migrate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskMigrateRequest struct to migrate compute's disk to target disk diff --git a/pkg/cloudbroker/compute/disk_qos.go b/pkg/cloudbroker/compute/disk_qos.go index 8004563..3cdf2ec 100644 --- a/pkg/cloudbroker/compute/disk_qos.go +++ b/pkg/cloudbroker/compute/disk_qos.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskQOSRequest struct to change QOS of the disk diff --git a/pkg/cloudbroker/compute/disk_resize.go b/pkg/cloudbroker/compute/disk_resize.go index 80fdd03..69c5f86 100644 --- a/pkg/cloudbroker/compute/disk_resize.go +++ b/pkg/cloudbroker/compute/disk_resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskResizeRequest struct to change disk size diff --git a/pkg/cloudbroker/compute/disk_switch_to_replication.go b/pkg/cloudbroker/compute/disk_switch_to_replication.go index 6b37018..689b1db 100644 --- a/pkg/cloudbroker/compute/disk_switch_to_replication.go +++ b/pkg/cloudbroker/compute/disk_switch_to_replication.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskSwitchToReplicationRequest struct to switch disk to it's replication diff --git a/pkg/cloudbroker/compute/enable.go b/pkg/cloudbroker/compute/enable.go index 30951a4..5fdbf62 100644 --- a/pkg/cloudbroker/compute/enable.go +++ b/pkg/cloudbroker/compute/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable compute diff --git a/pkg/cloudbroker/compute/filter.go b/pkg/cloudbroker/compute/filter.go index 7f86b0f..4d791b2 100644 --- a/pkg/cloudbroker/compute/filter.go +++ b/pkg/cloudbroker/compute/filter.go @@ -3,9 +3,9 @@ package compute import ( "context" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/k8s" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/lb" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/lb" ) // FilterByID returns ListComputes with specified ID. diff --git a/pkg/cloudbroker/compute/get.go b/pkg/cloudbroker/compute/get.go index c44a7a7..c2113b4 100644 --- a/pkg/cloudbroker/compute/get.go +++ b/pkg/cloudbroker/compute/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest to get information about compute diff --git a/pkg/cloudbroker/compute/get_audits.go b/pkg/cloudbroker/compute/get_audits.go index df3b72f..6377017 100644 --- a/pkg/cloudbroker/compute/get_audits.go +++ b/pkg/cloudbroker/compute/get_audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetAuditsRequest struct to get compute audits diff --git a/pkg/cloudbroker/compute/get_console_url.go b/pkg/cloudbroker/compute/get_console_url.go index 8edf930..a50cb9e 100644 --- a/pkg/cloudbroker/compute/get_console_url.go +++ b/pkg/cloudbroker/compute/get_console_url.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConsoleURLRequest struct to get console URL diff --git a/pkg/cloudbroker/compute/get_custom_fields.go b/pkg/cloudbroker/compute/get_custom_fields.go index dd948c9..34bc6d6 100644 --- a/pkg/cloudbroker/compute/get_custom_fields.go +++ b/pkg/cloudbroker/compute/get_custom_fields.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetCustomFieldsRequest struct to get Compute's customFields diff --git a/pkg/cloudbroker/compute/get_log.go b/pkg/cloudbroker/compute/get_log.go index f169da7..f604d89 100644 --- a/pkg/cloudbroker/compute/get_log.go +++ b/pkg/cloudbroker/compute/get_log.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetLogRequest struct to get compute logs diff --git a/pkg/cloudbroker/compute/list.go b/pkg/cloudbroker/compute/list.go index 8424457..7182627 100644 --- a/pkg/cloudbroker/compute/list.go +++ b/pkg/cloudbroker/compute/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of available computes @@ -50,6 +50,10 @@ type ListRequest struct { // Required: false ImageID uint64 `url:"imageId,omitempty" json:"imageId,omitempty"` + // Find by CD image ID + // Required: false + CDImageID uint64 `url:"cdImageId,omitempty" json:"cdImageId,omitempty"` + // Find by external network name // Required: false ExtNetName string `url:"extNetName,omitempty" json:"extNetName,omitempty"` diff --git a/pkg/cloudbroker/compute/list_deleted.go b/pkg/cloudbroker/compute/list_deleted.go index 7c7e757..524a6ff 100644 --- a/pkg/cloudbroker/compute/list_deleted.go +++ b/pkg/cloudbroker/compute/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get deleted computes list diff --git a/pkg/cloudbroker/compute/list_pci_device.go b/pkg/cloudbroker/compute/list_pci_device.go index af8afd3..bf9dec8 100644 --- a/pkg/cloudbroker/compute/list_pci_device.go +++ b/pkg/cloudbroker/compute/list_pci_device.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListPCIDeviceRequest struct to get list of PCI devices diff --git a/pkg/cloudbroker/compute/list_vgpu.go b/pkg/cloudbroker/compute/list_vgpu.go index e39f605..a8788a9 100644 --- a/pkg/cloudbroker/compute/list_vgpu.go +++ b/pkg/cloudbroker/compute/list_vgpu.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVGPURequest struct to get list of GPU for compute diff --git a/pkg/cloudbroker/compute/mass_delete.go b/pkg/cloudbroker/compute/mass_delete.go index 6b41f63..4503743 100644 --- a/pkg/cloudbroker/compute/mass_delete.go +++ b/pkg/cloudbroker/compute/mass_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassDeleteRequest struct to delete several computes diff --git a/pkg/cloudbroker/compute/mass_reboot.go b/pkg/cloudbroker/compute/mass_reboot.go index 95d1c8b..2248c9e 100644 --- a/pkg/cloudbroker/compute/mass_reboot.go +++ b/pkg/cloudbroker/compute/mass_reboot.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassRebootRequest struct to reboot several computes diff --git a/pkg/cloudbroker/compute/mass_repair_boot_fs.go b/pkg/cloudbroker/compute/mass_repair_boot_fs.go index a028725..5895b43 100644 --- a/pkg/cloudbroker/compute/mass_repair_boot_fs.go +++ b/pkg/cloudbroker/compute/mass_repair_boot_fs.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassRepairBootFSRequest struct to repair boot disk filesystem on several computes diff --git a/pkg/cloudbroker/compute/mass_start.go b/pkg/cloudbroker/compute/mass_start.go index d310184..dee80f8 100644 --- a/pkg/cloudbroker/compute/mass_start.go +++ b/pkg/cloudbroker/compute/mass_start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassStartRequest struct to start several computes diff --git a/pkg/cloudbroker/compute/mass_stop.go b/pkg/cloudbroker/compute/mass_stop.go index 7fbedd3..b200320 100644 --- a/pkg/cloudbroker/compute/mass_stop.go +++ b/pkg/cloudbroker/compute/mass_stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassStopRequest struct to stop several computes diff --git a/pkg/cloudbroker/compute/migrate.go b/pkg/cloudbroker/compute/migrate.go index a5649f9..2ce92e4 100644 --- a/pkg/cloudbroker/compute/migrate.go +++ b/pkg/cloudbroker/compute/migrate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MigrateRequest struct to migrate compute diff --git a/pkg/cloudbroker/compute/migrate_storage.go b/pkg/cloudbroker/compute/migrate_storage.go index fd05bba..5c2a4c7 100644 --- a/pkg/cloudbroker/compute/migrate_storage.go +++ b/pkg/cloudbroker/compute/migrate_storage.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MigrateStorageRequest struct for migration diff --git a/pkg/cloudbroker/compute/migrate_storage_abort.go b/pkg/cloudbroker/compute/migrate_storage_abort.go index 19394d8..328e417 100644 --- a/pkg/cloudbroker/compute/migrate_storage_abort.go +++ b/pkg/cloudbroker/compute/migrate_storage_abort.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MigrateStorageAbortRequest struct to abort migration diff --git a/pkg/cloudbroker/compute/migrate_storage_clean_up.go b/pkg/cloudbroker/compute/migrate_storage_clean_up.go index 9e104fc..ac9e484 100644 --- a/pkg/cloudbroker/compute/migrate_storage_clean_up.go +++ b/pkg/cloudbroker/compute/migrate_storage_clean_up.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MigrateStorageCleanUpRequest struct to cleanup resources after finished migration diff --git a/pkg/cloudbroker/compute/migrate_storage_info.go b/pkg/cloudbroker/compute/migrate_storage_info.go index 79901fa..0754472 100644 --- a/pkg/cloudbroker/compute/migrate_storage_info.go +++ b/pkg/cloudbroker/compute/migrate_storage_info.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MigrateStorageInfoRequest struct to get info about migration diff --git a/pkg/cloudbroker/compute/models.go b/pkg/cloudbroker/compute/models.go index 9457cb3..a5f73cc 100644 --- a/pkg/cloudbroker/compute/models.go +++ b/pkg/cloudbroker/compute/models.go @@ -624,6 +624,9 @@ type InfoCompute struct { // Anti affinity rules AntiAffinityRules ListRules `json:"antiAffinityRules"` + // Auto start when node restarted + AutoStart bool `json:"autoStart"` + // Architecture Arch string `json:"arch"` @@ -729,6 +732,9 @@ type InfoCompute struct { // Pinned Pinned bool `json:"pinned"` + // PreferredCPU + PreferredCPU []int64 `json:"preferredCpu"` + // Number of RAM RAM uint64 `json:"ram"` @@ -846,6 +852,9 @@ type RecordCompute struct { // Anti affinity rules AntiAffinityRules ListRules `json:"antiAffinityRules"` + // Auto start when node restarted + AutoStart bool `json:"autoStart"` + // Architecture Arch string `json:"arch"` @@ -975,6 +984,9 @@ type RecordCompute struct { // Pinned Pinned bool `json:"pinned"` + // PreferredCPU + PreferredCPU []int64 `json:"preferredCpu"` + // Number of RAM RAM uint64 `json:"ram"` @@ -1035,14 +1047,17 @@ type RecordCompute struct { // Userdata Userdata interface{} `json:"userdata"` - // List VGPUs - VGPUs []ItemVGPU `json:"vgpus"` + // List VGPU IDs + VGPUs []uint64 `json:"vgpus"` // Virtual image ID VirtualImageID uint64 `json:"virtualImageId"` // VirtualImageName VirtualImageName string `json:"virtualImageName"` + + // VNC password + VNCPassword string `json:"vncPasswd"` } // Information about of disk IDs diff --git a/pkg/cloudbroker/compute/move_to_rg.go b/pkg/cloudbroker/compute/move_to_rg.go index 494d383..d0f25b1 100644 --- a/pkg/cloudbroker/compute/move_to_rg.go +++ b/pkg/cloudbroker/compute/move_to_rg.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MoveToRGRequest struct to move compute to new resource group diff --git a/pkg/cloudbroker/compute/net_attach.go b/pkg/cloudbroker/compute/net_attach.go index 4028df4..95c9815 100644 --- a/pkg/cloudbroker/compute/net_attach.go +++ b/pkg/cloudbroker/compute/net_attach.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetAttachRequest struct to attach network diff --git a/pkg/cloudbroker/compute/net_detach.go b/pkg/cloudbroker/compute/net_detach.go index f118717..9c498af 100644 --- a/pkg/cloudbroker/compute/net_detach.go +++ b/pkg/cloudbroker/compute/net_detach.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetDetachRequest struct to detach network from compute diff --git a/pkg/cloudbroker/compute/net_qos.go b/pkg/cloudbroker/compute/net_qos.go index 32f6b1d..cdae326 100644 --- a/pkg/cloudbroker/compute/net_qos.go +++ b/pkg/cloudbroker/compute/net_qos.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetQOSRequest struct for update QOS diff --git a/pkg/cloudbroker/compute/pause.go b/pkg/cloudbroker/compute/pause.go index a1bcb07..65314b9 100644 --- a/pkg/cloudbroker/compute/pause.go +++ b/pkg/cloudbroker/compute/pause.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PauseRequest struct to pause compute diff --git a/pkg/cloudbroker/compute/pfw_add.go b/pkg/cloudbroker/compute/pfw_add.go index 16484e3..d687c96 100644 --- a/pkg/cloudbroker/compute/pfw_add.go +++ b/pkg/cloudbroker/compute/pfw_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWAddRequest struct to add port forward rule diff --git a/pkg/cloudbroker/compute/pfw_del.go b/pkg/cloudbroker/compute/pfw_del.go index 546135e..f9c0487 100644 --- a/pkg/cloudbroker/compute/pfw_del.go +++ b/pkg/cloudbroker/compute/pfw_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWDelRequest struct to delete port forward rule diff --git a/pkg/cloudbroker/compute/pfw_list.go b/pkg/cloudbroker/compute/pfw_list.go index fbc7cf1..8fb50bc 100644 --- a/pkg/cloudbroker/compute/pfw_list.go +++ b/pkg/cloudbroker/compute/pfw_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PFWListRequest struct to get list of port forwards diff --git a/pkg/cloudbroker/compute/pin_to_stack.go b/pkg/cloudbroker/compute/pin_to_stack.go index f41335d..93c54f5 100644 --- a/pkg/cloudbroker/compute/pin_to_stack.go +++ b/pkg/cloudbroker/compute/pin_to_stack.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PinToStackRequest struct to pin compute to stack @@ -21,6 +21,11 @@ type PinToStackRequest struct { // Try to migrate or not if compute in running states // Required: false Force bool `url:"force" json:"force"` + + // Auto start when node restarted + // Required: false + // Default: false + AutoStart bool `url:"autoStart" json:"autoStart"` } // PinToStack pins compute to current stack diff --git a/pkg/cloudbroker/compute/power_cycle.go b/pkg/cloudbroker/compute/power_cycle.go index ca1692a..35ec058 100644 --- a/pkg/cloudbroker/compute/power_cycle.go +++ b/pkg/cloudbroker/compute/power_cycle.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PowerCycleRequest struct to force stop and start compute diff --git a/pkg/cloudbroker/compute/reboot.go b/pkg/cloudbroker/compute/reboot.go index 549fbb6..76f2896 100644 --- a/pkg/cloudbroker/compute/reboot.go +++ b/pkg/cloudbroker/compute/reboot.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RebootRequest struct to reboot compute diff --git a/pkg/cloudbroker/compute/redeploy.go b/pkg/cloudbroker/compute/redeploy.go index bc7a295..3550f2c 100644 --- a/pkg/cloudbroker/compute/redeploy.go +++ b/pkg/cloudbroker/compute/redeploy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RedeployRequest struct for redeploy diff --git a/pkg/cloudbroker/compute/registration.go b/pkg/cloudbroker/compute/registration.go index f51e3b7..361b409 100644 --- a/pkg/cloudbroker/compute/registration.go +++ b/pkg/cloudbroker/compute/registration.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RegistrationRequest struct to set compute registered in RT diff --git a/pkg/cloudbroker/compute/repair_boot_fs.go b/pkg/cloudbroker/compute/repair_boot_fs.go index b61e0ce..ec2dbf2 100644 --- a/pkg/cloudbroker/compute/repair_boot_fs.go +++ b/pkg/cloudbroker/compute/repair_boot_fs.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RepairBootFSRequest struct to repair filesystem diff --git a/pkg/cloudbroker/compute/reset.go b/pkg/cloudbroker/compute/reset.go index 968754f..a0fa7f0 100644 --- a/pkg/cloudbroker/compute/reset.go +++ b/pkg/cloudbroker/compute/reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResetRequest struct to reset compute diff --git a/pkg/cloudbroker/compute/resize.go b/pkg/cloudbroker/compute/resize.go index 32cd3cc..7d902e1 100644 --- a/pkg/cloudbroker/compute/resize.go +++ b/pkg/cloudbroker/compute/resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResizeRequest struct to resize compute @@ -27,6 +27,10 @@ type ResizeRequest struct { // Force compute resize // Required: false Force bool `url:"force,omitempty" json:"force,omitempty"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudbroker/compute/restore.go b/pkg/cloudbroker/compute/restore.go index e978b3d..4ae045d 100644 --- a/pkg/cloudbroker/compute/restore.go +++ b/pkg/cloudbroker/compute/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore compute diff --git a/pkg/cloudbroker/compute/resume.go b/pkg/cloudbroker/compute/resume.go index a7f873d..dcffd59 100644 --- a/pkg/cloudbroker/compute/resume.go +++ b/pkg/cloudbroker/compute/resume.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResumeRequest struct to resume compute diff --git a/pkg/cloudbroker/compute/serialize.go b/pkg/cloudbroker/compute/serialize.go index 88fba6c..00143cb 100644 --- a/pkg/cloudbroker/compute/serialize.go +++ b/pkg/cloudbroker/compute/serialize.go @@ -3,7 +3,7 @@ package compute import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/compute/set_custom_fields.go b/pkg/cloudbroker/compute/set_custom_fields.go index b502757..10e70ac 100644 --- a/pkg/cloudbroker/compute/set_custom_fields.go +++ b/pkg/cloudbroker/compute/set_custom_fields.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCustomFieldsRequest struct for setting customFields values for the Compute diff --git a/pkg/cloudbroker/compute/set_net_config.go b/pkg/cloudbroker/compute/set_net_config.go index baf26b6..0439778 100644 --- a/pkg/cloudbroker/compute/set_net_config.go +++ b/pkg/cloudbroker/compute/set_net_config.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetNetConfigRequest struct to Configure libvirt virtio interface parameters diff --git a/pkg/cloudbroker/compute/snapshot_create.go b/pkg/cloudbroker/compute/snapshot_create.go index dc1f479..fe5c5a5 100644 --- a/pkg/cloudbroker/compute/snapshot_create.go +++ b/pkg/cloudbroker/compute/snapshot_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotCreateRequest struct to create snapshot diff --git a/pkg/cloudbroker/compute/snapshot_delete.go b/pkg/cloudbroker/compute/snapshot_delete.go index 260c653..ecba9d8 100644 --- a/pkg/cloudbroker/compute/snapshot_delete.go +++ b/pkg/cloudbroker/compute/snapshot_delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotDeleteRequest struct to delete snapshot diff --git a/pkg/cloudbroker/compute/snapshot_evict_disk.go b/pkg/cloudbroker/compute/snapshot_evict_disk.go index 5a9ce17..a18a145 100644 --- a/pkg/cloudbroker/compute/snapshot_evict_disk.go +++ b/pkg/cloudbroker/compute/snapshot_evict_disk.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotEvictDiskRequest struct to evict specified disk diff --git a/pkg/cloudbroker/compute/snapshot_list.go b/pkg/cloudbroker/compute/snapshot_list.go index 07f2333..e5d4c1a 100644 --- a/pkg/cloudbroker/compute/snapshot_list.go +++ b/pkg/cloudbroker/compute/snapshot_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotListRequest struct to get list of snapshots diff --git a/pkg/cloudbroker/compute/snapshot_rollback.go b/pkg/cloudbroker/compute/snapshot_rollback.go index 608f6a9..ffc5c5f 100644 --- a/pkg/cloudbroker/compute/snapshot_rollback.go +++ b/pkg/cloudbroker/compute/snapshot_rollback.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotRollbackRequest struct for rollback diff --git a/pkg/cloudbroker/compute/snapshot_usage.go b/pkg/cloudbroker/compute/snapshot_usage.go index fe6a7bb..6b3d5b5 100644 --- a/pkg/cloudbroker/compute/snapshot_usage.go +++ b/pkg/cloudbroker/compute/snapshot_usage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotUsageRequest struct tto get compute snapshot real size on storage diff --git a/pkg/cloudbroker/compute/start.go b/pkg/cloudbroker/compute/start.go index 7478e7c..6c0c963 100644 --- a/pkg/cloudbroker/compute/start.go +++ b/pkg/cloudbroker/compute/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start compute diff --git a/pkg/cloudbroker/compute/stop.go b/pkg/cloudbroker/compute/stop.go index ce7d8f1..10fbe58 100644 --- a/pkg/cloudbroker/compute/stop.go +++ b/pkg/cloudbroker/compute/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop compute diff --git a/pkg/cloudbroker/compute/tag_add.go b/pkg/cloudbroker/compute/tag_add.go index 0e6c50e..10f3468 100644 --- a/pkg/cloudbroker/compute/tag_add.go +++ b/pkg/cloudbroker/compute/tag_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // TagAddRequest struct to add tag to compute diff --git a/pkg/cloudbroker/compute/tag_remove.go b/pkg/cloudbroker/compute/tag_remove.go index 6ca0aac..bf65759 100644 --- a/pkg/cloudbroker/compute/tag_remove.go +++ b/pkg/cloudbroker/compute/tag_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // TagRemoveRequest struct to remove tag from compute diff --git a/pkg/cloudbroker/compute/unpin_from_stack.go b/pkg/cloudbroker/compute/unpin_from_stack.go index 6d290cc..cb553ad 100644 --- a/pkg/cloudbroker/compute/unpin_from_stack.go +++ b/pkg/cloudbroker/compute/unpin_from_stack.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UnpinFromStackRequest struct to unpin from stack diff --git a/pkg/cloudbroker/compute/update.go b/pkg/cloudbroker/compute/update.go index 7d456b3..645e557 100644 --- a/pkg/cloudbroker/compute/update.go +++ b/pkg/cloudbroker/compute/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update compute @@ -43,6 +43,15 @@ type UpdateRequest struct { // Required: false // Default: false HPBacked bool `url:"hpBacked" json:"hpBacked"` + + // Auto start when node restarted + // Required: false + // Default: false + AutoStart bool `url:"autoStart" json:"autoStart"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // Update updates some properties of the compute diff --git a/pkg/cloudbroker/compute/user_grant.go b/pkg/cloudbroker/compute/user_grant.go index cab8467..4d76a33 100644 --- a/pkg/cloudbroker/compute/user_grant.go +++ b/pkg/cloudbroker/compute/user_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserGrantRequest struct to grant access to compute diff --git a/pkg/cloudbroker/compute/user_list.go b/pkg/cloudbroker/compute/user_list.go index 0812b81..43d1f55 100644 --- a/pkg/cloudbroker/compute/user_list.go +++ b/pkg/cloudbroker/compute/user_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserListRequest struct to get list of users for compute diff --git a/pkg/cloudbroker/compute/user_revoke.go b/pkg/cloudbroker/compute/user_revoke.go index 4268171..c5a0f7e 100644 --- a/pkg/cloudbroker/compute/user_revoke.go +++ b/pkg/cloudbroker/compute/user_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserRevokeRequest struct to revoke user access diff --git a/pkg/cloudbroker/compute/user_update.go b/pkg/cloudbroker/compute/user_update.go index 0781066..e8b50e5 100644 --- a/pkg/cloudbroker/compute/user_update.go +++ b/pkg/cloudbroker/compute/user_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UserUpdateRequest struct to update user access diff --git a/pkg/cloudbroker/disks.go b/pkg/cloudbroker/disks.go index dfe35f1..959fcae 100644 --- a/pkg/cloudbroker/disks.go +++ b/pkg/cloudbroker/disks.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/disks" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/disks" ) // Accessing the Disks method group diff --git a/pkg/cloudbroker/disks/create.go b/pkg/cloudbroker/disks/create.go index 5adcf57..d91e43d 100644 --- a/pkg/cloudbroker/disks/create.go +++ b/pkg/cloudbroker/disks/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create disk diff --git a/pkg/cloudbroker/disks/delete.go b/pkg/cloudbroker/disks/delete.go index b959fcb..4c36476 100644 --- a/pkg/cloudbroker/disks/delete.go +++ b/pkg/cloudbroker/disks/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete disk diff --git a/pkg/cloudbroker/disks/delete_disks.go b/pkg/cloudbroker/disks/delete_disks.go index 73d427d..b67c5d6 100644 --- a/pkg/cloudbroker/disks/delete_disks.go +++ b/pkg/cloudbroker/disks/delete_disks.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteDisksRequest struct for multiple disks diff --git a/pkg/cloudbroker/disks/depresent.go b/pkg/cloudbroker/disks/depresent.go index 71b3692..f3e553d 100644 --- a/pkg/cloudbroker/disks/depresent.go +++ b/pkg/cloudbroker/disks/depresent.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DepresentRequest struct to depresent disk from node diff --git a/pkg/cloudbroker/disks/disks.go b/pkg/cloudbroker/disks/disks.go index cbb5173..37fce55 100644 --- a/pkg/cloudbroker/disks/disks.go +++ b/pkg/cloudbroker/disks/disks.go @@ -1,7 +1,7 @@ // API Actor for managing Disk. This actor is a final API for admin to manage Disk package disks -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to disks type Disks struct { diff --git a/pkg/cloudbroker/disks/filter.go b/pkg/cloudbroker/disks/filter.go index 75eec81..a870e14 100644 --- a/pkg/cloudbroker/disks/filter.go +++ b/pkg/cloudbroker/disks/filter.go @@ -4,9 +4,9 @@ import ( "context" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/k8s" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/lb" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/lb" ) // FilterByID returns ListDisks with specified ID. diff --git a/pkg/cloudbroker/disks/from_platform_disk.go b/pkg/cloudbroker/disks/from_platform_disk.go index b111a8e..2380fc5 100644 --- a/pkg/cloudbroker/disks/from_platform_disk.go +++ b/pkg/cloudbroker/disks/from_platform_disk.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FromPlatformDiskRequest struct to create template from platform disk diff --git a/pkg/cloudbroker/disks/get.go b/pkg/cloudbroker/disks/get.go index f33459a..2656dd1 100644 --- a/pkg/cloudbroker/disks/get.go +++ b/pkg/cloudbroker/disks/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about disk diff --git a/pkg/cloudbroker/disks/limit_io.go b/pkg/cloudbroker/disks/limit_io.go index eca485e..7f4e635 100644 --- a/pkg/cloudbroker/disks/limit_io.go +++ b/pkg/cloudbroker/disks/limit_io.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // LimitIORequest struct for limit IO diff --git a/pkg/cloudbroker/disks/list.go b/pkg/cloudbroker/disks/list.go index fb00a0f..7a94fd4 100644 --- a/pkg/cloudbroker/disks/list.go +++ b/pkg/cloudbroker/disks/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list/list_deleted of disks diff --git a/pkg/cloudbroker/disks/list_deleted.go b/pkg/cloudbroker/disks/list_deleted.go index f8d718f..80c073a 100644 --- a/pkg/cloudbroker/disks/list_deleted.go +++ b/pkg/cloudbroker/disks/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted disks diff --git a/pkg/cloudbroker/disks/list_types.go b/pkg/cloudbroker/disks/list_types.go index 43a906a..417c5dd 100644 --- a/pkg/cloudbroker/disks/list_types.go +++ b/pkg/cloudbroker/disks/list_types.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListTypesRequest struct to get list of types of disks diff --git a/pkg/cloudbroker/disks/list_unattached.go b/pkg/cloudbroker/disks/list_unattached.go index 8cd5f3b..3a53099 100644 --- a/pkg/cloudbroker/disks/list_unattached.go +++ b/pkg/cloudbroker/disks/list_unattached.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListUnattachedRequest struct to get list of unattached disk diff --git a/pkg/cloudbroker/disks/present.go b/pkg/cloudbroker/disks/present.go index 5e992ec..3dd0041 100644 --- a/pkg/cloudbroker/disks/present.go +++ b/pkg/cloudbroker/disks/present.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PresentRequest struct to present disk to node diff --git a/pkg/cloudbroker/disks/rename.go b/pkg/cloudbroker/disks/rename.go index 57d63f3..0df03fc 100644 --- a/pkg/cloudbroker/disks/rename.go +++ b/pkg/cloudbroker/disks/rename.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RenameRequest struct to rename disk diff --git a/pkg/cloudbroker/disks/replicate.go b/pkg/cloudbroker/disks/replicate.go index 0970f7a..f76ee94 100644 --- a/pkg/cloudbroker/disks/replicate.go +++ b/pkg/cloudbroker/disks/replicate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicateRequest struct to create an empty disk in chosen SEP and pool combination. diff --git a/pkg/cloudbroker/disks/replication_resume.go b/pkg/cloudbroker/disks/replication_resume.go index e0d637b..91ac903 100644 --- a/pkg/cloudbroker/disks/replication_resume.go +++ b/pkg/cloudbroker/disks/replication_resume.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationResume struct to resume suspended replication diff --git a/pkg/cloudbroker/disks/replication_reverse.go b/pkg/cloudbroker/disks/replication_reverse.go index e00979b..8fb8dcf 100644 --- a/pkg/cloudbroker/disks/replication_reverse.go +++ b/pkg/cloudbroker/disks/replication_reverse.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationReverseRequest struct to change role between disks replications diff --git a/pkg/cloudbroker/disks/replication_start.go b/pkg/cloudbroker/disks/replication_start.go index 6dd6e83..9171128 100644 --- a/pkg/cloudbroker/disks/replication_start.go +++ b/pkg/cloudbroker/disks/replication_start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStartRequest struct to starts replication between two chosen disks diff --git a/pkg/cloudbroker/disks/replication_status.go b/pkg/cloudbroker/disks/replication_status.go index a2ae2e5..ae64502 100644 --- a/pkg/cloudbroker/disks/replication_status.go +++ b/pkg/cloudbroker/disks/replication_status.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStatusRequest struct to get replication status diff --git a/pkg/cloudbroker/disks/replication_stop.go b/pkg/cloudbroker/disks/replication_stop.go index 8e46387..6007dc6 100644 --- a/pkg/cloudbroker/disks/replication_stop.go +++ b/pkg/cloudbroker/disks/replication_stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationStopRequest struct to remove replication between disks completely diff --git a/pkg/cloudbroker/disks/replication_suspend.go b/pkg/cloudbroker/disks/replication_suspend.go index cddcb1d..3591b5b 100644 --- a/pkg/cloudbroker/disks/replication_suspend.go +++ b/pkg/cloudbroker/disks/replication_suspend.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ReplicationSuspendRequest struct to pause replication with possibility to resume from pause moment diff --git a/pkg/cloudbroker/disks/resize.go b/pkg/cloudbroker/disks/resize.go index bcf447e..70bbbbc 100644 --- a/pkg/cloudbroker/disks/resize.go +++ b/pkg/cloudbroker/disks/resize.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ResizeRequest struct to resize disk @@ -19,31 +19,6 @@ type ResizeRequest struct { Size uint64 `url:"size" json:"size" validate:"required"` } -// Resize resizes disk -// Returns 200 if disk is resized online, else will return 202, -// in that case please stop and start your machine after changing the disk size, for your changes to be reflected. -// This method will not be used for disks, assigned to computes. Only unassigned disks and disks, assigned with "old" virtual machines. -func (d Disks) Resize(ctx context.Context, req ResizeRequest) (bool, error) { - err := validators.ValidateRequest(req) - if err != nil { - return false, validators.ValidationErrors(validators.GetErrors(err)) - } - - url := "/cloudbroker/disks/resize" - - res, err := d.client.DecortApiCall(ctx, http.MethodPost, url, req) - if err != nil { - return false, err - } - - result, err := strconv.ParseBool(string(res)) - if err != nil { - return false, err - } - - return result, nil -} - // Resize2 resize disk // Returns 200 if disk is resized online, else will return 202, // in that case please stop and start your machine after changing the disk size, for your changes to be reflected. diff --git a/pkg/cloudbroker/disks/restore.go b/pkg/cloudbroker/disks/restore.go index 4c544ec..fb820c4 100644 --- a/pkg/cloudbroker/disks/restore.go +++ b/pkg/cloudbroker/disks/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore a deleted unattached disk diff --git a/pkg/cloudbroker/disks/serialize.go b/pkg/cloudbroker/disks/serialize.go index c852d16..8414fa4 100644 --- a/pkg/cloudbroker/disks/serialize.go +++ b/pkg/cloudbroker/disks/serialize.go @@ -3,7 +3,7 @@ package disks import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/disks/share.go b/pkg/cloudbroker/disks/share.go index 0172907..0f9126d 100644 --- a/pkg/cloudbroker/disks/share.go +++ b/pkg/cloudbroker/disks/share.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ShareRequest struct to share data disk diff --git a/pkg/cloudbroker/disks/snapshot_delete.go b/pkg/cloudbroker/disks/snapshot_delete.go index feaaf64..24140d3 100644 --- a/pkg/cloudbroker/disks/snapshot_delete.go +++ b/pkg/cloudbroker/disks/snapshot_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotDeleteRequest struct to delete snapshot diff --git a/pkg/cloudbroker/disks/snapshot_rollback.go b/pkg/cloudbroker/disks/snapshot_rollback.go index e9a5474..83b6fd3 100644 --- a/pkg/cloudbroker/disks/snapshot_rollback.go +++ b/pkg/cloudbroker/disks/snapshot_rollback.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SnapshotRollbackRequest struct to rollback snapshot diff --git a/pkg/cloudbroker/disks/unshare.go b/pkg/cloudbroker/disks/unshare.go index ae79b07..d1f0329 100644 --- a/pkg/cloudbroker/disks/unshare.go +++ b/pkg/cloudbroker/disks/unshare.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UnshareRequest struct to unshare data disk diff --git a/pkg/cloudbroker/dpdk.go b/pkg/cloudbroker/dpdk.go index 117d0dc..a137cdd 100644 --- a/pkg/cloudbroker/dpdk.go +++ b/pkg/cloudbroker/dpdk.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/dpdknet" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/dpdknet" // Accessing the DPDK method group func (ca *CloudBroker) DPDKNet() *dpdknet.DPDKNet { diff --git a/pkg/cloudbroker/dpdknet/create.go b/pkg/cloudbroker/dpdknet/create.go index 0248d7c..7da7801 100644 --- a/pkg/cloudbroker/dpdknet/create.go +++ b/pkg/cloudbroker/dpdknet/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create DPDK network diff --git a/pkg/cloudbroker/dpdknet/delete.go b/pkg/cloudbroker/dpdknet/delete.go index 10c8460..4b450fb 100644 --- a/pkg/cloudbroker/dpdknet/delete.go +++ b/pkg/cloudbroker/dpdknet/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete DPDK network diff --git a/pkg/cloudbroker/dpdknet/disable.go b/pkg/cloudbroker/dpdknet/disable.go index b4c32aa..8380c60 100644 --- a/pkg/cloudbroker/dpdknet/disable.go +++ b/pkg/cloudbroker/dpdknet/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable DPDK network diff --git a/pkg/cloudbroker/dpdknet/dpdk.go b/pkg/cloudbroker/dpdknet/dpdk.go index c7de8c2..8b301fa 100644 --- a/pkg/cloudbroker/dpdknet/dpdk.go +++ b/pkg/cloudbroker/dpdknet/dpdk.go @@ -1,6 +1,6 @@ package dpdknet -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to DPDK network type DPDKNet struct { diff --git a/pkg/cloudbroker/dpdknet/enable.go b/pkg/cloudbroker/dpdknet/enable.go index f20e408..3b40fab 100644 --- a/pkg/cloudbroker/dpdknet/enable.go +++ b/pkg/cloudbroker/dpdknet/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable DPDK network diff --git a/pkg/cloudbroker/dpdknet/get.go b/pkg/cloudbroker/dpdknet/get.go index 10b6f80..a3d74c1 100644 --- a/pkg/cloudbroker/dpdknet/get.go +++ b/pkg/cloudbroker/dpdknet/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about DPDK network diff --git a/pkg/cloudbroker/dpdknet/list.go b/pkg/cloudbroker/dpdknet/list.go index 1b203c6..e0a887e 100644 --- a/pkg/cloudbroker/dpdknet/list.go +++ b/pkg/cloudbroker/dpdknet/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of DPDK networks diff --git a/pkg/cloudbroker/dpdknet/update.go b/pkg/cloudbroker/dpdknet/update.go index a9b4f1d..e5e3636 100644 --- a/pkg/cloudbroker/dpdknet/update.go +++ b/pkg/cloudbroker/dpdknet/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update DPDK network diff --git a/pkg/cloudbroker/extnet.go b/pkg/cloudbroker/extnet.go index 2b0a5ae..4e28160 100644 --- a/pkg/cloudbroker/extnet.go +++ b/pkg/cloudbroker/extnet.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/extnet" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/extnet" ) // Accessing the ExtNet method group diff --git a/pkg/cloudbroker/extnet/access_add.go b/pkg/cloudbroker/extnet/access_add.go index 46a0edc..bdf6bff 100644 --- a/pkg/cloudbroker/extnet/access_add.go +++ b/pkg/cloudbroker/extnet/access_add.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessAddRequest struct to grant access diff --git a/pkg/cloudbroker/extnet/access_remove.go b/pkg/cloudbroker/extnet/access_remove.go index 1a23a7c..b678bf0 100644 --- a/pkg/cloudbroker/extnet/access_remove.go +++ b/pkg/cloudbroker/extnet/access_remove.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRemoveRequest struct to remove access diff --git a/pkg/cloudbroker/extnet/add_reserved_ip.go b/pkg/cloudbroker/extnet/add_reserved_ip.go new file mode 100644 index 0000000..f81050b --- /dev/null +++ b/pkg/cloudbroker/extnet/add_reserved_ip.go @@ -0,0 +1,50 @@ +package extnet + +import ( + "context" + "net/http" + "strconv" + + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" +) + +// AddReserveIPRequest struct to reserved address or address poll +type AddReserveIPRequest struct { + // AccountID to which a reserved address or address pool is added + // Required: true + AccountID uint64 `url:"accountId" json:"accountId" validate:"required"` + + // ExtNetID from which the address or address pool is reserved + // Required: true + ExtNetID uint64 `url:"extnetId" json:"extnetId" validate:"required"` + + // Field for specifying the number of reserved addresses + // Required: false + IPCount uint64 `url:"ipCount,omitempty" json:"ipCount,omitempty"` + + // List of IPs for specifying the desired address + // Required: false + IPs []string `url:"ips,omitempty" json:"ips,omitempty"` +} + +// AddReserveIP reserves address or address poll to external network for account ID +func (e ExtNet) AddReserveIP(ctx context.Context, req AddReserveIPRequest) (bool, error) { + err := validators.ValidateRequest(req) + if err != nil { + return false, validators.ValidationErrors(validators.GetErrors(err)) + } + + url := "/cloudbroker/extnet/addReservedIp" + + res, err := e.client.DecortApiCall(ctx, http.MethodPost, url, req) + if err != nil { + return false, err + } + + result, err := strconv.ParseBool(string(res)) + if err != nil { + return false, err + } + + return result, nil +} diff --git a/pkg/cloudbroker/extnet/create.go b/pkg/cloudbroker/extnet/create.go index 13b0ff4..ac80039 100644 --- a/pkg/cloudbroker/extnet/create.go +++ b/pkg/cloudbroker/extnet/create.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Route struct { diff --git a/pkg/cloudbroker/extnet/default_qos_update.go b/pkg/cloudbroker/extnet/default_qos_update.go index 70f3417..64600e6 100644 --- a/pkg/cloudbroker/extnet/default_qos_update.go +++ b/pkg/cloudbroker/extnet/default_qos_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DefaultQOSUpdateRequest struct for update QOS diff --git a/pkg/cloudbroker/extnet/del_reserved_ip.go b/pkg/cloudbroker/extnet/del_reserved_ip.go new file mode 100644 index 0000000..fa3f01f --- /dev/null +++ b/pkg/cloudbroker/extnet/del_reserved_ip.go @@ -0,0 +1,50 @@ +package extnet + +import ( + "context" + "net/http" + "strconv" + + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" +) + +// DelReserveIPRequest struct to delete reserved address or address poll +type DelReserveIPRequest struct { + // AccountID to which a reserved address or address pool is added + // Required: true + AccountID uint64 `url:"accountId" json:"accountId" validate:"required"` + + // ExtNetID from which the address or address pool is reserved + // Required: true + ExtNetID uint64 `url:"extnetId" json:"extnetId" validate:"required"` + + // Field for specifying the number of reserved addresses + // Required: false + IPCount uint64 `url:"ipCount,omitempty" json:"ipCount,omitempty"` + + // List of IPs for specifying the desired address + // Required: false + IPs []string `url:"ips,omitempty" json:"ips,omitempty"` +} + +// DelReserveIP deletes reserved address or address poll to external network for account ID +func (e ExtNet) DelReserveIP(ctx context.Context, req DelReserveIPRequest) (bool, error) { + err := validators.ValidateRequest(req) + if err != nil { + return false, validators.ValidationErrors(validators.GetErrors(err)) + } + + url := "/cloudbroker/extnet/delReservedIp" + + res, err := e.client.DecortApiCall(ctx, http.MethodPost, url, req) + if err != nil { + return false, err + } + + result, err := strconv.ParseBool(string(res)) + if err != nil { + return false, err + } + + return result, nil +} diff --git a/pkg/cloudbroker/extnet/destroy.go b/pkg/cloudbroker/extnet/destroy.go index 040e242..ba07578 100644 --- a/pkg/cloudbroker/extnet/destroy.go +++ b/pkg/cloudbroker/extnet/destroy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DestroyRequest struct for destroy diff --git a/pkg/cloudbroker/extnet/device_deploy.go b/pkg/cloudbroker/extnet/device_deploy.go index 764661b..04ca988 100644 --- a/pkg/cloudbroker/extnet/device_deploy.go +++ b/pkg/cloudbroker/extnet/device_deploy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeviceDeployRequest struct to deploy network device diff --git a/pkg/cloudbroker/extnet/device_migrate.go b/pkg/cloudbroker/extnet/device_migrate.go index 9ade465..bff05cd 100644 --- a/pkg/cloudbroker/extnet/device_migrate.go +++ b/pkg/cloudbroker/extnet/device_migrate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeviceMigrateRequest struct for migrate VNF diff --git a/pkg/cloudbroker/extnet/device_remove.go b/pkg/cloudbroker/extnet/device_remove.go index dc21e6e..df1de89 100644 --- a/pkg/cloudbroker/extnet/device_remove.go +++ b/pkg/cloudbroker/extnet/device_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeviceRemoveRequest struct to remove network device diff --git a/pkg/cloudbroker/extnet/device_restart.go b/pkg/cloudbroker/extnet/device_restart.go index 0967549..5f38f3d 100644 --- a/pkg/cloudbroker/extnet/device_restart.go +++ b/pkg/cloudbroker/extnet/device_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeviceRestartRequest struct for restart VNF device diff --git a/pkg/cloudbroker/extnet/disable.go b/pkg/cloudbroker/extnet/disable.go index 64ea81c..997adf7 100644 --- a/pkg/cloudbroker/extnet/disable.go +++ b/pkg/cloudbroker/extnet/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable external network diff --git a/pkg/cloudbroker/extnet/dns_apply.go b/pkg/cloudbroker/extnet/dns_apply.go index 81c2ad9..8a0ccf0 100644 --- a/pkg/cloudbroker/extnet/dns_apply.go +++ b/pkg/cloudbroker/extnet/dns_apply.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DNSApplyRequest struct to set new DNS diff --git a/pkg/cloudbroker/extnet/enable.go b/pkg/cloudbroker/extnet/enable.go index af3c9d2..af02d13 100644 --- a/pkg/cloudbroker/extnet/enable.go +++ b/pkg/cloudbroker/extnet/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable external network diff --git a/pkg/cloudbroker/extnet/extnet.go b/pkg/cloudbroker/extnet/extnet.go index 6d3dde8..ba166c0 100644 --- a/pkg/cloudbroker/extnet/extnet.go +++ b/pkg/cloudbroker/extnet/extnet.go @@ -1,7 +1,7 @@ // API Actor for configure and use external networks package extnet -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to extnet type ExtNet struct { diff --git a/pkg/cloudbroker/extnet/get.go b/pkg/cloudbroker/extnet/get.go index 4c35109..652aa4d 100644 --- a/pkg/cloudbroker/extnet/get.go +++ b/pkg/cloudbroker/extnet/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about external network diff --git a/pkg/cloudbroker/extnet/get_reserved_ip.go b/pkg/cloudbroker/extnet/get_reserved_ip.go new file mode 100644 index 0000000..fca647f --- /dev/null +++ b/pkg/cloudbroker/extnet/get_reserved_ip.go @@ -0,0 +1,50 @@ +package extnet + +import ( + "context" + "encoding/json" + "net/http" + + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" +) + +// GetRequest struct to get information about reserved address or address poll +type GetReservedIP struct { + // AccountID of the account whose reservation information we want to receive + // Required: true + AccountID uint64 `url:"accountId" json:"accountId" validate:"required"` + + // Field for specifying the ID of extnet whose reservation information we want to receive + // Required: false + ExtNetID uint64 `url:"extnetId,omitempty" json:"extnetId,omitempty"` +} + +// GetReservedIP gets information about reserved address or address poll as a slice of RecordReservedIP struct +func (e ExtNet) GetReservedIP(ctx context.Context, req GetReservedIP) ([]RecordReservedIP, error) { + res, err := e.GetReservedIPRaw(ctx, req) + if err != nil { + return nil, err + } + + reservedIP := make([]RecordReservedIP, 0) + + err = json.Unmarshal(res, &reservedIP) + if err != nil { + return nil, err + } + + return reservedIP, nil +} + +// GetRaw gets detailed information about external network as an array of bytes +func (e ExtNet) GetReservedIPRaw(ctx context.Context, req GetReservedIP) ([]byte, error) { + err := validators.ValidateRequest(req) + if err != nil { + return nil, validators.ValidationErrors(validators.GetErrors(err)) + } + + url := "/cloudbroker/extnet/getReservedIp" + + res, err := e.client.DecortApiCall(ctx, http.MethodPost, url, req) + return res, err +} diff --git a/pkg/cloudbroker/extnet/ips_exclude.go b/pkg/cloudbroker/extnet/ips_exclude.go index 1c234dc..e6989f8 100644 --- a/pkg/cloudbroker/extnet/ips_exclude.go +++ b/pkg/cloudbroker/extnet/ips_exclude.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPsExcludeRequest struct to exclude list of IPs diff --git a/pkg/cloudbroker/extnet/ips_exclude_range.go b/pkg/cloudbroker/extnet/ips_exclude_range.go index 10379c9..9f1025f 100644 --- a/pkg/cloudbroker/extnet/ips_exclude_range.go +++ b/pkg/cloudbroker/extnet/ips_exclude_range.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPsExcludeRangeRequest struct to exclude range of IPs diff --git a/pkg/cloudbroker/extnet/ips_include.go b/pkg/cloudbroker/extnet/ips_include.go index 76f88a9..6f5d598 100644 --- a/pkg/cloudbroker/extnet/ips_include.go +++ b/pkg/cloudbroker/extnet/ips_include.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPsIncludeRequest struct to include list of IPs diff --git a/pkg/cloudbroker/extnet/ips_include_range.go b/pkg/cloudbroker/extnet/ips_include_range.go index b70d1bf..867e412 100644 --- a/pkg/cloudbroker/extnet/ips_include_range.go +++ b/pkg/cloudbroker/extnet/ips_include_range.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPsIncludeRangeRequest struct to include range of IPs diff --git a/pkg/cloudbroker/extnet/list.go b/pkg/cloudbroker/extnet/list.go index 69f28ae..c197698 100644 --- a/pkg/cloudbroker/extnet/list.go +++ b/pkg/cloudbroker/extnet/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of external network diff --git a/pkg/cloudbroker/extnet/models.go b/pkg/cloudbroker/extnet/models.go index fb34768..56885b9 100644 --- a/pkg/cloudbroker/extnet/models.go +++ b/pkg/cloudbroker/extnet/models.go @@ -17,6 +17,9 @@ type QOS struct { // Main information about reservations type ItemReservation struct { + // Account ID + AccountID uint64 `json:"account_id"` + // Client type ClientType string `json:"clientType"` @@ -238,3 +241,20 @@ type ItemRoutes struct { //Destination network mask in 255.255.255.255 format Netmask string `json:"netmask"` } + +// Detailed information about reserved address or address pool +type RecordReservedIP struct { + ExtnetID int `json:"extnet_id"` + Reservations []Reservations `json:"reservations"` +} + +type Reservations struct { + AccountID int `json:"account_id"` + ClientType string `json:"clientType"` + DomainName string `json:"domainname"` + Hostname string `json:"hostname"` + IP string `json:"ip"` + Mac string `json:"mac"` + Type string `json:"type"` + VMID int `json:"vmId"` +} diff --git a/pkg/cloudbroker/extnet/ntp_apply.go b/pkg/cloudbroker/extnet/ntp_apply.go index a07484d..d7090e9 100644 --- a/pkg/cloudbroker/extnet/ntp_apply.go +++ b/pkg/cloudbroker/extnet/ntp_apply.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NTPApplyRequest struct for set new NTP diff --git a/pkg/cloudbroker/extnet/serialize.go b/pkg/cloudbroker/extnet/serialize.go index 8c00d57..0e05108 100644 --- a/pkg/cloudbroker/extnet/serialize.go +++ b/pkg/cloudbroker/extnet/serialize.go @@ -3,7 +3,7 @@ package extnet import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/extnet/set_default.go b/pkg/cloudbroker/extnet/set_default.go index e191551..6ff9a8d 100644 --- a/pkg/cloudbroker/extnet/set_default.go +++ b/pkg/cloudbroker/extnet/set_default.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetDefaultRequest struct to set external network as default diff --git a/pkg/cloudbroker/extnet/static_route_access_grant.go b/pkg/cloudbroker/extnet/static_route_access_grant.go index da67952..6acc470 100644 --- a/pkg/cloudbroker/extnet/static_route_access_grant.go +++ b/pkg/cloudbroker/extnet/static_route_access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessGrantRequest struct to grant access to static route to Compute/ViNS diff --git a/pkg/cloudbroker/extnet/static_route_access_revoke.go b/pkg/cloudbroker/extnet/static_route_access_revoke.go index a1fdf51..8232b3f 100644 --- a/pkg/cloudbroker/extnet/static_route_access_revoke.go +++ b/pkg/cloudbroker/extnet/static_route_access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessRevokeRequest struct to revoke access to static route to Compute/ViNS diff --git a/pkg/cloudbroker/extnet/static_route_add.go b/pkg/cloudbroker/extnet/static_route_add.go index f452603..3dc517f 100644 --- a/pkg/cloudbroker/extnet/static_route_add.go +++ b/pkg/cloudbroker/extnet/static_route_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAddRequest struct to add static route diff --git a/pkg/cloudbroker/extnet/static_route_del.go b/pkg/cloudbroker/extnet/static_route_del.go index 91dda28..5b1c7e4 100644 --- a/pkg/cloudbroker/extnet/static_route_del.go +++ b/pkg/cloudbroker/extnet/static_route_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteDelRequest struct to remove static route from ViNS diff --git a/pkg/cloudbroker/extnet/static_route_list.go b/pkg/cloudbroker/extnet/static_route_list.go index 05db41a..ec8957c 100644 --- a/pkg/cloudbroker/extnet/static_route_list.go +++ b/pkg/cloudbroker/extnet/static_route_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteListRequest struct for static route list diff --git a/pkg/cloudbroker/extnet/update.go b/pkg/cloudbroker/extnet/update.go index 98ac7e4..059b7da 100644 --- a/pkg/cloudbroker/extnet/update.go +++ b/pkg/cloudbroker/extnet/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update external network diff --git a/pkg/cloudbroker/flipgoup.go b/pkg/cloudbroker/flipgoup.go index 54b164f..96dd5b1 100644 --- a/pkg/cloudbroker/flipgoup.go +++ b/pkg/cloudbroker/flipgoup.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/flipgroup" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/flipgroup" ) // Accessing the FLIPGroup method group diff --git a/pkg/cloudbroker/flipgroup/compute_add.go b/pkg/cloudbroker/flipgroup/compute_add.go index 21c52e0..81ab33e 100644 --- a/pkg/cloudbroker/flipgroup/compute_add.go +++ b/pkg/cloudbroker/flipgroup/compute_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeAddRequest struct to add compute instance diff --git a/pkg/cloudbroker/flipgroup/compute_remove.go b/pkg/cloudbroker/flipgroup/compute_remove.go index 3f4df03..343a8e4 100644 --- a/pkg/cloudbroker/flipgroup/compute_remove.go +++ b/pkg/cloudbroker/flipgroup/compute_remove.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeRemoveRequest struct to remove compute instance diff --git a/pkg/cloudbroker/flipgroup/create.go b/pkg/cloudbroker/flipgroup/create.go index aadf6c0..a7fb2c1 100644 --- a/pkg/cloudbroker/flipgroup/create.go +++ b/pkg/cloudbroker/flipgroup/create.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create FLIPGroup diff --git a/pkg/cloudbroker/flipgroup/delete.go b/pkg/cloudbroker/flipgroup/delete.go index 6ae9176..3c4a3a1 100644 --- a/pkg/cloudbroker/flipgroup/delete.go +++ b/pkg/cloudbroker/flipgroup/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete FLIPGroup diff --git a/pkg/cloudbroker/flipgroup/edit.go b/pkg/cloudbroker/flipgroup/edit.go index 4348f15..777a24e 100644 --- a/pkg/cloudbroker/flipgroup/edit.go +++ b/pkg/cloudbroker/flipgroup/edit.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EditRequest struct to edit FLIPGroup diff --git a/pkg/cloudbroker/flipgroup/flipgroup.go b/pkg/cloudbroker/flipgroup/flipgroup.go index 0f65870..038055e 100644 --- a/pkg/cloudbroker/flipgroup/flipgroup.go +++ b/pkg/cloudbroker/flipgroup/flipgroup.go @@ -2,7 +2,7 @@ package flipgroup import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to FLIPGroup diff --git a/pkg/cloudbroker/flipgroup/get.go b/pkg/cloudbroker/flipgroup/get.go index fa0c6b8..7e1d137 100644 --- a/pkg/cloudbroker/flipgroup/get.go +++ b/pkg/cloudbroker/flipgroup/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about FLIPGroup diff --git a/pkg/cloudbroker/flipgroup/list.go b/pkg/cloudbroker/flipgroup/list.go index ee3fa1b..8c2e308 100644 --- a/pkg/cloudbroker/flipgroup/list.go +++ b/pkg/cloudbroker/flipgroup/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of FLIPGroup available to the current user diff --git a/pkg/cloudbroker/flipgroup/serialize.go b/pkg/cloudbroker/flipgroup/serialize.go index ee1ad19..9f367e3 100644 --- a/pkg/cloudbroker/flipgroup/serialize.go +++ b/pkg/cloudbroker/flipgroup/serialize.go @@ -3,7 +3,7 @@ package flipgroup import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/grid.go b/pkg/cloudbroker/grid.go index 061e4ec..cb5ed97 100644 --- a/pkg/cloudbroker/grid.go +++ b/pkg/cloudbroker/grid.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/grid" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/grid" // Accessing the Grid method group func (cb *CloudBroker) Grid() *grid.Grid { diff --git a/pkg/cloudbroker/grid/add.go b/pkg/cloudbroker/grid/add.go index 7d05c4f..a750456 100644 --- a/pkg/cloudbroker/grid/add.go +++ b/pkg/cloudbroker/grid/add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddRequest struct for location code diff --git a/pkg/cloudbroker/grid/add_custom_backup_path.go b/pkg/cloudbroker/grid/add_custom_backup_path.go index ca00efd..f822296 100644 --- a/pkg/cloudbroker/grid/add_custom_backup_path.go +++ b/pkg/cloudbroker/grid/add_custom_backup_path.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddCustomBackupPathRequest struct to add new path to the list of custom backup paths diff --git a/pkg/cloudbroker/grid/change_settings.go b/pkg/cloudbroker/grid/change_settings.go index 444864e..2ba0257 100644 --- a/pkg/cloudbroker/grid/change_settings.go +++ b/pkg/cloudbroker/grid/change_settings.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ChangeSettingsRequest struct to change grid settings diff --git a/pkg/cloudbroker/grid/execute_maintenance_script.go b/pkg/cloudbroker/grid/execute_maintenance_script.go index f0ed52f..1d9aa99 100644 --- a/pkg/cloudbroker/grid/execute_maintenance_script.go +++ b/pkg/cloudbroker/grid/execute_maintenance_script.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExecuteMaintenanceScriptRequest struct to execute script diff --git a/pkg/cloudbroker/grid/get.go b/pkg/cloudbroker/grid/get.go index 9445cc7..8acd78f 100644 --- a/pkg/cloudbroker/grid/get.go +++ b/pkg/cloudbroker/grid/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get grid details diff --git a/pkg/cloudbroker/grid/get_backup.go b/pkg/cloudbroker/grid/get_backup.go index bb447fb..12d5c9a 100644 --- a/pkg/cloudbroker/grid/get_backup.go +++ b/pkg/cloudbroker/grid/get_backup.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetBackupRequest struct to get backup diff --git a/pkg/cloudbroker/grid/get_diagnosis.go b/pkg/cloudbroker/grid/get_diagnosis.go index 4817579..72be731 100644 --- a/pkg/cloudbroker/grid/get_diagnosis.go +++ b/pkg/cloudbroker/grid/get_diagnosis.go @@ -2,10 +2,9 @@ package grid import ( "context" - "fmt" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetDiagnosisRequest struct to get platform snapshot with additional diagnosis @@ -39,7 +38,7 @@ func (g Grid) GetDiagnosisGET(ctx context.Context, req GetDiagnosisRequest) (str return "", validators.ValidationErrors(validators.GetErrors(err)) } - url := fmt.Sprintf("/cloudbroker/grid/getDiagnosis/?gid=%d", req.GID) + url := "/cloudbroker/grid/getDiagnosis" res, err := g.client.DecortApiCall(ctx, http.MethodGet, url, req) if err != nil { diff --git a/pkg/cloudbroker/grid/get_resource_consumption.go b/pkg/cloudbroker/grid/get_resource_consumption.go index e5948f0..ef6a0e2 100644 --- a/pkg/cloudbroker/grid/get_resource_consumption.go +++ b/pkg/cloudbroker/grid/get_resource_consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetResourceConsumptionRequest struct to get resource consumption diff --git a/pkg/cloudbroker/grid/get_settings.go b/pkg/cloudbroker/grid/get_settings.go index 1605508..df66d48 100644 --- a/pkg/cloudbroker/grid/get_settings.go +++ b/pkg/cloudbroker/grid/get_settings.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetSettingsRequest struct to get grid settings diff --git a/pkg/cloudbroker/grid/grid.go b/pkg/cloudbroker/grid/grid.go index 545ca0a..3a5f49a 100644 --- a/pkg/cloudbroker/grid/grid.go +++ b/pkg/cloudbroker/grid/grid.go @@ -2,7 +2,7 @@ package grid import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to grid diff --git a/pkg/cloudbroker/grid/list.go b/pkg/cloudbroker/grid/list.go index e493ece..1f97989 100644 --- a/pkg/cloudbroker/grid/list.go +++ b/pkg/cloudbroker/grid/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of locations diff --git a/pkg/cloudbroker/grid/purge_logs.go b/pkg/cloudbroker/grid/purge_logs.go index 10d39a9..5555cca 100644 --- a/pkg/cloudbroker/grid/purge_logs.go +++ b/pkg/cloudbroker/grid/purge_logs.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // PurgeLogsRequest struct to purge logs diff --git a/pkg/cloudbroker/grid/remove_custom_backup_path.go b/pkg/cloudbroker/grid/remove_custom_backup_path.go index bac04a1..b4a6940 100644 --- a/pkg/cloudbroker/grid/remove_custom_backup_path.go +++ b/pkg/cloudbroker/grid/remove_custom_backup_path.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RemoveCustomBackupPathRequest struct to remove path from the list of custom backup paths diff --git a/pkg/cloudbroker/grid/rename.go b/pkg/cloudbroker/grid/rename.go index 8e645e0..2c8592e 100644 --- a/pkg/cloudbroker/grid/rename.go +++ b/pkg/cloudbroker/grid/rename.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RenameRequest struct to rename grid diff --git a/pkg/cloudbroker/grid/serialize.go b/pkg/cloudbroker/grid/serialize.go index e62b328..1380617 100644 --- a/pkg/cloudbroker/grid/serialize.go +++ b/pkg/cloudbroker/grid/serialize.go @@ -3,7 +3,7 @@ package grid import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/grid/services_restart.go b/pkg/cloudbroker/grid/services_restart.go index 4ee691f..01deab1 100644 --- a/pkg/cloudbroker/grid/services_restart.go +++ b/pkg/cloudbroker/grid/services_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ServicesRestartRequest struct to restart services diff --git a/pkg/cloudbroker/grid/set_cpu_allocation_parameter.go b/pkg/cloudbroker/grid/set_cpu_allocation_parameter.go index 16e5cf6..4ea5039 100644 --- a/pkg/cloudbroker/grid/set_cpu_allocation_parameter.go +++ b/pkg/cloudbroker/grid/set_cpu_allocation_parameter.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationParameterRequest for setting CPU allocation parameter diff --git a/pkg/cloudbroker/grid/set_cpu_allocation_ratio.go b/pkg/cloudbroker/grid/set_cpu_allocation_ratio.go index 0039345..0709327 100644 --- a/pkg/cloudbroker/grid/set_cpu_allocation_ratio.go +++ b/pkg/cloudbroker/grid/set_cpu_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationRatioRequest struct to set allocation diff --git a/pkg/cloudbroker/grid/set_cpu_allocation_ratio_for_vm.go b/pkg/cloudbroker/grid/set_cpu_allocation_ratio_for_vm.go index fb745d5..0916313 100644 --- a/pkg/cloudbroker/grid/set_cpu_allocation_ratio_for_vm.go +++ b/pkg/cloudbroker/grid/set_cpu_allocation_ratio_for_vm.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationRatioForVMRequest for setting CPU allocation ratio for computes diff --git a/pkg/cloudbroker/grid/set_mem_allocation_ratio.go b/pkg/cloudbroker/grid/set_mem_allocation_ratio.go index 2184506..dc628e4 100644 --- a/pkg/cloudbroker/grid/set_mem_allocation_ratio.go +++ b/pkg/cloudbroker/grid/set_mem_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetMemAllocationRatioRequest struct to set memory allocation diff --git a/pkg/cloudbroker/grid/set_password_policy.go b/pkg/cloudbroker/grid/set_password_policy.go index 99a6d88..a0733d1 100644 --- a/pkg/cloudbroker/grid/set_password_policy.go +++ b/pkg/cloudbroker/grid/set_password_policy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetPasswordPolicyRequest struct to set password policy for a grid diff --git a/pkg/cloudbroker/group.go b/pkg/cloudbroker/group.go index 19550c2..932ad19 100644 --- a/pkg/cloudbroker/group.go +++ b/pkg/cloudbroker/group.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/group" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/group" // Accessing the Group method group func (cb *CloudBroker) Group() *group.Group { diff --git a/pkg/cloudbroker/group/get.go b/pkg/cloudbroker/group/get.go index 36aca81..de518d4 100644 --- a/pkg/cloudbroker/group/get.go +++ b/pkg/cloudbroker/group/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get details of the specified group. diff --git a/pkg/cloudbroker/group/group.go b/pkg/cloudbroker/group/group.go index 02e2e01..824bcc4 100644 --- a/pkg/cloudbroker/group/group.go +++ b/pkg/cloudbroker/group/group.go @@ -1,6 +1,6 @@ package group -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to group type Group struct { diff --git a/pkg/cloudbroker/group/list.go b/pkg/cloudbroker/group/list.go index bef5b25..b6552a6 100644 --- a/pkg/cloudbroker/group/list.go +++ b/pkg/cloudbroker/group/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of group instances. diff --git a/pkg/cloudbroker/image.go b/pkg/cloudbroker/image.go index b570f99..c2688f2 100644 --- a/pkg/cloudbroker/image.go +++ b/pkg/cloudbroker/image.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/image" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/image" ) // Accessing the Image method group diff --git a/pkg/cloudbroker/image/computeci_set.go b/pkg/cloudbroker/image/computeci_set.go index ba1ff39..8539d89 100644 --- a/pkg/cloudbroker/image/computeci_set.go +++ b/pkg/cloudbroker/image/computeci_set.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeCISetRequest struct to set compute CI diff --git a/pkg/cloudbroker/image/computeci_unset.go b/pkg/cloudbroker/image/computeci_unset.go index df28b2d..490c789 100644 --- a/pkg/cloudbroker/image/computeci_unset.go +++ b/pkg/cloudbroker/image/computeci_unset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ComputeCIUnsetRequest struct to unset compute CI diff --git a/pkg/cloudbroker/image/create_cdrom_image.go b/pkg/cloudbroker/image/create_cdrom_image.go index fc0b782..ea5d18e 100644 --- a/pkg/cloudbroker/image/create_cdrom_image.go +++ b/pkg/cloudbroker/image/create_cdrom_image.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateCDROMImageRequest struct to create CD-ROM image diff --git a/pkg/cloudbroker/image/create_image.go b/pkg/cloudbroker/image/create_image.go index aa388cd..c0de08f 100644 --- a/pkg/cloudbroker/image/create_image.go +++ b/pkg/cloudbroker/image/create_image.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create image diff --git a/pkg/cloudbroker/image/create_virtual.go b/pkg/cloudbroker/image/create_virtual.go index 1afe63e..bfef14b 100644 --- a/pkg/cloudbroker/image/create_virtual.go +++ b/pkg/cloudbroker/image/create_virtual.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateVirtualRequest struct to create virtual image diff --git a/pkg/cloudbroker/image/delete.go b/pkg/cloudbroker/image/delete.go index ac6a9c0..bc361ef 100644 --- a/pkg/cloudbroker/image/delete.go +++ b/pkg/cloudbroker/image/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete image diff --git a/pkg/cloudbroker/image/delete_cdrom_image.go b/pkg/cloudbroker/image/delete_cdrom_image.go index f10a2eb..18c01ca 100644 --- a/pkg/cloudbroker/image/delete_cdrom_image.go +++ b/pkg/cloudbroker/image/delete_cdrom_image.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteCDROMImageRequest struct to delete CD-ROM image diff --git a/pkg/cloudbroker/image/delete_images.go b/pkg/cloudbroker/image/delete_images.go index 8469290..481b004 100644 --- a/pkg/cloudbroker/image/delete_images.go +++ b/pkg/cloudbroker/image/delete_images.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteImagesRequest struct to delete images diff --git a/pkg/cloudbroker/image/disable.go b/pkg/cloudbroker/image/disable.go index 13a78ee..bd206ee 100644 --- a/pkg/cloudbroker/image/disable.go +++ b/pkg/cloudbroker/image/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable image diff --git a/pkg/cloudbroker/image/edit.go b/pkg/cloudbroker/image/edit.go index 82fc56a..dbf531b 100644 --- a/pkg/cloudbroker/image/edit.go +++ b/pkg/cloudbroker/image/edit.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EditRequest struct to edit image diff --git a/pkg/cloudbroker/image/enable.go b/pkg/cloudbroker/image/enable.go index 3849c94..c5104a3 100644 --- a/pkg/cloudbroker/image/enable.go +++ b/pkg/cloudbroker/image/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable image diff --git a/pkg/cloudbroker/image/get.go b/pkg/cloudbroker/image/get.go index 545a375..f8031bf 100644 --- a/pkg/cloudbroker/image/get.go +++ b/pkg/cloudbroker/image/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get image details diff --git a/pkg/cloudbroker/image/grant_access.go b/pkg/cloudbroker/image/grant_access.go index 67f6a06..9e94d6f 100644 --- a/pkg/cloudbroker/image/grant_access.go +++ b/pkg/cloudbroker/image/grant_access.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GrantAccessRequest struct to share image with accounts diff --git a/pkg/cloudbroker/image/image.go b/pkg/cloudbroker/image/image.go index 64512e4..303d448 100644 --- a/pkg/cloudbroker/image/image.go +++ b/pkg/cloudbroker/image/image.go @@ -1,7 +1,7 @@ // Lists all the images. A image is a template which can be used to deploy machines package image -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to image type Image struct { diff --git a/pkg/cloudbroker/image/link.go b/pkg/cloudbroker/image/link.go index 0f20332..9763199 100644 --- a/pkg/cloudbroker/image/link.go +++ b/pkg/cloudbroker/image/link.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // LinkRequest struct to link virtual image to another image diff --git a/pkg/cloudbroker/image/list.go b/pkg/cloudbroker/image/list.go index 662412f..bf7e530 100644 --- a/pkg/cloudbroker/image/list.go +++ b/pkg/cloudbroker/image/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of available images diff --git a/pkg/cloudbroker/image/list_stacks.go b/pkg/cloudbroker/image/list_stacks.go index 0ddbe80..1b028e4 100644 --- a/pkg/cloudbroker/image/list_stacks.go +++ b/pkg/cloudbroker/image/list_stacks.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListStacksRequest struct to get list of stack diff --git a/pkg/cloudbroker/image/models.go b/pkg/cloudbroker/image/models.go index 6e72dfa..22e0a39 100644 --- a/pkg/cloudbroker/image/models.go +++ b/pkg/cloudbroker/image/models.go @@ -104,6 +104,9 @@ type RecordImage struct { // Size Size uint64 `json:"size"` + // SnapshotId + SnapshotID string `json:"snapshotId"` + // Status Status string `json:"status"` @@ -227,6 +230,9 @@ type ItemImage struct { // Size Size uint64 `json:"size"` + // SnapshotId + SnapshotID string `json:"snapshotId"` + // Status Status string `json:"status"` diff --git a/pkg/cloudbroker/image/rename.go b/pkg/cloudbroker/image/rename.go index bdbb59d..eefcf44 100644 --- a/pkg/cloudbroker/image/rename.go +++ b/pkg/cloudbroker/image/rename.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RenameRequest struct to rename image diff --git a/pkg/cloudbroker/image/revoke_access.go b/pkg/cloudbroker/image/revoke_access.go index 2072808..071af97 100644 --- a/pkg/cloudbroker/image/revoke_access.go +++ b/pkg/cloudbroker/image/revoke_access.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RevokeAccessRequest struct to unshare image with accounts diff --git a/pkg/cloudbroker/image/serialize.go b/pkg/cloudbroker/image/serialize.go index 982aac4..5233a3c 100644 --- a/pkg/cloudbroker/image/serialize.go +++ b/pkg/cloudbroker/image/serialize.go @@ -3,7 +3,7 @@ package image import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/image/share.go b/pkg/cloudbroker/image/share.go index 17d356f..1791023 100644 --- a/pkg/cloudbroker/image/share.go +++ b/pkg/cloudbroker/image/share.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ShareRequest struct to share image diff --git a/pkg/cloudbroker/image/sync_create_image.go b/pkg/cloudbroker/image/sync_create_image.go index d5b402c..fc504ab 100644 --- a/pkg/cloudbroker/image/sync_create_image.go +++ b/pkg/cloudbroker/image/sync_create_image.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SyncCreateRequest struct to sync create image diff --git a/pkg/cloudbroker/image/update_nodes.go b/pkg/cloudbroker/image/update_nodes.go index 55fa33f..7d742f1 100644 --- a/pkg/cloudbroker/image/update_nodes.go +++ b/pkg/cloudbroker/image/update_nodes.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateNodesRequest struct to update nodes diff --git a/pkg/cloudbroker/k8ci.go b/pkg/cloudbroker/k8ci.go index df2b1d1..74fcf5d 100644 --- a/pkg/cloudbroker/k8ci.go +++ b/pkg/cloudbroker/k8ci.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/k8ci" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/k8ci" ) // Accessing the K8CI method group diff --git a/pkg/cloudbroker/k8ci/access_add.go b/pkg/cloudbroker/k8ci/access_add.go index 2dcf0ad..e54a3cd 100644 --- a/pkg/cloudbroker/k8ci/access_add.go +++ b/pkg/cloudbroker/k8ci/access_add.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessAddRequest struct for adding permission to access to account for a k8ci diff --git a/pkg/cloudbroker/k8ci/access_remove.go b/pkg/cloudbroker/k8ci/access_remove.go index 729d941..a1c8a74 100644 --- a/pkg/cloudbroker/k8ci/access_remove.go +++ b/pkg/cloudbroker/k8ci/access_remove.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRemoveRequest struct for removing permission to access to account for a k8ci diff --git a/pkg/cloudbroker/k8ci/create.go b/pkg/cloudbroker/k8ci/create.go index 3055ae3..e85b258 100644 --- a/pkg/cloudbroker/k8ci/create.go +++ b/pkg/cloudbroker/k8ci/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create K8CI instance diff --git a/pkg/cloudbroker/k8ci/delete.go b/pkg/cloudbroker/k8ci/delete.go index 08fd03c..bccb9ae 100644 --- a/pkg/cloudbroker/k8ci/delete.go +++ b/pkg/cloudbroker/k8ci/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete K8CI diff --git a/pkg/cloudbroker/k8ci/disable.go b/pkg/cloudbroker/k8ci/disable.go index 1022209..64f5df5 100644 --- a/pkg/cloudbroker/k8ci/disable.go +++ b/pkg/cloudbroker/k8ci/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable K8CI diff --git a/pkg/cloudbroker/k8ci/enable.go b/pkg/cloudbroker/k8ci/enable.go index 962f325..a56d19c 100644 --- a/pkg/cloudbroker/k8ci/enable.go +++ b/pkg/cloudbroker/k8ci/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable K8CI diff --git a/pkg/cloudbroker/k8ci/get.go b/pkg/cloudbroker/k8ci/get.go index 796037a..7c82fbf 100644 --- a/pkg/cloudbroker/k8ci/get.go +++ b/pkg/cloudbroker/k8ci/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about K8CI diff --git a/pkg/cloudbroker/k8ci/k8ci.go b/pkg/cloudbroker/k8ci/k8ci.go index c6a65c4..de848cc 100644 --- a/pkg/cloudbroker/k8ci/k8ci.go +++ b/pkg/cloudbroker/k8ci/k8ci.go @@ -2,7 +2,7 @@ package k8ci import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to K8CI diff --git a/pkg/cloudbroker/k8ci/list.go b/pkg/cloudbroker/k8ci/list.go index f9b8b21..44c529f 100644 --- a/pkg/cloudbroker/k8ci/list.go +++ b/pkg/cloudbroker/k8ci/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list information about images diff --git a/pkg/cloudbroker/k8ci/list_deleted.go b/pkg/cloudbroker/k8ci/list_deleted.go index 6feb525..48df43f 100644 --- a/pkg/cloudbroker/k8ci/list_deleted.go +++ b/pkg/cloudbroker/k8ci/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list information about deleted k8ci items diff --git a/pkg/cloudbroker/k8ci/restore.go b/pkg/cloudbroker/k8ci/restore.go index 1f71ba6..c7f82e9 100644 --- a/pkg/cloudbroker/k8ci/restore.go +++ b/pkg/cloudbroker/k8ci/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore K8CI diff --git a/pkg/cloudbroker/k8ci/serialize.go b/pkg/cloudbroker/k8ci/serialize.go index c420ca7..e63136d 100644 --- a/pkg/cloudbroker/k8ci/serialize.go +++ b/pkg/cloudbroker/k8ci/serialize.go @@ -3,7 +3,7 @@ package k8ci import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/k8s.go b/pkg/cloudbroker/k8s.go index 3ea65a0..d13b5e4 100644 --- a/pkg/cloudbroker/k8s.go +++ b/pkg/cloudbroker/k8s.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/k8s" ) // Accessing the K8S method group diff --git a/pkg/cloudbroker/k8s/create.go b/pkg/cloudbroker/k8s/create.go index 34bfda0..0e61c2a 100644 --- a/pkg/cloudbroker/k8s/create.go +++ b/pkg/cloudbroker/k8s/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create K8S diff --git a/pkg/cloudbroker/k8s/delete.go b/pkg/cloudbroker/k8s/delete.go index 0028e9b..c8b328f 100644 --- a/pkg/cloudbroker/k8s/delete.go +++ b/pkg/cloudbroker/k8s/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete kubernetes cluster diff --git a/pkg/cloudbroker/k8s/delete_master_from_group.go b/pkg/cloudbroker/k8s/delete_master_from_group.go index fd11c89..e1cfc6f 100644 --- a/pkg/cloudbroker/k8s/delete_master_from_group.go +++ b/pkg/cloudbroker/k8s/delete_master_from_group.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteMasterFromGroupRequest struct to delete master from group diff --git a/pkg/cloudbroker/k8s/delete_worker_from_group.go b/pkg/cloudbroker/k8s/delete_worker_from_group.go index da99ccf..9f5544b 100644 --- a/pkg/cloudbroker/k8s/delete_worker_from_group.go +++ b/pkg/cloudbroker/k8s/delete_worker_from_group.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteWorkerFromGroupRequest struct to delete worker from group diff --git a/pkg/cloudbroker/k8s/disable.go b/pkg/cloudbroker/k8s/disable.go index ef1c884..170645d 100644 --- a/pkg/cloudbroker/k8s/disable.go +++ b/pkg/cloudbroker/k8s/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable kubernetes cluster diff --git a/pkg/cloudbroker/k8s/enable.go b/pkg/cloudbroker/k8s/enable.go index a6bcf6a..b26fdc0 100644 --- a/pkg/cloudbroker/k8s/enable.go +++ b/pkg/cloudbroker/k8s/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable kubernetes cluster diff --git a/pkg/cloudbroker/k8s/find_group_by_label.go b/pkg/cloudbroker/k8s/find_group_by_label.go index 8b50bca..ae03607 100644 --- a/pkg/cloudbroker/k8s/find_group_by_label.go +++ b/pkg/cloudbroker/k8s/find_group_by_label.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FindGroupByLabelRequest struct for get information about group of kubernetes cluster diff --git a/pkg/cloudbroker/k8s/get.go b/pkg/cloudbroker/k8s/get.go index 89f6fd1..d8c5356 100644 --- a/pkg/cloudbroker/k8s/get.go +++ b/pkg/cloudbroker/k8s/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about kubernetes cluster diff --git a/pkg/cloudbroker/k8s/get_config.go b/pkg/cloudbroker/k8s/get_config.go index fc0d586..d6a9b50 100644 --- a/pkg/cloudbroker/k8s/get_config.go +++ b/pkg/cloudbroker/k8s/get_config.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConfigRequest struct to get configuration of kubernetes cluster diff --git a/pkg/cloudbroker/k8s/get_node_annotations.go b/pkg/cloudbroker/k8s/get_node_annotations.go index cabcce0..bfd4c86 100644 --- a/pkg/cloudbroker/k8s/get_node_annotations.go +++ b/pkg/cloudbroker/k8s/get_node_annotations.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeAnnotationsRequest struct to get node annotations diff --git a/pkg/cloudbroker/k8s/get_node_labels.go b/pkg/cloudbroker/k8s/get_node_labels.go index 43257cb..e4ed8f7 100644 --- a/pkg/cloudbroker/k8s/get_node_labels.go +++ b/pkg/cloudbroker/k8s/get_node_labels.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeLabelsRequest struct to get worker node labels diff --git a/pkg/cloudbroker/k8s/get_node_taints.go b/pkg/cloudbroker/k8s/get_node_taints.go index 50cc436..6676b22 100644 --- a/pkg/cloudbroker/k8s/get_node_taints.go +++ b/pkg/cloudbroker/k8s/get_node_taints.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetNodeTaintsRequest struct to get node taints diff --git a/pkg/cloudbroker/k8s/get_worker_nodes_meta_data.go b/pkg/cloudbroker/k8s/get_worker_nodes_meta_data.go index 31eee81..ac12336 100644 --- a/pkg/cloudbroker/k8s/get_worker_nodes_meta_data.go +++ b/pkg/cloudbroker/k8s/get_worker_nodes_meta_data.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetWorkerNodesMetaDataRequest struct to get worker group metadata by ID diff --git a/pkg/cloudbroker/k8s/k8s.go b/pkg/cloudbroker/k8s/k8s.go index 1fbf45f..15735af 100644 --- a/pkg/cloudbroker/k8s/k8s.go +++ b/pkg/cloudbroker/k8s/k8s.go @@ -2,7 +2,7 @@ package k8s import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to K8S diff --git a/pkg/cloudbroker/k8s/list.go b/pkg/cloudbroker/k8s/list.go index d93b383..6ff913b 100644 --- a/pkg/cloudbroker/k8s/list.go +++ b/pkg/cloudbroker/k8s/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list information K8S diff --git a/pkg/cloudbroker/k8s/list_deleted.go b/pkg/cloudbroker/k8s/list_deleted.go index 4eecc72..b8367fb 100644 --- a/pkg/cloudbroker/k8s/list_deleted.go +++ b/pkg/cloudbroker/k8s/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted kubernetes cluster diff --git a/pkg/cloudbroker/k8s/restore.go b/pkg/cloudbroker/k8s/restore.go index eb62354..53b6aec 100644 --- a/pkg/cloudbroker/k8s/restore.go +++ b/pkg/cloudbroker/k8s/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore kubernetes cluster diff --git a/pkg/cloudbroker/k8s/serialize.go b/pkg/cloudbroker/k8s/serialize.go index b4395f9..39a0060 100644 --- a/pkg/cloudbroker/k8s/serialize.go +++ b/pkg/cloudbroker/k8s/serialize.go @@ -3,7 +3,7 @@ package k8s import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/k8s/start.go b/pkg/cloudbroker/k8s/start.go index 2a39f77..5367257 100644 --- a/pkg/cloudbroker/k8s/start.go +++ b/pkg/cloudbroker/k8s/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start kubernetes cluster diff --git a/pkg/cloudbroker/k8s/stop.go b/pkg/cloudbroker/k8s/stop.go index 104f1d8..83f7a1b 100644 --- a/pkg/cloudbroker/k8s/stop.go +++ b/pkg/cloudbroker/k8s/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop kubernetes cluster diff --git a/pkg/cloudbroker/k8s/update.go b/pkg/cloudbroker/k8s/update.go index f22e6b0..58d3e67 100644 --- a/pkg/cloudbroker/k8s/update.go +++ b/pkg/cloudbroker/k8s/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update kubernetes cluster diff --git a/pkg/cloudbroker/k8s/update_worker_nodes_meta_data.go b/pkg/cloudbroker/k8s/update_worker_nodes_meta_data.go index 78dc201..2ac2f0e 100644 --- a/pkg/cloudbroker/k8s/update_worker_nodes_meta_data.go +++ b/pkg/cloudbroker/k8s/update_worker_nodes_meta_data.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateWorkerNodesMetaDataRequest struct to add worker to a kubernetes cluster diff --git a/pkg/cloudbroker/k8s/worker_add.go b/pkg/cloudbroker/k8s/worker_add.go index c14b073..1934d36 100644 --- a/pkg/cloudbroker/k8s/worker_add.go +++ b/pkg/cloudbroker/k8s/worker_add.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerAddRequest struct to add worker to a kubernetes cluster diff --git a/pkg/cloudbroker/k8s/worker_reset.go b/pkg/cloudbroker/k8s/worker_reset.go index 1d1cbc0..8d9feaa 100644 --- a/pkg/cloudbroker/k8s/worker_reset.go +++ b/pkg/cloudbroker/k8s/worker_reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerResetRequest struct for hard reset kubernetes cluster diff --git a/pkg/cloudbroker/k8s/worker_restart.go b/pkg/cloudbroker/k8s/worker_restart.go index b42c19f..f6c8d75 100644 --- a/pkg/cloudbroker/k8s/worker_restart.go +++ b/pkg/cloudbroker/k8s/worker_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkerRestartRequest struct to restart worker node diff --git a/pkg/cloudbroker/k8s/workers_group_add.go b/pkg/cloudbroker/k8s/workers_group_add.go index c4704f1..c8f6d6e 100644 --- a/pkg/cloudbroker/k8s/workers_group_add.go +++ b/pkg/cloudbroker/k8s/workers_group_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupAddRequest struct to add workers group diff --git a/pkg/cloudbroker/k8s/workers_group_delete.go b/pkg/cloudbroker/k8s/workers_group_delete.go index afb669a..6600299 100644 --- a/pkg/cloudbroker/k8s/workers_group_delete.go +++ b/pkg/cloudbroker/k8s/workers_group_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupDeleteRequest struct to delete workers group diff --git a/pkg/cloudbroker/k8s/workers_group_get_by_name.go b/pkg/cloudbroker/k8s/workers_group_get_by_name.go index e83e961..b8312dc 100644 --- a/pkg/cloudbroker/k8s/workers_group_get_by_name.go +++ b/pkg/cloudbroker/k8s/workers_group_get_by_name.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // WorkersGroupGetByNameRequest struct to get information about worker group diff --git a/pkg/cloudbroker/kvmx86.go b/pkg/cloudbroker/kvmx86.go index c195900..070e466 100644 --- a/pkg/cloudbroker/kvmx86.go +++ b/pkg/cloudbroker/kvmx86.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/kvmx86" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/kvmx86" ) // Accessing the KVMX86 method group diff --git a/pkg/cloudbroker/kvmx86/create.go b/pkg/cloudbroker/kvmx86/create.go index 1cbaddc..ff308ba 100644 --- a/pkg/cloudbroker/kvmx86/create.go +++ b/pkg/cloudbroker/kvmx86/create.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Interface struct { @@ -168,6 +168,10 @@ type CreateRequest struct { // Required: false // Default: false HPBacked bool `url:"hpBacked" json:"hpBacked"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudbroker/kvmx86/create_blank.go b/pkg/cloudbroker/kvmx86/create_blank.go index cc562ca..5e146bc 100644 --- a/pkg/cloudbroker/kvmx86/create_blank.go +++ b/pkg/cloudbroker/kvmx86/create_blank.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateBlankRequest struct to create KVM x86 VM from scratch @@ -68,6 +68,10 @@ type CreateBlankRequest struct { // Type of the emulated system, Q35 or i440fx // Required: false Chipset string `url:"chipset,omitempty" json:"chipset,omitempty" validate:"omitempty,chipset"` + + // Recommended isolated CPUs. Field is ignored if compute.cpupin=False or compute.pinned=False + // Required: false + PreferredCPU []int64 `url:"preferredCpu,omitempty" json:"preferredCpu,omitempty" validate:"omitempty,preferredCPU"` } // GetRAM returns RAM field values diff --git a/pkg/cloudbroker/kvmx86/kvmx86.go b/pkg/cloudbroker/kvmx86/kvmx86.go index 6cff0f9..d0051f0 100644 --- a/pkg/cloudbroker/kvmx86/kvmx86.go +++ b/pkg/cloudbroker/kvmx86/kvmx86.go @@ -1,7 +1,7 @@ // API to manage KVM x86 compute instances (x86 VMs) package kvmx86 -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to KVMX86 type KVMX86 struct { diff --git a/pkg/cloudbroker/kvmx86/mass_create.go b/pkg/cloudbroker/kvmx86/mass_create.go index a026bd8..d186cf1 100644 --- a/pkg/cloudbroker/kvmx86/mass_create.go +++ b/pkg/cloudbroker/kvmx86/mass_create.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassCreateRequest struct to mass create KVM x86 diff --git a/pkg/cloudbroker/lb.go b/pkg/cloudbroker/lb.go index c5eb7f2..c9db48f 100644 --- a/pkg/cloudbroker/lb.go +++ b/pkg/cloudbroker/lb.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/lb" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/lb" // Accessing the LB method group func (cb *CloudBroker) LB() *lb.LB { diff --git a/pkg/cloudbroker/lb/backend_create.go b/pkg/cloudbroker/lb/backend_create.go index 3101a28..60988d3 100644 --- a/pkg/cloudbroker/lb/backend_create.go +++ b/pkg/cloudbroker/lb/backend_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendCreateRequest struct to create backend diff --git a/pkg/cloudbroker/lb/backend_delete.go b/pkg/cloudbroker/lb/backend_delete.go index 426133a..fe0df6a 100644 --- a/pkg/cloudbroker/lb/backend_delete.go +++ b/pkg/cloudbroker/lb/backend_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendDeleteRequest struct to delete backend diff --git a/pkg/cloudbroker/lb/backend_server_add.go b/pkg/cloudbroker/lb/backend_server_add.go index 19b88f2..c564e81 100644 --- a/pkg/cloudbroker/lb/backend_server_add.go +++ b/pkg/cloudbroker/lb/backend_server_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerAddRequest struct to add server definition to the backend diff --git a/pkg/cloudbroker/lb/backend_server_delete.go b/pkg/cloudbroker/lb/backend_server_delete.go index 4c6f940..92e328f 100644 --- a/pkg/cloudbroker/lb/backend_server_delete.go +++ b/pkg/cloudbroker/lb/backend_server_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerDeleteRequest struct to delete server definition diff --git a/pkg/cloudbroker/lb/backend_server_update.go b/pkg/cloudbroker/lb/backend_server_update.go index 0fd3614..2d7d6ad 100644 --- a/pkg/cloudbroker/lb/backend_server_update.go +++ b/pkg/cloudbroker/lb/backend_server_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendServerUpdateRequest struct to update server diff --git a/pkg/cloudbroker/lb/backend_update.go b/pkg/cloudbroker/lb/backend_update.go index 239e82e..e16d5c8 100644 --- a/pkg/cloudbroker/lb/backend_update.go +++ b/pkg/cloudbroker/lb/backend_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // BackendUpdateRequest struct to update backend diff --git a/pkg/cloudbroker/lb/config_reset.go b/pkg/cloudbroker/lb/config_reset.go index e4b81ec..0377d6f 100644 --- a/pkg/cloudbroker/lb/config_reset.go +++ b/pkg/cloudbroker/lb/config_reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConfigResetRequest struct to reset config diff --git a/pkg/cloudbroker/lb/create.go b/pkg/cloudbroker/lb/create.go index 6ff95b3..8b35c24 100644 --- a/pkg/cloudbroker/lb/create.go +++ b/pkg/cloudbroker/lb/create.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create load balancer diff --git a/pkg/cloudbroker/lb/delete.go b/pkg/cloudbroker/lb/delete.go index 7db4062..0ae9f7e 100644 --- a/pkg/cloudbroker/lb/delete.go +++ b/pkg/cloudbroker/lb/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete load balancer diff --git a/pkg/cloudbroker/lb/disable.go b/pkg/cloudbroker/lb/disable.go index 17c572f..23d2661 100644 --- a/pkg/cloudbroker/lb/disable.go +++ b/pkg/cloudbroker/lb/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable load balancer diff --git a/pkg/cloudbroker/lb/enable.go b/pkg/cloudbroker/lb/enable.go index 6380165..d675b41 100644 --- a/pkg/cloudbroker/lb/enable.go +++ b/pkg/cloudbroker/lb/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable load balancer diff --git a/pkg/cloudbroker/lb/filter.go b/pkg/cloudbroker/lb/filter.go index f14dc13..e46da50 100644 --- a/pkg/cloudbroker/lb/filter.go +++ b/pkg/cloudbroker/lb/filter.go @@ -3,8 +3,8 @@ package lb import ( "context" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/k8s" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/k8s" ) // FilterByID returns ListLB with specified ID. diff --git a/pkg/cloudbroker/lb/frontend_bind.go b/pkg/cloudbroker/lb/frontend_bind.go index 2e6bebb..61facfd 100644 --- a/pkg/cloudbroker/lb/frontend_bind.go +++ b/pkg/cloudbroker/lb/frontend_bind.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindRequest struct for frontend bind diff --git a/pkg/cloudbroker/lb/frontend_bind_delete.go b/pkg/cloudbroker/lb/frontend_bind_delete.go index 862ca9a..33b5c2a 100644 --- a/pkg/cloudbroker/lb/frontend_bind_delete.go +++ b/pkg/cloudbroker/lb/frontend_bind_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindDeleteRequest struct to delete bind diff --git a/pkg/cloudbroker/lb/frontend_binding_update.go b/pkg/cloudbroker/lb/frontend_binding_update.go index dacf9e7..78e7773 100644 --- a/pkg/cloudbroker/lb/frontend_binding_update.go +++ b/pkg/cloudbroker/lb/frontend_binding_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendBindUpdateRequest struct for update binding diff --git a/pkg/cloudbroker/lb/frontend_create.go b/pkg/cloudbroker/lb/frontend_create.go index 33ddddc..a47937c 100644 --- a/pkg/cloudbroker/lb/frontend_create.go +++ b/pkg/cloudbroker/lb/frontend_create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendCreateRequest struct for create frontend diff --git a/pkg/cloudbroker/lb/frontend_delete.go b/pkg/cloudbroker/lb/frontend_delete.go index 225a25b..79ee113 100644 --- a/pkg/cloudbroker/lb/frontend_delete.go +++ b/pkg/cloudbroker/lb/frontend_delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // FrontendDeleteRequest struct for delete frontend diff --git a/pkg/cloudbroker/lb/get.go b/pkg/cloudbroker/lb/get.go index 3bb553b..fa6fe96 100644 --- a/pkg/cloudbroker/lb/get.go +++ b/pkg/cloudbroker/lb/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about load balancer diff --git a/pkg/cloudbroker/lb/lb.go b/pkg/cloudbroker/lb/lb.go index b47aaff..be32875 100644 --- a/pkg/cloudbroker/lb/lb.go +++ b/pkg/cloudbroker/lb/lb.go @@ -1,7 +1,7 @@ // API to manage load balancer instance package lb -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to load balancer type LB struct { diff --git a/pkg/cloudbroker/lb/list.go b/pkg/cloudbroker/lb/list.go index f8804ec..ae0547d 100644 --- a/pkg/cloudbroker/lb/list.go +++ b/pkg/cloudbroker/lb/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of load balancers diff --git a/pkg/cloudbroker/lb/list_deleted.go b/pkg/cloudbroker/lb/list_deleted.go index 5d7b4ce..bceb0f6 100644 --- a/pkg/cloudbroker/lb/list_deleted.go +++ b/pkg/cloudbroker/lb/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted load balancers diff --git a/pkg/cloudbroker/lb/make_highly_available.go b/pkg/cloudbroker/lb/make_highly_available.go index 7aa08e9..65c90d8 100644 --- a/pkg/cloudbroker/lb/make_highly_available.go +++ b/pkg/cloudbroker/lb/make_highly_available.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // HighlyAvailableRequest struct to make Load Balancer Highly available diff --git a/pkg/cloudbroker/lb/restart.go b/pkg/cloudbroker/lb/restart.go index c0849e2..d2a7975 100644 --- a/pkg/cloudbroker/lb/restart.go +++ b/pkg/cloudbroker/lb/restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestartRequest struct to restart load balancer diff --git a/pkg/cloudbroker/lb/restore.go b/pkg/cloudbroker/lb/restore.go index 0d15671..1f1ed79 100644 --- a/pkg/cloudbroker/lb/restore.go +++ b/pkg/cloudbroker/lb/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore load balancer diff --git a/pkg/cloudbroker/lb/serialize.go b/pkg/cloudbroker/lb/serialize.go index 4869b82..2155333 100644 --- a/pkg/cloudbroker/lb/serialize.go +++ b/pkg/cloudbroker/lb/serialize.go @@ -3,7 +3,7 @@ package lb import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/lb/start.go b/pkg/cloudbroker/lb/start.go index a907e6e..19402f8 100644 --- a/pkg/cloudbroker/lb/start.go +++ b/pkg/cloudbroker/lb/start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StartRequest struct to start load balancer diff --git a/pkg/cloudbroker/lb/stop.go b/pkg/cloudbroker/lb/stop.go index 1224509..12f9d66 100644 --- a/pkg/cloudbroker/lb/stop.go +++ b/pkg/cloudbroker/lb/stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StopRequest struct to stop load balancer diff --git a/pkg/cloudbroker/lb/update.go b/pkg/cloudbroker/lb/update.go index 8568210..853f7a7 100644 --- a/pkg/cloudbroker/lb/update.go +++ b/pkg/cloudbroker/lb/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update load balancer diff --git a/pkg/cloudbroker/lb/update_sysctl_params.go b/pkg/cloudbroker/lb/update_sysctl_params.go index 3a8791b..3b5466c 100644 --- a/pkg/cloudbroker/lb/update_sysctl_params.go +++ b/pkg/cloudbroker/lb/update_sysctl_params.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateSysctParamsRequest struct to update sysct params for lb diff --git a/pkg/cloudbroker/node.go b/pkg/cloudbroker/node.go index 33c94ff..be51e3b 100644 --- a/pkg/cloudbroker/node.go +++ b/pkg/cloudbroker/node.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/node" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/node" // Accessing the Node method group func (cb *CloudBroker) Node() *node.Node { diff --git a/pkg/cloudbroker/node/apply_ipmi_action.go b/pkg/cloudbroker/node/apply_ipmi_action.go index 9bd54ca..9703691 100644 --- a/pkg/cloudbroker/node/apply_ipmi_action.go +++ b/pkg/cloudbroker/node/apply_ipmi_action.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ApplyIpmiActionRequest struct to apply ipmi action on node diff --git a/pkg/cloudbroker/node/consumption.go b/pkg/cloudbroker/node/consumption.go index 0e64077..0facf11 100644 --- a/pkg/cloudbroker/node/consumption.go +++ b/pkg/cloudbroker/node/consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConsumptionRequest struct to get node summary by resources and consumption diff --git a/pkg/cloudbroker/node/decommission.go b/pkg/cloudbroker/node/decommission.go index 3375d80..34b643b 100644 --- a/pkg/cloudbroker/node/decommission.go +++ b/pkg/cloudbroker/node/decommission.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DecommissionRequest struct to set node status to DECOMMISSIONED diff --git a/pkg/cloudbroker/node/enable.go b/pkg/cloudbroker/node/enable.go index a89f750..3ff3f0b 100644 --- a/pkg/cloudbroker/node/enable.go +++ b/pkg/cloudbroker/node/enable.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable node from maintenance status to enabled diff --git a/pkg/cloudbroker/node/enable_nodes.go b/pkg/cloudbroker/node/enable_nodes.go index 57ea1c5..cd4f8f4 100644 --- a/pkg/cloudbroker/node/enable_nodes.go +++ b/pkg/cloudbroker/node/enable_nodes.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableNodesRequest struct to enable nodes from maintenance status to enabled diff --git a/pkg/cloudbroker/node/get.go b/pkg/cloudbroker/node/get.go index 7dbeb54..89e24a2 100644 --- a/pkg/cloudbroker/node/get.go +++ b/pkg/cloudbroker/node/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about node diff --git a/pkg/cloudbroker/node/list.go b/pkg/cloudbroker/node/list.go index 2d51ef7..5d26779 100644 --- a/pkg/cloudbroker/node/list.go +++ b/pkg/cloudbroker/node/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of nodes diff --git a/pkg/cloudbroker/node/maintenance.go b/pkg/cloudbroker/node/maintenance.go index 75ce25a..9462a50 100644 --- a/pkg/cloudbroker/node/maintenance.go +++ b/pkg/cloudbroker/node/maintenance.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MaintenanceRequest struct to place node in maintenance state diff --git a/pkg/cloudbroker/node/models.go b/pkg/cloudbroker/node/models.go index 6c16450..9835010 100644 --- a/pkg/cloudbroker/node/models.go +++ b/pkg/cloudbroker/node/models.go @@ -11,6 +11,9 @@ type RecordNode struct { // CPU Allocation Ratio CPUAllocationRatio float64 `json:"cpu_allocation_ratio"` + // DPDK info + DPDK DPDK `json:"dpdk"` + // GID GID uint64 `json:"gid"` @@ -29,6 +32,12 @@ type RecordNode struct { // NeedReboot NeedReboot bool `json:"needReboot"` + // Netaddr + NetAddr NetAddr `json:"netaddr"` + + // Network mode + NetworkMode string `json:"networkmode"` + // Nic Info NicInfo ListNicInfo `json:"nicInfo"` @@ -50,6 +59,18 @@ type RecordNode struct { // Status Status string `json:"status"` + // To active + ToActive Role `json:"to_active"` + + // To installing + ToInstalling Role `json:"to_installing"` + + // To maintenance + ToMaintenance Role `json:"to_maintenance"` + + // To restricted + ToRestricted Role `json:"to_restricted"` + // Version Version string `json:"version"` } @@ -122,6 +143,9 @@ type ItemNode struct { // Description Description string `json:"description"` + // DPDK + DPDK DPDK `json:"dpdk"` + // GID GID uint64 `json:"gid"` @@ -224,6 +248,9 @@ type ItemNode struct { // Type Type string `json:"type"` + //UEFI Firmware File + UEFIFirmwareFile string `json:"uefiFirmwareFile"` + // Version Version string `json:"version"` } @@ -314,3 +341,42 @@ type ListNodes struct { // Entry count EntryCount uint64 `json:"entryCount"` } + +// Net address +type NetAddr struct { + // Name + Name string `json:"name"` + + // IP list backplane1 node + IP []string `json:"ip"` +} + +// DPDK info +type DPDK struct { + // Bridges + Bridges Bridges `json:"bridges"` + + // hp memory + HPMemory map[string]uint64 `json:"hp_memory"` + + // pmd cpu + PMDCPU []uint64 `json:"pmd_cpu"` +} + +// Bridges +type Bridges struct { + Backplane1 Backplane1 `json:"backplane1"` +} + +// Backplane1 +type Backplane1 struct { + Interfaces []string `json:"interfaces"` + NumaNode uint64 `json:"numa_node"` +} + +// Role +type Role struct { + Actor string `json:"actor"` + Reason string `json:"reason"` + Time uint64 `json:"time"` +} diff --git a/pkg/cloudbroker/node/node.go b/pkg/cloudbroker/node/node.go index d1f2b72..a222f21 100644 --- a/pkg/cloudbroker/node/node.go +++ b/pkg/cloudbroker/node/node.go @@ -2,7 +2,7 @@ package node import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to node diff --git a/pkg/cloudbroker/node/restrict.go b/pkg/cloudbroker/node/restrict.go index 910a8c8..712e779 100644 --- a/pkg/cloudbroker/node/restrict.go +++ b/pkg/cloudbroker/node/restrict.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestrictRequest struct to set node status to 'RESTRICTED' diff --git a/pkg/cloudbroker/node/serialize.go b/pkg/cloudbroker/node/serialize.go index 901ef53..8ce49e2 100644 --- a/pkg/cloudbroker/node/serialize.go +++ b/pkg/cloudbroker/node/serialize.go @@ -3,7 +3,7 @@ package node import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/node/set_core_isolation.go b/pkg/cloudbroker/node/set_core_isolation.go index ce799a9..baa1ea5 100644 --- a/pkg/cloudbroker/node/set_core_isolation.go +++ b/pkg/cloudbroker/node/set_core_isolation.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCoreIsolationRequest struct to isolate selected cores on node boot diff --git a/pkg/cloudbroker/node/set_huge_pages.go b/pkg/cloudbroker/node/set_huge_pages.go index 7f94fcb..62c8c5c 100644 --- a/pkg/cloudbroker/node/set_huge_pages.go +++ b/pkg/cloudbroker/node/set_huge_pages.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetHugePagesRequest struct to set on-boot Huge Pages configuration diff --git a/pkg/cloudbroker/node/set_sriov_status.go b/pkg/cloudbroker/node/set_sriov_status.go index b827684..2135edf 100644 --- a/pkg/cloudbroker/node/set_sriov_status.go +++ b/pkg/cloudbroker/node/set_sriov_status.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetSRIOVStatusRequest struct to set Single-root input/output virtualization kernel config on node diff --git a/pkg/cloudbroker/node/set_vfs_number.go b/pkg/cloudbroker/node/set_vfs_number.go index 1b6d5d6..1216779 100644 --- a/pkg/cloudbroker/node/set_vfs_number.go +++ b/pkg/cloudbroker/node/set_vfs_number.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetVFsNumberRequest struct to set number of VFs for individual NIC on node @@ -24,6 +24,10 @@ type SetVFsNumberRequest struct { // Trust // Required: true Trust bool `url:"trust" json:"trust" validate:"required"` + + // Enable spoof checking + // Required: true + Spoofchk bool `url:"spoofchk" json:"spoofchk" validate:"required"` } // SetVFsNumber sets number of VFs for individual NIC on node diff --git a/pkg/cloudbroker/node/update.go b/pkg/cloudbroker/node/update.go index 7e885f5..91d222f 100644 --- a/pkg/cloudbroker/node/update.go +++ b/pkg/cloudbroker/node/update.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update node for actual version diff --git a/pkg/cloudbroker/pcidevice.go b/pkg/cloudbroker/pcidevice.go index e35d461..0a013ce 100644 --- a/pkg/cloudbroker/pcidevice.go +++ b/pkg/cloudbroker/pcidevice.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/pcidevice" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/pcidevice" // Accessing the PCI Device method group func (cb *CloudBroker) PCIDevice() *pcidevice.PCIDevice { diff --git a/pkg/cloudbroker/pcidevice/create.go b/pkg/cloudbroker/pcidevice/create.go index 7e2eaf8..7b2b7ea 100644 --- a/pkg/cloudbroker/pcidevice/create.go +++ b/pkg/cloudbroker/pcidevice/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to creating PCI device diff --git a/pkg/cloudbroker/pcidevice/delete.go b/pkg/cloudbroker/pcidevice/delete.go index 5370f26..5d6aa8e 100644 --- a/pkg/cloudbroker/pcidevice/delete.go +++ b/pkg/cloudbroker/pcidevice/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to deleting PCI device diff --git a/pkg/cloudbroker/pcidevice/disable.go b/pkg/cloudbroker/pcidevice/disable.go index 956a13c..1643cbd 100644 --- a/pkg/cloudbroker/pcidevice/disable.go +++ b/pkg/cloudbroker/pcidevice/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct for disabling PCI device diff --git a/pkg/cloudbroker/pcidevice/enable.go b/pkg/cloudbroker/pcidevice/enable.go index 952fa56..1b8635d 100644 --- a/pkg/cloudbroker/pcidevice/enable.go +++ b/pkg/cloudbroker/pcidevice/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct for enabling PCI device diff --git a/pkg/cloudbroker/pcidevice/list.go b/pkg/cloudbroker/pcidevice/list.go index 038def4..92d3b5d 100644 --- a/pkg/cloudbroker/pcidevice/list.go +++ b/pkg/cloudbroker/pcidevice/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of pci devices diff --git a/pkg/cloudbroker/pcidevice/pcidevice.go b/pkg/cloudbroker/pcidevice/pcidevice.go index 82b3d3a..3e16d35 100644 --- a/pkg/cloudbroker/pcidevice/pcidevice.go +++ b/pkg/cloudbroker/pcidevice/pcidevice.go @@ -1,6 +1,6 @@ package pcidevice -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to PCI device type PCIDevice struct { diff --git a/pkg/cloudbroker/pcidevice/serialize.go b/pkg/cloudbroker/pcidevice/serialize.go index 7616b54..aea3039 100644 --- a/pkg/cloudbroker/pcidevice/serialize.go +++ b/pkg/cloudbroker/pcidevice/serialize.go @@ -3,7 +3,7 @@ package pcidevice import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/prometheus.go b/pkg/cloudbroker/prometheus.go index d52fa13..dcb57ca 100644 --- a/pkg/cloudbroker/prometheus.go +++ b/pkg/cloudbroker/prometheus.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/prometheus" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/prometheus" // Accessing the Prometheus method group func (cb *CloudBroker) Prometheus() *prometheus.Prometheus { diff --git a/pkg/cloudbroker/prometheus/compute_cpu_load.go b/pkg/cloudbroker/prometheus/compute_cpu_load.go index aac3b7d..3beb212 100644 --- a/pkg/cloudbroker/prometheus/compute_cpu_load.go +++ b/pkg/cloudbroker/prometheus/compute_cpu_load.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeCPULoadRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_memory_available.go b/pkg/cloudbroker/prometheus/compute_memory_available.go index db82f7e..85062b1 100644 --- a/pkg/cloudbroker/prometheus/compute_memory_available.go +++ b/pkg/cloudbroker/prometheus/compute_memory_available.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeMemoryAvailableRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_memory_unused.go b/pkg/cloudbroker/prometheus/compute_memory_unused.go index c64ac5c..6517d6e 100644 --- a/pkg/cloudbroker/prometheus/compute_memory_unused.go +++ b/pkg/cloudbroker/prometheus/compute_memory_unused.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeMemoryUnusedRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_memory_usable.go b/pkg/cloudbroker/prometheus/compute_memory_usable.go index 1f1028b..703a26f 100644 --- a/pkg/cloudbroker/prometheus/compute_memory_usable.go +++ b/pkg/cloudbroker/prometheus/compute_memory_usable.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeMemoryUsableRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_memory_usage.go b/pkg/cloudbroker/prometheus/compute_memory_usage.go index b1cad82..474745b 100644 --- a/pkg/cloudbroker/prometheus/compute_memory_usage.go +++ b/pkg/cloudbroker/prometheus/compute_memory_usage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeMemoryUsageRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_memory_used.go b/pkg/cloudbroker/prometheus/compute_memory_used.go index e305bc4..78797e0 100644 --- a/pkg/cloudbroker/prometheus/compute_memory_used.go +++ b/pkg/cloudbroker/prometheus/compute_memory_used.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeMemoryUsedRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_read_bytes.go b/pkg/cloudbroker/prometheus/compute_read_bytes.go index 168ba59..7e8e095 100644 --- a/pkg/cloudbroker/prometheus/compute_read_bytes.go +++ b/pkg/cloudbroker/prometheus/compute_read_bytes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeReadBytesRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_read_requests.go b/pkg/cloudbroker/prometheus/compute_read_requests.go index c026a2d..f5078fc 100644 --- a/pkg/cloudbroker/prometheus/compute_read_requests.go +++ b/pkg/cloudbroker/prometheus/compute_read_requests.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeReadRequestsRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_receive_bytes.go b/pkg/cloudbroker/prometheus/compute_receive_bytes.go index 53fa8be..e1543a1 100644 --- a/pkg/cloudbroker/prometheus/compute_receive_bytes.go +++ b/pkg/cloudbroker/prometheus/compute_receive_bytes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeReceiveBytesRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_receive_packets.go b/pkg/cloudbroker/prometheus/compute_receive_packets.go index 48dda35..79bf033 100644 --- a/pkg/cloudbroker/prometheus/compute_receive_packets.go +++ b/pkg/cloudbroker/prometheus/compute_receive_packets.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeReceivePacketsRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_transmit_bytes.go b/pkg/cloudbroker/prometheus/compute_transmit_bytes.go index b040675..7a940d5 100644 --- a/pkg/cloudbroker/prometheus/compute_transmit_bytes.go +++ b/pkg/cloudbroker/prometheus/compute_transmit_bytes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeTransmitBytesRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_transmit_packets.go b/pkg/cloudbroker/prometheus/compute_transmit_packets.go index fce1b1e..abcde35 100644 --- a/pkg/cloudbroker/prometheus/compute_transmit_packets.go +++ b/pkg/cloudbroker/prometheus/compute_transmit_packets.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeTransmitPacketsRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_write_bytes.go b/pkg/cloudbroker/prometheus/compute_write_bytes.go index 1514926..87c157f 100644 --- a/pkg/cloudbroker/prometheus/compute_write_bytes.go +++ b/pkg/cloudbroker/prometheus/compute_write_bytes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeWriteBytesRequest struct { diff --git a/pkg/cloudbroker/prometheus/compute_write_requests.go b/pkg/cloudbroker/prometheus/compute_write_requests.go index f14d68b..154feb6 100644 --- a/pkg/cloudbroker/prometheus/compute_write_requests.go +++ b/pkg/cloudbroker/prometheus/compute_write_requests.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type ComputeWriteRequestsRequest struct { diff --git a/pkg/cloudbroker/prometheus/prometheus.go b/pkg/cloudbroker/prometheus/prometheus.go index 9a7a70d..e8808be 100644 --- a/pkg/cloudbroker/prometheus/prometheus.go +++ b/pkg/cloudbroker/prometheus/prometheus.go @@ -1,7 +1,7 @@ package prometheus import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to prometheus diff --git a/pkg/cloudbroker/resmon.go b/pkg/cloudbroker/resmon.go index ba2524d..44a9abe 100644 --- a/pkg/cloudbroker/resmon.go +++ b/pkg/cloudbroker/resmon.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/resmon" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/resmon" ) // Accessing the Resmon method group diff --git a/pkg/cloudbroker/resmon/get_by_compute.go b/pkg/cloudbroker/resmon/get_by_compute.go index ce2cac4..a7f7031 100644 --- a/pkg/cloudbroker/resmon/get_by_compute.go +++ b/pkg/cloudbroker/resmon/get_by_compute.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type GetByComputeRequest struct { diff --git a/pkg/cloudbroker/resmon/get_by_computes.go b/pkg/cloudbroker/resmon/get_by_computes.go index 3b510fb..3a9a770 100644 --- a/pkg/cloudbroker/resmon/get_by_computes.go +++ b/pkg/cloudbroker/resmon/get_by_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type GetByComputesRequest struct { diff --git a/pkg/cloudbroker/resmon/get_by_grid.go b/pkg/cloudbroker/resmon/get_by_grid.go index e17aa93..ed43c2f 100644 --- a/pkg/cloudbroker/resmon/get_by_grid.go +++ b/pkg/cloudbroker/resmon/get_by_grid.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type GetByGRIDRequest struct { diff --git a/pkg/cloudbroker/resmon/get_by_stack.go b/pkg/cloudbroker/resmon/get_by_stack.go index 5d83448..02e2c13 100644 --- a/pkg/cloudbroker/resmon/get_by_stack.go +++ b/pkg/cloudbroker/resmon/get_by_stack.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type GetByStackRequest struct { diff --git a/pkg/cloudbroker/resmon/get_by_stacks.go b/pkg/cloudbroker/resmon/get_by_stacks.go index 3a4dfae..c66fa8c 100644 --- a/pkg/cloudbroker/resmon/get_by_stacks.go +++ b/pkg/cloudbroker/resmon/get_by_stacks.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type GetByStacksRequest struct { diff --git a/pkg/cloudbroker/resmon/resmon.go b/pkg/cloudbroker/resmon/resmon.go index 4cbea63..b28e684 100644 --- a/pkg/cloudbroker/resmon/resmon.go +++ b/pkg/cloudbroker/resmon/resmon.go @@ -1,6 +1,6 @@ package resmon -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to resource monitoring type Resmon struct { diff --git a/pkg/cloudbroker/rg.go b/pkg/cloudbroker/rg.go index af6cc97..5a2160f 100644 --- a/pkg/cloudbroker/rg.go +++ b/pkg/cloudbroker/rg.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/rg" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/rg" // Accessing the RG method group func (cb *CloudBroker) RG() *rg.RG { diff --git a/pkg/cloudbroker/rg/access_grant.go b/pkg/cloudbroker/rg/access_grant.go index 8ebe17f..c402018 100644 --- a/pkg/cloudbroker/rg/access_grant.go +++ b/pkg/cloudbroker/rg/access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessGrantRequest struct to grant access to resource group diff --git a/pkg/cloudbroker/rg/access_revoke.go b/pkg/cloudbroker/rg/access_revoke.go index 060a7a7..313fae0 100644 --- a/pkg/cloudbroker/rg/access_revoke.go +++ b/pkg/cloudbroker/rg/access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRevokeRequest struct to revoke access diff --git a/pkg/cloudbroker/rg/affinity_group_computes.go b/pkg/cloudbroker/rg/affinity_group_computes.go index 2f8a0be..cd8ff08 100644 --- a/pkg/cloudbroker/rg/affinity_group_computes.go +++ b/pkg/cloudbroker/rg/affinity_group_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupComputesRequest struct to get list of all computes with their relationships diff --git a/pkg/cloudbroker/rg/affinity_groups_get.go b/pkg/cloudbroker/rg/affinity_groups_get.go index da6282d..c2c2846 100644 --- a/pkg/cloudbroker/rg/affinity_groups_get.go +++ b/pkg/cloudbroker/rg/affinity_groups_get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupsGetRequest struct to get list of computes from affinity group diff --git a/pkg/cloudbroker/rg/affinity_groups_list.go b/pkg/cloudbroker/rg/affinity_groups_list.go index fbbb3ad..f65ea4a 100644 --- a/pkg/cloudbroker/rg/affinity_groups_list.go +++ b/pkg/cloudbroker/rg/affinity_groups_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AffinityGroupsListRequest struct to get list of affinity groups from resource group diff --git a/pkg/cloudbroker/rg/audits.go b/pkg/cloudbroker/rg/audits.go index 217e69a..c8bf86e 100644 --- a/pkg/cloudbroker/rg/audits.go +++ b/pkg/cloudbroker/rg/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audit diff --git a/pkg/cloudbroker/rg/create.go b/pkg/cloudbroker/rg/create.go index 4133f40..15f5385 100644 --- a/pkg/cloudbroker/rg/create.go +++ b/pkg/cloudbroker/rg/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create resource group diff --git a/pkg/cloudbroker/rg/delete.go b/pkg/cloudbroker/rg/delete.go index b0b9dfb..0d064c2 100644 --- a/pkg/cloudbroker/rg/delete.go +++ b/pkg/cloudbroker/rg/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete resource group diff --git a/pkg/cloudbroker/rg/disable.go b/pkg/cloudbroker/rg/disable.go index c544338..1e73a8d 100644 --- a/pkg/cloudbroker/rg/disable.go +++ b/pkg/cloudbroker/rg/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable resource group diff --git a/pkg/cloudbroker/rg/enable.go b/pkg/cloudbroker/rg/enable.go index 23ec05f..e19699c 100644 --- a/pkg/cloudbroker/rg/enable.go +++ b/pkg/cloudbroker/rg/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable resource group diff --git a/pkg/cloudbroker/rg/get.go b/pkg/cloudbroker/rg/get.go index 7a8ca96..29bfcd4 100644 --- a/pkg/cloudbroker/rg/get.go +++ b/pkg/cloudbroker/rg/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about resource group diff --git a/pkg/cloudbroker/rg/get_resource_consumption.go b/pkg/cloudbroker/rg/get_resource_consumption.go index 2295c5e..f857939 100644 --- a/pkg/cloudbroker/rg/get_resource_consumption.go +++ b/pkg/cloudbroker/rg/get_resource_consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetResourceConsumptionRequest struct to get detailed information about resource consumption for ResGroup diff --git a/pkg/cloudbroker/rg/list.go b/pkg/cloudbroker/rg/list.go index 3fbddb2..e432746 100644 --- a/pkg/cloudbroker/rg/list.go +++ b/pkg/cloudbroker/rg/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of resource groups diff --git a/pkg/cloudbroker/rg/list_computes.go b/pkg/cloudbroker/rg/list_computes.go index 1f17b78..0ccaf07 100644 --- a/pkg/cloudbroker/rg/list_computes.go +++ b/pkg/cloudbroker/rg/list_computes.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListComputesRequest struct to get list of computes diff --git a/pkg/cloudbroker/rg/list_deleted.go b/pkg/cloudbroker/rg/list_deleted.go index c81a916..2b653c8 100644 --- a/pkg/cloudbroker/rg/list_deleted.go +++ b/pkg/cloudbroker/rg/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted resource groups diff --git a/pkg/cloudbroker/rg/list_lb.go b/pkg/cloudbroker/rg/list_lb.go index 83b5559..1046442 100644 --- a/pkg/cloudbroker/rg/list_lb.go +++ b/pkg/cloudbroker/rg/list_lb.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListLBRequest struct to get list of load balancers diff --git a/pkg/cloudbroker/rg/list_pfw.go b/pkg/cloudbroker/rg/list_pfw.go index 4febb1b..98f22db 100644 --- a/pkg/cloudbroker/rg/list_pfw.go +++ b/pkg/cloudbroker/rg/list_pfw.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListPFWRequest struct to get list of port forward rules diff --git a/pkg/cloudbroker/rg/list_vins.go b/pkg/cloudbroker/rg/list_vins.go index 36fd010..597729a 100644 --- a/pkg/cloudbroker/rg/list_vins.go +++ b/pkg/cloudbroker/rg/list_vins.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListVINSRequest struct to get list of VINSes diff --git a/pkg/cloudbroker/rg/mass_delete.go b/pkg/cloudbroker/rg/mass_delete.go index fe2ea24..2778496 100644 --- a/pkg/cloudbroker/rg/mass_delete.go +++ b/pkg/cloudbroker/rg/mass_delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassDeleteRequest struct to delete several resource groups diff --git a/pkg/cloudbroker/rg/mass_disable.go b/pkg/cloudbroker/rg/mass_disable.go index 5ee3d74..9213d49 100644 --- a/pkg/cloudbroker/rg/mass_disable.go +++ b/pkg/cloudbroker/rg/mass_disable.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassDisableRequest struct to disable several resource groups diff --git a/pkg/cloudbroker/rg/mass_enable.go b/pkg/cloudbroker/rg/mass_enable.go index 3ac582c..dfce85a 100644 --- a/pkg/cloudbroker/rg/mass_enable.go +++ b/pkg/cloudbroker/rg/mass_enable.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassEnableRequest struct to enable several resource groups diff --git a/pkg/cloudbroker/rg/remove_def_net.go b/pkg/cloudbroker/rg/remove_def_net.go index 2f658aa..22c63bc 100644 --- a/pkg/cloudbroker/rg/remove_def_net.go +++ b/pkg/cloudbroker/rg/remove_def_net.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RemoveDefNetRequest struct to remove default network diff --git a/pkg/cloudbroker/rg/restore.go b/pkg/cloudbroker/rg/restore.go index 3118984..0ebdc00 100644 --- a/pkg/cloudbroker/rg/restore.go +++ b/pkg/cloudbroker/rg/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct to restore resource group diff --git a/pkg/cloudbroker/rg/rg.go b/pkg/cloudbroker/rg/rg.go index 6fa1233..d1c3bce 100644 --- a/pkg/cloudbroker/rg/rg.go +++ b/pkg/cloudbroker/rg/rg.go @@ -2,7 +2,7 @@ package rg import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to resource group diff --git a/pkg/cloudbroker/rg/serialize.go b/pkg/cloudbroker/rg/serialize.go index 374a94d..9594cff 100644 --- a/pkg/cloudbroker/rg/serialize.go +++ b/pkg/cloudbroker/rg/serialize.go @@ -3,7 +3,7 @@ package rg import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/rg/set_cpu_allocation_parameter.go b/pkg/cloudbroker/rg/set_cpu_allocation_parameter.go index 7a00afd..c08dc40 100644 --- a/pkg/cloudbroker/rg/set_cpu_allocation_parameter.go +++ b/pkg/cloudbroker/rg/set_cpu_allocation_parameter.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationParameterRequest struct for setting CPU allocation parameter diff --git a/pkg/cloudbroker/rg/set_cpu_allocation_ratio.go b/pkg/cloudbroker/rg/set_cpu_allocation_ratio.go index 575d95a..74bc2e7 100644 --- a/pkg/cloudbroker/rg/set_cpu_allocation_ratio.go +++ b/pkg/cloudbroker/rg/set_cpu_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCPUAllocationRatioRequest struct for setting CPU allocation ratio diff --git a/pkg/cloudbroker/rg/set_def_net.go b/pkg/cloudbroker/rg/set_def_net.go index b374337..b2ada6d 100644 --- a/pkg/cloudbroker/rg/set_def_net.go +++ b/pkg/cloudbroker/rg/set_def_net.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetDefNetRequest struct to set default network diff --git a/pkg/cloudbroker/rg/update.go b/pkg/cloudbroker/rg/update.go index db9d953..a73509d 100644 --- a/pkg/cloudbroker/rg/update.go +++ b/pkg/cloudbroker/rg/update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update resource group diff --git a/pkg/cloudbroker/rg/update_compute_features.go b/pkg/cloudbroker/rg/update_compute_features.go index dab210c..9e85f37 100644 --- a/pkg/cloudbroker/rg/update_compute_features.go +++ b/pkg/cloudbroker/rg/update_compute_features.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateComputeFeaturesRequest struct to update advanced compute features diff --git a/pkg/cloudbroker/rg/update_resource_types.go b/pkg/cloudbroker/rg/update_resource_types.go index bd08563..ef8c92d 100644 --- a/pkg/cloudbroker/rg/update_resource_types.go +++ b/pkg/cloudbroker/rg/update_resource_types.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateResourceTypesRequest struct to update resource types in account diff --git a/pkg/cloudbroker/rg/usage.go b/pkg/cloudbroker/rg/usage.go index e6e1611..ac77282 100644 --- a/pkg/cloudbroker/rg/usage.go +++ b/pkg/cloudbroker/rg/usage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UsageRequest struct to get report of resource usage diff --git a/pkg/cloudbroker/sep.go b/pkg/cloudbroker/sep.go index 1e3532d..1aa180f 100644 --- a/pkg/cloudbroker/sep.go +++ b/pkg/cloudbroker/sep.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/sep" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/sep" // Accessing the SEP method group func (cb *CloudBroker) SEP() *sep.SEP { diff --git a/pkg/cloudbroker/sep/access_grant.go b/pkg/cloudbroker/sep/access_grant.go index e662bda..f12e3aa 100644 --- a/pkg/cloudbroker/sep/access_grant.go +++ b/pkg/cloudbroker/sep/access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessGrantRequest struct to grant access to SEP diff --git a/pkg/cloudbroker/sep/access_grant_to_pool.go b/pkg/cloudbroker/sep/access_grant_to_pool.go index 2663195..c54f5c1 100644 --- a/pkg/cloudbroker/sep/access_grant_to_pool.go +++ b/pkg/cloudbroker/sep/access_grant_to_pool.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessGrantToPoolRequest struct to grant access to pool SEP diff --git a/pkg/cloudbroker/sep/access_revoke.go b/pkg/cloudbroker/sep/access_revoke.go index ad5ffca..27ebca5 100644 --- a/pkg/cloudbroker/sep/access_revoke.go +++ b/pkg/cloudbroker/sep/access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRevokeRequest struct to revoke access to SEP diff --git a/pkg/cloudbroker/sep/access_revoke_to_pool.go b/pkg/cloudbroker/sep/access_revoke_to_pool.go index 678e6e5..73e98d5 100644 --- a/pkg/cloudbroker/sep/access_revoke_to_pool.go +++ b/pkg/cloudbroker/sep/access_revoke_to_pool.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AccessRevokeToPoolRequest struct to revoke access to pool SEP diff --git a/pkg/cloudbroker/sep/add_consumer_nodes.go b/pkg/cloudbroker/sep/add_consumer_nodes.go index b6ad4f1..6995559 100644 --- a/pkg/cloudbroker/sep/add_consumer_nodes.go +++ b/pkg/cloudbroker/sep/add_consumer_nodes.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddConsumerNodesRequest struct to add consumer nodes diff --git a/pkg/cloudbroker/sep/add_pool.go b/pkg/cloudbroker/sep/add_pool.go index a9eed73..388ffa7 100644 --- a/pkg/cloudbroker/sep/add_pool.go +++ b/pkg/cloudbroker/sep/add_pool.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddPoolRequest struct to add pool to storage endpoint (SEP) diff --git a/pkg/cloudbroker/sep/add_provider_nodes.go b/pkg/cloudbroker/sep/add_provider_nodes.go index b94507b..17829eb 100644 --- a/pkg/cloudbroker/sep/add_provider_nodes.go +++ b/pkg/cloudbroker/sep/add_provider_nodes.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AddProviderNodesRequest struct to add provider nodes diff --git a/pkg/cloudbroker/sep/config_field_edit.go b/pkg/cloudbroker/sep/config_field_edit.go index 18ef1fa..7021975 100644 --- a/pkg/cloudbroker/sep/config_field_edit.go +++ b/pkg/cloudbroker/sep/config_field_edit.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConfigFieldEditRequest struct to edit config fields diff --git a/pkg/cloudbroker/sep/config_insert.go b/pkg/cloudbroker/sep/config_insert.go index ae0e0b2..c146980 100644 --- a/pkg/cloudbroker/sep/config_insert.go +++ b/pkg/cloudbroker/sep/config_insert.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConfigInsertRequest struct to insert config diff --git a/pkg/cloudbroker/sep/config_validate.go b/pkg/cloudbroker/sep/config_validate.go index c6ae1ce..03d3120 100644 --- a/pkg/cloudbroker/sep/config_validate.go +++ b/pkg/cloudbroker/sep/config_validate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConfigValidateRequest struct to validate config diff --git a/pkg/cloudbroker/sep/consumption.go b/pkg/cloudbroker/sep/consumption.go index 3f50f26..416c399 100644 --- a/pkg/cloudbroker/sep/consumption.go +++ b/pkg/cloudbroker/sep/consumption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ConsumptionRequest struct to get consumption info diff --git a/pkg/cloudbroker/sep/create.go b/pkg/cloudbroker/sep/create.go index a2ff497..9892f17 100644 --- a/pkg/cloudbroker/sep/create.go +++ b/pkg/cloudbroker/sep/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create SEP object diff --git a/pkg/cloudbroker/sep/decommission.go b/pkg/cloudbroker/sep/decommission.go index 77a056d..f0db101 100644 --- a/pkg/cloudbroker/sep/decommission.go +++ b/pkg/cloudbroker/sep/decommission.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DecommissionRequest struct for decommission diff --git a/pkg/cloudbroker/sep/del_consumer_nodes.go b/pkg/cloudbroker/sep/del_consumer_nodes.go index 2ba5a54..432237c 100644 --- a/pkg/cloudbroker/sep/del_consumer_nodes.go +++ b/pkg/cloudbroker/sep/del_consumer_nodes.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DelConsumerNodesRequest struct to exclude consumer nodes diff --git a/pkg/cloudbroker/sep/del_pool.go b/pkg/cloudbroker/sep/del_pool.go index da5e155..8177b97 100644 --- a/pkg/cloudbroker/sep/del_pool.go +++ b/pkg/cloudbroker/sep/del_pool.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DelPoolRequest struct to delete pool from storage endpoint (SEP) diff --git a/pkg/cloudbroker/sep/delete.go b/pkg/cloudbroker/sep/delete.go index bfacd51..9d6c4eb 100644 --- a/pkg/cloudbroker/sep/delete.go +++ b/pkg/cloudbroker/sep/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete SEP diff --git a/pkg/cloudbroker/sep/disable.go b/pkg/cloudbroker/sep/disable.go index 712fa76..bd21ec0 100644 --- a/pkg/cloudbroker/sep/disable.go +++ b/pkg/cloudbroker/sep/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable SEP diff --git a/pkg/cloudbroker/sep/disk_list.go b/pkg/cloudbroker/sep/disk_list.go index 6d5a7d8..6a0bd98 100644 --- a/pkg/cloudbroker/sep/disk_list.go +++ b/pkg/cloudbroker/sep/disk_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DiskListRequest struct to get list of disk IDs diff --git a/pkg/cloudbroker/sep/enable.go b/pkg/cloudbroker/sep/enable.go index b10fcdb..7b9abc6 100644 --- a/pkg/cloudbroker/sep/enable.go +++ b/pkg/cloudbroker/sep/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable SEP diff --git a/pkg/cloudbroker/sep/get.go b/pkg/cloudbroker/sep/get.go index 7341806..d86bfba 100644 --- a/pkg/cloudbroker/sep/get.go +++ b/pkg/cloudbroker/sep/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get SEP parameters diff --git a/pkg/cloudbroker/sep/get_config.go b/pkg/cloudbroker/sep/get_config.go index 9142fc9..4e6216d 100644 --- a/pkg/cloudbroker/sep/get_config.go +++ b/pkg/cloudbroker/sep/get_config.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetConfigRequest struct to get SEP config diff --git a/pkg/cloudbroker/sep/get_pool.go b/pkg/cloudbroker/sep/get_pool.go index 637dff1..2441438 100644 --- a/pkg/cloudbroker/sep/get_pool.go +++ b/pkg/cloudbroker/sep/get_pool.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetPoolRequest struct to get SEP pool config by name diff --git a/pkg/cloudbroker/sep/list.go b/pkg/cloudbroker/sep/list.go index 45c836c..a43c585 100644 --- a/pkg/cloudbroker/sep/list.go +++ b/pkg/cloudbroker/sep/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of SEPs diff --git a/pkg/cloudbroker/sep/models.go b/pkg/cloudbroker/sep/models.go index 39bfb5d..f22c31a 100644 --- a/pkg/cloudbroker/sep/models.go +++ b/pkg/cloudbroker/sep/models.go @@ -25,7 +25,7 @@ type Total struct { } type ByPool struct { - + // Disk count DiskCount uint64 `json:"disk_count"` @@ -101,12 +101,6 @@ type SEPConfig map[string]interface{} // Detailed information about SEP type RecordSEP struct { - // CKey - CKey string `json:"_ckey"` - - // Meta - Meta []interface{} `json:"_meta"` - // Config Config SEPConfig `json:"config"` @@ -128,6 +122,9 @@ type RecordSEP struct { // Milestones Milestones uint64 `json:"milestones"` + // MultipathNum + MultipathNum uint64 `json:"multipathNum"` + // Name Name string `json:"name"` diff --git a/pkg/cloudbroker/sep/sep.go b/pkg/cloudbroker/sep/sep.go index 683e12c..8b9e965 100644 --- a/pkg/cloudbroker/sep/sep.go +++ b/pkg/cloudbroker/sep/sep.go @@ -2,7 +2,7 @@ package sep import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to storage endpoint provider diff --git a/pkg/cloudbroker/sep/serialize.go b/pkg/cloudbroker/sep/serialize.go index 5813f84..00cdd58 100644 --- a/pkg/cloudbroker/sep/serialize.go +++ b/pkg/cloudbroker/sep/serialize.go @@ -3,7 +3,7 @@ package sep import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/sep/shared_lock_start.go b/pkg/cloudbroker/sep/shared_lock_start.go index 4d7c737..ba53e62 100644 --- a/pkg/cloudbroker/sep/shared_lock_start.go +++ b/pkg/cloudbroker/sep/shared_lock_start.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SharedLockStartRequest struct to start shared locks diff --git a/pkg/cloudbroker/sep/shared_lock_stop.go b/pkg/cloudbroker/sep/shared_lock_stop.go index f7b8a7d..0820548 100644 --- a/pkg/cloudbroker/sep/shared_lock_stop.go +++ b/pkg/cloudbroker/sep/shared_lock_stop.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SharedLockStopRequest struct to stop shared locks diff --git a/pkg/cloudbroker/sep/update_capacity_limit.go b/pkg/cloudbroker/sep/update_capacity_limit.go deleted file mode 100644 index f21ce38..0000000 --- a/pkg/cloudbroker/sep/update_capacity_limit.go +++ /dev/null @@ -1,38 +0,0 @@ -package sep - -import ( - "context" - "net/http" - "strconv" - - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" -) - -// UpdateCapacityLimitRequest struct to update capacity limits -type UpdateCapacityLimitRequest struct { - // Storage endpoint provider ID - // Required: true - SEPID uint64 `url:"sep_id" json:"sep_id" validate:"required"` -} - -// UpdateCapacityLimit updates SEP capacity limit -func (s SEP) UpdateCapacityLimit(ctx context.Context, req UpdateCapacityLimitRequest) (uint64, error) { - err := validators.ValidateRequest(req) - if err != nil { - return 0, validators.ValidationErrors(validators.GetErrors(err)) - } - - url := "/cloudbroker/sep/updateCapacityLimit" - - res, err := s.client.DecortApiCall(ctx, http.MethodPost, url, req) - if err != nil { - return 0, err - } - - result, err := strconv.ParseUint(string(res), 10, 64) - if err != nil { - return 0, err - } - - return result, nil -} diff --git a/pkg/cloudbroker/stack.go b/pkg/cloudbroker/stack.go index 08af857..61da99d 100644 --- a/pkg/cloudbroker/stack.go +++ b/pkg/cloudbroker/stack.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/stack" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/stack" ) // Accessing the Stack method group diff --git a/pkg/cloudbroker/stack/get.go b/pkg/cloudbroker/stack/get.go index 4bf196a..75f6896 100644 --- a/pkg/cloudbroker/stack/get.go +++ b/pkg/cloudbroker/stack/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get list of stacks diff --git a/pkg/cloudbroker/stack/get_logical_cores_count.go b/pkg/cloudbroker/stack/get_logical_cores_count.go index 8b25eb0..1be0c82 100644 --- a/pkg/cloudbroker/stack/get_logical_cores_count.go +++ b/pkg/cloudbroker/stack/get_logical_cores_count.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetLogicalCoresCountRequest struct to get logical cores count by stack diff --git a/pkg/cloudbroker/stack/list.go b/pkg/cloudbroker/stack/list.go index 004ad4f..2363a33 100644 --- a/pkg/cloudbroker/stack/list.go +++ b/pkg/cloudbroker/stack/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of stacks diff --git a/pkg/cloudbroker/stack/set_cpu_allocation_ratio.go b/pkg/cloudbroker/stack/set_cpu_allocation_ratio.go index 276144d..172d89b 100644 --- a/pkg/cloudbroker/stack/set_cpu_allocation_ratio.go +++ b/pkg/cloudbroker/stack/set_cpu_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetCpuAllocationRatioRequest struct to set CPU allocation ratio diff --git a/pkg/cloudbroker/stack/set_mem_allocation_ratio.go b/pkg/cloudbroker/stack/set_mem_allocation_ratio.go index 6cf4e50..4b9ea95 100644 --- a/pkg/cloudbroker/stack/set_mem_allocation_ratio.go +++ b/pkg/cloudbroker/stack/set_mem_allocation_ratio.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // SetMemAllocationRatioRequest struct to set memory allocation ratio diff --git a/pkg/cloudbroker/stack/stack.go b/pkg/cloudbroker/stack/stack.go index 2426a52..383b55c 100644 --- a/pkg/cloudbroker/stack/stack.go +++ b/pkg/cloudbroker/stack/stack.go @@ -1,6 +1,6 @@ package stack -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to stack type Stack struct { diff --git a/pkg/cloudbroker/tasks.go b/pkg/cloudbroker/tasks.go index a73ba78..94ee2d0 100644 --- a/pkg/cloudbroker/tasks.go +++ b/pkg/cloudbroker/tasks.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/tasks" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/tasks" ) // Accessing the tasks method group diff --git a/pkg/cloudbroker/tasks/get.go b/pkg/cloudbroker/tasks/get.go index 3315d34..6c41b06 100644 --- a/pkg/cloudbroker/tasks/get.go +++ b/pkg/cloudbroker/tasks/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get background API task status and result diff --git a/pkg/cloudbroker/tasks/list.go b/pkg/cloudbroker/tasks/list.go index 6f4c8d0..419a299 100644 --- a/pkg/cloudbroker/tasks/list.go +++ b/pkg/cloudbroker/tasks/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of audits diff --git a/pkg/cloudbroker/tasks/tasks.go b/pkg/cloudbroker/tasks/tasks.go index c584595..c7e07ff 100644 --- a/pkg/cloudbroker/tasks/tasks.go +++ b/pkg/cloudbroker/tasks/tasks.go @@ -1,7 +1,7 @@ // User API tasks interface package tasks -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to tasks type Tasks struct { diff --git a/pkg/cloudbroker/user.go b/pkg/cloudbroker/user.go index bffc075..9c7f693 100644 --- a/pkg/cloudbroker/user.go +++ b/pkg/cloudbroker/user.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/user" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/user" func (cb *CloudBroker) User() *user.User { return user.New(cb.client) diff --git a/pkg/cloudbroker/user/api_list.go b/pkg/cloudbroker/user/api_list.go index 5e90beb..afc6db1 100644 --- a/pkg/cloudbroker/user/api_list.go +++ b/pkg/cloudbroker/user/api_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIListRequest struct for getting API list. diff --git a/pkg/cloudbroker/user/apiaccess_join.go b/pkg/cloudbroker/user/apiaccess_join.go index 96e27d4..905f694 100644 --- a/pkg/cloudbroker/user/apiaccess_join.go +++ b/pkg/cloudbroker/user/apiaccess_join.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIAccessJoinRequest struct for joining user into apiaccess group. diff --git a/pkg/cloudbroker/user/apiaccess_leave.go b/pkg/cloudbroker/user/apiaccess_leave.go index 8056a96..97e07be 100644 --- a/pkg/cloudbroker/user/apiaccess_leave.go +++ b/pkg/cloudbroker/user/apiaccess_leave.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIAccessLeaveRequest struct for leaving user from apiaccess group. diff --git a/pkg/cloudbroker/user/apiaccess_list.go b/pkg/cloudbroker/user/apiaccess_list.go index e5591cf..5737be2 100644 --- a/pkg/cloudbroker/user/apiaccess_list.go +++ b/pkg/cloudbroker/user/apiaccess_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // APIAccessListRequest struct for showing list of dicts with information about diff --git a/pkg/cloudbroker/user/create.go b/pkg/cloudbroker/user/create.go index b718fcf..2cf9e17 100644 --- a/pkg/cloudbroker/user/create.go +++ b/pkg/cloudbroker/user/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for creating a user. diff --git a/pkg/cloudbroker/user/delete.go b/pkg/cloudbroker/user/delete.go index 593f9d0..1dd2be8 100644 --- a/pkg/cloudbroker/user/delete.go +++ b/pkg/cloudbroker/user/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct for deleting a user. diff --git a/pkg/cloudbroker/user/delete_by_guid.go b/pkg/cloudbroker/user/delete_by_guid.go index af50ae8..47b7261 100644 --- a/pkg/cloudbroker/user/delete_by_guid.go +++ b/pkg/cloudbroker/user/delete_by_guid.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteByGUIDRequest struct for deleting a user using user's GUID. diff --git a/pkg/cloudbroker/user/delete_users.go b/pkg/cloudbroker/user/delete_users.go index bf5ff31..20825f1 100644 --- a/pkg/cloudbroker/user/delete_users.go +++ b/pkg/cloudbroker/user/delete_users.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteUsersRequest struct for bulk delete a list of users. diff --git a/pkg/cloudbroker/user/get.go b/pkg/cloudbroker/user/get.go index 27caeea..17faf58 100644 --- a/pkg/cloudbroker/user/get.go +++ b/pkg/cloudbroker/user/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get user details. diff --git a/pkg/cloudbroker/user/get_matching_usernames.go b/pkg/cloudbroker/user/get_matching_usernames.go index d482e19..fb3a8c4 100644 --- a/pkg/cloudbroker/user/get_matching_usernames.go +++ b/pkg/cloudbroker/user/get_matching_usernames.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetMatchingUsernamesRequest struct for getting a list of the matching usernames for a given string. diff --git a/pkg/cloudbroker/user/list.go b/pkg/cloudbroker/user/list.go index 55b0960..5816fbf 100644 --- a/pkg/cloudbroker/user/list.go +++ b/pkg/cloudbroker/user/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get all non deleted user instances. diff --git a/pkg/cloudbroker/user/user.go b/pkg/cloudbroker/user/user.go index 9a1ff2c..2fe152a 100644 --- a/pkg/cloudbroker/user/user.go +++ b/pkg/cloudbroker/user/user.go @@ -1,6 +1,6 @@ package user -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to User type User struct { diff --git a/pkg/cloudbroker/vfpool.go b/pkg/cloudbroker/vfpool.go index 2697aff..2358287 100644 --- a/pkg/cloudbroker/vfpool.go +++ b/pkg/cloudbroker/vfpool.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/vfpool" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/vfpool" // Accessing the VFPool method group func (cb *CloudBroker) VFPool() *vfpool.VFPool { diff --git a/pkg/cloudbroker/vfpool/create.go b/pkg/cloudbroker/vfpool/create.go index a979166..a9fd075 100644 --- a/pkg/cloudbroker/vfpool/create.go +++ b/pkg/cloudbroker/vfpool/create.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct to create vfpool device diff --git a/pkg/cloudbroker/vfpool/delete.go b/pkg/cloudbroker/vfpool/delete.go index 2c6e7d9..2c8b80f 100644 --- a/pkg/cloudbroker/vfpool/delete.go +++ b/pkg/cloudbroker/vfpool/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete vfpool device diff --git a/pkg/cloudbroker/vfpool/disable.go b/pkg/cloudbroker/vfpool/disable.go index 7a59fe1..b403a63 100644 --- a/pkg/cloudbroker/vfpool/disable.go +++ b/pkg/cloudbroker/vfpool/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable vfpool device diff --git a/pkg/cloudbroker/vfpool/enable.go b/pkg/cloudbroker/vfpool/enable.go index 25467d1..f9c7819 100644 --- a/pkg/cloudbroker/vfpool/enable.go +++ b/pkg/cloudbroker/vfpool/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable vfpool device diff --git a/pkg/cloudbroker/vfpool/get.go b/pkg/cloudbroker/vfpool/get.go index 99f13e3..b869d2b 100644 --- a/pkg/cloudbroker/vfpool/get.go +++ b/pkg/cloudbroker/vfpool/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get detailed information about vfpool device diff --git a/pkg/cloudbroker/vfpool/list.go b/pkg/cloudbroker/vfpool/list.go index 5b17adc..7268a08 100644 --- a/pkg/cloudbroker/vfpool/list.go +++ b/pkg/cloudbroker/vfpool/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of vfpool devices diff --git a/pkg/cloudbroker/vfpool/serialize.go b/pkg/cloudbroker/vfpool/serialize.go index d840502..c40fc44 100644 --- a/pkg/cloudbroker/vfpool/serialize.go +++ b/pkg/cloudbroker/vfpool/serialize.go @@ -3,7 +3,7 @@ package vfpool import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/vfpool/update.go b/pkg/cloudbroker/vfpool/update.go index 7415f21..f02bd42 100644 --- a/pkg/cloudbroker/vfpool/update.go +++ b/pkg/cloudbroker/vfpool/update.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // UpdateRequest struct to update vfpool device diff --git a/pkg/cloudbroker/vfpool/vfpool.go b/pkg/cloudbroker/vfpool/vfpool.go index 15f7996..f952dee 100644 --- a/pkg/cloudbroker/vfpool/vfpool.go +++ b/pkg/cloudbroker/vfpool/vfpool.go @@ -2,7 +2,7 @@ package vfpool import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to vfpool diff --git a/pkg/cloudbroker/vgpu.go b/pkg/cloudbroker/vgpu.go index b7f3424..80f3604 100644 --- a/pkg/cloudbroker/vgpu.go +++ b/pkg/cloudbroker/vgpu.go @@ -1,6 +1,6 @@ package cloudbroker -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/vgpu" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/vgpu" // Accessing the VGPU method group func (cb *CloudBroker) VGPU() *vgpu.VGPU { diff --git a/pkg/cloudbroker/vgpu/allocate.go b/pkg/cloudbroker/vgpu/allocate.go index f91a01a..ce6ac40 100644 --- a/pkg/cloudbroker/vgpu/allocate.go +++ b/pkg/cloudbroker/vgpu/allocate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AllocateRequest struct for allocating VGPU diff --git a/pkg/cloudbroker/vgpu/create.go b/pkg/cloudbroker/vgpu/create.go index 58b554c..9f085d9 100644 --- a/pkg/cloudbroker/vgpu/create.go +++ b/pkg/cloudbroker/vgpu/create.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateRequest struct for creating VGPU diff --git a/pkg/cloudbroker/vgpu/deallocate.go b/pkg/cloudbroker/vgpu/deallocate.go index 4a8fe20..e2b6b1e 100644 --- a/pkg/cloudbroker/vgpu/deallocate.go +++ b/pkg/cloudbroker/vgpu/deallocate.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeallocateRequest struct for deallocating VGPU diff --git a/pkg/cloudbroker/vgpu/destroy.go b/pkg/cloudbroker/vgpu/destroy.go index 72ee68e..a600723 100644 --- a/pkg/cloudbroker/vgpu/destroy.go +++ b/pkg/cloudbroker/vgpu/destroy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DestroyRequest struct for destroying VGPU diff --git a/pkg/cloudbroker/vgpu/list.go b/pkg/cloudbroker/vgpu/list.go index c4cbca2..6a53f57 100644 --- a/pkg/cloudbroker/vgpu/list.go +++ b/pkg/cloudbroker/vgpu/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of VGPU @@ -30,6 +30,10 @@ type ListRequest struct { // Required: false RGID uint64 `url:"rgId,omitempty" json:"rgId,omitempty"` + // Find by id node + // Required: false + NID uint64 `url:"nid,omitempty" json:"nid,omitempty"` + // Find by account id // Required: false AccountID uint64 `url:"accountId,omitempty" json:"accountId,omitempty"` diff --git a/pkg/cloudbroker/vgpu/serialize.go b/pkg/cloudbroker/vgpu/serialize.go index ccb101f..b25a89e 100644 --- a/pkg/cloudbroker/vgpu/serialize.go +++ b/pkg/cloudbroker/vgpu/serialize.go @@ -3,7 +3,7 @@ package vgpu import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/vgpu/vgpu.go b/pkg/cloudbroker/vgpu/vgpu.go index db27c12..2e0efc3 100644 --- a/pkg/cloudbroker/vgpu/vgpu.go +++ b/pkg/cloudbroker/vgpu/vgpu.go @@ -1,6 +1,6 @@ package vgpu -import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" +import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" // Structure for creating request to VGPU type VGPU struct { diff --git a/pkg/cloudbroker/vins.go b/pkg/cloudbroker/vins.go index 719533d..85360ee 100644 --- a/pkg/cloudbroker/vins.go +++ b/pkg/cloudbroker/vins.go @@ -1,7 +1,7 @@ package cloudbroker import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker/vins" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker/vins" ) // Accessing the VINS method group diff --git a/pkg/cloudbroker/vins/audits.go b/pkg/cloudbroker/vins/audits.go index 7638fe2..270b2e8 100644 --- a/pkg/cloudbroker/vins/audits.go +++ b/pkg/cloudbroker/vins/audits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // AuditsRequest struct to get audits diff --git a/pkg/cloudbroker/vins/create_in_account.go b/pkg/cloudbroker/vins/create_in_account.go index 8c241e5..32abe3b 100644 --- a/pkg/cloudbroker/vins/create_in_account.go +++ b/pkg/cloudbroker/vins/create_in_account.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) type Route struct { diff --git a/pkg/cloudbroker/vins/create_in_rg.go b/pkg/cloudbroker/vins/create_in_rg.go index 2eab2fe..d190999 100644 --- a/pkg/cloudbroker/vins/create_in_rg.go +++ b/pkg/cloudbroker/vins/create_in_rg.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // CreateInRGRequest struct to create VINS in resource group diff --git a/pkg/cloudbroker/vins/default_qos_update.go b/pkg/cloudbroker/vins/default_qos_update.go index 5dfe7ea..9c8fdd2 100644 --- a/pkg/cloudbroker/vins/default_qos_update.go +++ b/pkg/cloudbroker/vins/default_qos_update.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DefaultQOSUpdateRequest struct to update QOS diff --git a/pkg/cloudbroker/vins/delete.go b/pkg/cloudbroker/vins/delete.go index 01a3369..01f034e 100644 --- a/pkg/cloudbroker/vins/delete.go +++ b/pkg/cloudbroker/vins/delete.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DeleteRequest struct to delete VINS diff --git a/pkg/cloudbroker/vins/disable.go b/pkg/cloudbroker/vins/disable.go index aa7a9d6..4d00487 100644 --- a/pkg/cloudbroker/vins/disable.go +++ b/pkg/cloudbroker/vins/disable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DisableRequest struct to disable VINS diff --git a/pkg/cloudbroker/vins/dns_apply.go b/pkg/cloudbroker/vins/dns_apply.go index eb422fd..6da9c30 100644 --- a/pkg/cloudbroker/vins/dns_apply.go +++ b/pkg/cloudbroker/vins/dns_apply.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // DNSApplyRequest struct to apply new DNS list in VINS diff --git a/pkg/cloudbroker/vins/enable.go b/pkg/cloudbroker/vins/enable.go index 2f63453..9ca8c33 100644 --- a/pkg/cloudbroker/vins/enable.go +++ b/pkg/cloudbroker/vins/enable.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // EnableRequest struct to enable VINS diff --git a/pkg/cloudbroker/vins/extnet_connect.go b/pkg/cloudbroker/vins/extnet_connect.go index 9914dd5..a7a0759 100644 --- a/pkg/cloudbroker/vins/extnet_connect.go +++ b/pkg/cloudbroker/vins/extnet_connect.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetConnectRequest struct to connect external network diff --git a/pkg/cloudbroker/vins/extnet_disconnect.go b/pkg/cloudbroker/vins/extnet_disconnect.go index 2f84834..98c1bef 100644 --- a/pkg/cloudbroker/vins/extnet_disconnect.go +++ b/pkg/cloudbroker/vins/extnet_disconnect.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetDisconnectRequest struct to disconnect VINS from external network diff --git a/pkg/cloudbroker/vins/extnet_list.go b/pkg/cloudbroker/vins/extnet_list.go index f84857b..509ed31 100644 --- a/pkg/cloudbroker/vins/extnet_list.go +++ b/pkg/cloudbroker/vins/extnet_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ExtNetListRequest struct to get list of VINS external network connections diff --git a/pkg/cloudbroker/vins/get.go b/pkg/cloudbroker/vins/get.go index fbc6579..beee627 100644 --- a/pkg/cloudbroker/vins/get.go +++ b/pkg/cloudbroker/vins/get.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // GetRequest struct to get information about VINS diff --git a/pkg/cloudbroker/vins/ip_list.go b/pkg/cloudbroker/vins/ip_list.go index 4123ce2..b2f234c 100644 --- a/pkg/cloudbroker/vins/ip_list.go +++ b/pkg/cloudbroker/vins/ip_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPListRequest struct for DHCP IP diff --git a/pkg/cloudbroker/vins/ip_release.go b/pkg/cloudbroker/vins/ip_release.go index b7c11bf..141531b 100644 --- a/pkg/cloudbroker/vins/ip_release.go +++ b/pkg/cloudbroker/vins/ip_release.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPReleaseRequest struct for IP release diff --git a/pkg/cloudbroker/vins/ip_reserve.go b/pkg/cloudbroker/vins/ip_reserve.go index 595ed9c..0445f28 100644 --- a/pkg/cloudbroker/vins/ip_reserve.go +++ b/pkg/cloudbroker/vins/ip_reserve.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // IPReserveRequest struct for IP reserve diff --git a/pkg/cloudbroker/vins/list.go b/pkg/cloudbroker/vins/list.go index 8531776..7753c79 100644 --- a/pkg/cloudbroker/vins/list.go +++ b/pkg/cloudbroker/vins/list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListRequest struct to get list of VINSes diff --git a/pkg/cloudbroker/vins/list_deleted.go b/pkg/cloudbroker/vins/list_deleted.go index 9729b28..506627e 100644 --- a/pkg/cloudbroker/vins/list_deleted.go +++ b/pkg/cloudbroker/vins/list_deleted.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // ListDeletedRequest struct to get list of deleted VINSes diff --git a/pkg/cloudbroker/vins/mass_delete.go b/pkg/cloudbroker/vins/mass_delete.go index 3c024f7..9c3dab2 100644 --- a/pkg/cloudbroker/vins/mass_delete.go +++ b/pkg/cloudbroker/vins/mass_delete.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassDeleteRequest struct to delete several VINSes diff --git a/pkg/cloudbroker/vins/mass_disable.go b/pkg/cloudbroker/vins/mass_disable.go index 31be4c7..e8f649f 100644 --- a/pkg/cloudbroker/vins/mass_disable.go +++ b/pkg/cloudbroker/vins/mass_disable.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassDisableRequest struct to disable several VINSes diff --git a/pkg/cloudbroker/vins/mass_enable.go b/pkg/cloudbroker/vins/mass_enable.go index 27aaf5a..6608f95 100644 --- a/pkg/cloudbroker/vins/mass_enable.go +++ b/pkg/cloudbroker/vins/mass_enable.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // MassEnableRequest struct to enable several VINSes diff --git a/pkg/cloudbroker/vins/models.go b/pkg/cloudbroker/vins/models.go index 3654170..3e3a2be 100644 --- a/pkg/cloudbroker/vins/models.go +++ b/pkg/cloudbroker/vins/models.go @@ -235,21 +235,15 @@ type VNFDev struct { //List of VINS IDs VINS []uint64 `json:"vins"` + + // VNC password + VNCPassword string `json:"vncPasswd"` } // Main information about reservation type ItemReservation struct { - // Client type - ClientType string `json:"clientType"` - - // Description - Description string `json:"desc"` - - // Domain name - DomainName string `json:"domainname"` - - // Hostname - Hostname string `json:"hostname"` + // Account ID + AccountID uint64 `json:"account_id"` // IP IP string `json:"ip"` diff --git a/pkg/cloudbroker/vins/nat_rule_add.go b/pkg/cloudbroker/vins/nat_rule_add.go index 795ceb4..d1fe24f 100644 --- a/pkg/cloudbroker/vins/nat_rule_add.go +++ b/pkg/cloudbroker/vins/nat_rule_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleAddRequest struct to create NAT rules diff --git a/pkg/cloudbroker/vins/nat_rule_del.go b/pkg/cloudbroker/vins/nat_rule_del.go index 537c13b..642c476 100644 --- a/pkg/cloudbroker/vins/nat_rule_del.go +++ b/pkg/cloudbroker/vins/nat_rule_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleDelRequest struct to delete NAT rule diff --git a/pkg/cloudbroker/vins/nat_rule_list.go b/pkg/cloudbroker/vins/nat_rule_list.go index f10dfdd..d5fef69 100644 --- a/pkg/cloudbroker/vins/nat_rule_list.go +++ b/pkg/cloudbroker/vins/nat_rule_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NATRuleListRequest struct to get list of NAT rules diff --git a/pkg/cloudbroker/vins/net_qos.go b/pkg/cloudbroker/vins/net_qos.go index 9ccb0e1..8314ce9 100644 --- a/pkg/cloudbroker/vins/net_qos.go +++ b/pkg/cloudbroker/vins/net_qos.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // NetQOSRequest struct to update all VINS interfaces QOS diff --git a/pkg/cloudbroker/vins/restore.go b/pkg/cloudbroker/vins/restore.go index bc313af..5769957 100644 --- a/pkg/cloudbroker/vins/restore.go +++ b/pkg/cloudbroker/vins/restore.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // RestoreRequest struct for restore diff --git a/pkg/cloudbroker/vins/serialize.go b/pkg/cloudbroker/vins/serialize.go index 418f301..0817930 100644 --- a/pkg/cloudbroker/vins/serialize.go +++ b/pkg/cloudbroker/vins/serialize.go @@ -3,7 +3,7 @@ package vins import ( "encoding/json" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/serialization" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/serialization" ) // Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions. diff --git a/pkg/cloudbroker/vins/static_route_access_grant.go b/pkg/cloudbroker/vins/static_route_access_grant.go index c5bd5db..4b24968 100644 --- a/pkg/cloudbroker/vins/static_route_access_grant.go +++ b/pkg/cloudbroker/vins/static_route_access_grant.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessGrantRequest struct to grant access to static route to Compute/ViNS diff --git a/pkg/cloudbroker/vins/static_route_access_revoke.go b/pkg/cloudbroker/vins/static_route_access_revoke.go index 46dcf80..d1bdba6 100644 --- a/pkg/cloudbroker/vins/static_route_access_revoke.go +++ b/pkg/cloudbroker/vins/static_route_access_revoke.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAccessRevokeRequest struct to revoke access to static route to Compute/ViNS diff --git a/pkg/cloudbroker/vins/static_route_add.go b/pkg/cloudbroker/vins/static_route_add.go index acd13c9..30dfd64 100644 --- a/pkg/cloudbroker/vins/static_route_add.go +++ b/pkg/cloudbroker/vins/static_route_add.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteAddRequest struct to add static route @@ -25,10 +25,6 @@ type StaticRouteAddRequest struct { // Next hop host, IP address from ViNS ID free IP pool // Required: true Gateway string `url:"gateway" json:"gateway" validate:"required"` - - // List of Compute IDs which have access to this route - // Required: false - ComputeIds []uint64 `url:"computeIds,omitempty" json:"computeIds,omitempty"` } // StaticRouteAdd adds new static route to ViNS diff --git a/pkg/cloudbroker/vins/static_route_del.go b/pkg/cloudbroker/vins/static_route_del.go index 1827dab..18acf5f 100644 --- a/pkg/cloudbroker/vins/static_route_del.go +++ b/pkg/cloudbroker/vins/static_route_del.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteDelRequest struct to remove static route from ViNS diff --git a/pkg/cloudbroker/vins/static_route_list.go b/pkg/cloudbroker/vins/static_route_list.go index 57e71e8..be12298 100644 --- a/pkg/cloudbroker/vins/static_route_list.go +++ b/pkg/cloudbroker/vins/static_route_list.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/http" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // StaticRouteListRequest struct for static route list diff --git a/pkg/cloudbroker/vins/vins.go b/pkg/cloudbroker/vins/vins.go index 53ade85..33902ae 100644 --- a/pkg/cloudbroker/vins/vins.go +++ b/pkg/cloudbroker/vins/vins.go @@ -2,7 +2,7 @@ package vins import ( - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/interfaces" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces" ) // Structure for creating request to VINS diff --git a/pkg/cloudbroker/vins/vnfdev_redeploy.go b/pkg/cloudbroker/vins/vnfdev_redeploy.go index d593f1c..d184410 100644 --- a/pkg/cloudbroker/vins/vnfdev_redeploy.go +++ b/pkg/cloudbroker/vins/vnfdev_redeploy.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevRedeployRequest struct to redeploy VNF devices diff --git a/pkg/cloudbroker/vins/vnfdev_reset.go b/pkg/cloudbroker/vins/vnfdev_reset.go index 0bdae99..cb13cc0 100644 --- a/pkg/cloudbroker/vins/vnfdev_reset.go +++ b/pkg/cloudbroker/vins/vnfdev_reset.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevResetRequest struct to reset VNF device diff --git a/pkg/cloudbroker/vins/vnfdev_restart.go b/pkg/cloudbroker/vins/vnfdev_restart.go index 471398f..a376e9a 100644 --- a/pkg/cloudbroker/vins/vnfdev_restart.go +++ b/pkg/cloudbroker/vins/vnfdev_restart.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevRestartRequest struct to reboot VINSes primary VNF device diff --git a/pkg/cloudbroker/vins/vnfdev_start.go b/pkg/cloudbroker/vins/vnfdev_start.go index ad4db3e..afd453b 100644 --- a/pkg/cloudbroker/vins/vnfdev_start.go +++ b/pkg/cloudbroker/vins/vnfdev_start.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevStartRequest struct to start VNF devices diff --git a/pkg/cloudbroker/vins/vnfdev_stop.go b/pkg/cloudbroker/vins/vnfdev_stop.go index 2affa00..ab7af09 100644 --- a/pkg/cloudbroker/vins/vnfdev_stop.go +++ b/pkg/cloudbroker/vins/vnfdev_stop.go @@ -5,7 +5,7 @@ import ( "net/http" "strconv" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/internal/validators" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators" ) // VNFDevStopRequest struct to stop VNF devices diff --git a/universal-client.go b/universal-client.go index 1c93092..9384e89 100644 --- a/universal-client.go +++ b/universal-client.go @@ -4,9 +4,9 @@ import ( "fmt" "reflect" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/config" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudapi" - "repository.basistech.ru/BASIS/dynamix-golang-sdk/v9/pkg/cloudbroker" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/config" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudapi" + "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/pkg/cloudbroker" ) type ClientInterface interface {