Esempio n. 1
0
        public Proxy_SR ToProxy()
        {
            Proxy_SR result_ = new Proxy_SR();

            result_.uuid                 = (uuid != null) ? uuid : "";
            result_.name_label           = (name_label != null) ? name_label : "";
            result_.name_description     = (name_description != null) ? name_description : "";
            result_.allowed_operations   = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations   = Maps.convert_to_proxy_string_storage_operations(current_operations);
            result_.VDIs                 = (VDIs != null) ? Helper.RefListToStringArray(VDIs) : new string[] {};
            result_.PBDs                 = (PBDs != null) ? Helper.RefListToStringArray(PBDs) : new string[] {};
            result_.virtual_allocation   = virtual_allocation.ToString();
            result_.physical_utilisation = physical_utilisation.ToString();
            result_.physical_size        = physical_size.ToString();
            result_.type                 = (type != null) ? type : "";
            result_.content_type         = (content_type != null) ? content_type : "";
            result_.shared               = shared;
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            result_.tags                 = tags;
            result_.sm_config            = Maps.convert_to_proxy_string_string(sm_config);
            result_.blobs                = Maps.convert_to_proxy_string_XenRefBlob(blobs);
            result_.local_cache_enabled  = local_cache_enabled;
            result_.introduced_by        = (introduced_by != null) ? introduced_by : "";
            return(result_);
        }
Esempio n. 2
0
        public Proxy_VIF ToProxy()
        {
            Proxy_VIF result_ = new Proxy_VIF();

            result_.uuid = (uuid != null) ? uuid : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_vif_operations(current_operations);
            result_.device             = (device != null) ? device : "";
            result_.network            = (network != null) ? network : "";
            result_.VM                       = (VM != null) ? VM : "";
            result_.MAC                      = (MAC != null) ? MAC : "";
            result_.MTU                      = MTU.ToString();
            result_.other_config             = Maps.convert_to_proxy_string_string(other_config);
            result_.currently_attached       = currently_attached;
            result_.status_code              = status_code.ToString();
            result_.status_detail            = (status_detail != null) ? status_detail : "";
            result_.runtime_properties       = Maps.convert_to_proxy_string_string(runtime_properties);
            result_.qos_algorithm_type       = (qos_algorithm_type != null) ? qos_algorithm_type : "";
            result_.qos_algorithm_params     = Maps.convert_to_proxy_string_string(qos_algorithm_params);
            result_.qos_supported_algorithms = qos_supported_algorithms;
            result_.metrics                  = (metrics != null) ? metrics : "";
            result_.MAC_autogenerated        = MAC_autogenerated;
            result_.locking_mode             = vif_locking_mode_helper.ToString(locking_mode);
            result_.ipv4_allowed             = ipv4_allowed;
            result_.ipv6_allowed             = ipv6_allowed;
            return(result_);
        }
Esempio n. 3
0
        public Proxy_VBD ToProxy()
        {
            Proxy_VBD result_ = new Proxy_VBD();

            result_.uuid = (uuid != null) ? uuid : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_vbd_operations(current_operations);
            result_.VM                       = (VM != null) ? VM : "";
            result_.VDI                      = (VDI != null) ? VDI : "";
            result_.device                   = (device != null) ? device : "";
            result_.userdevice               = (userdevice != null) ? userdevice : "";
            result_.bootable                 = bootable;
            result_.mode                     = vbd_mode_helper.ToString(mode);
            result_.type                     = vbd_type_helper.ToString(type);
            result_.unpluggable              = unpluggable;
            result_.storage_lock             = storage_lock;
            result_.empty                    = empty;
            result_.other_config             = Maps.convert_to_proxy_string_string(other_config);
            result_.currently_attached       = currently_attached;
            result_.status_code              = status_code.ToString();
            result_.status_detail            = (status_detail != null) ? status_detail : "";
            result_.runtime_properties       = Maps.convert_to_proxy_string_string(runtime_properties);
            result_.qos_algorithm_type       = (qos_algorithm_type != null) ? qos_algorithm_type : "";
            result_.qos_algorithm_params     = Maps.convert_to_proxy_string_string(qos_algorithm_params);
            result_.qos_supported_algorithms = qos_supported_algorithms;
            result_.metrics                  = (metrics != null) ? metrics : "";
            return(result_);
        }
Esempio n. 4
0
        public Proxy_VM_appliance ToProxy()
        {
            Proxy_VM_appliance result_ = new Proxy_VM_appliance();

            result_.uuid               = uuid ?? "";
            result_.name_label         = name_label ?? "";
            result_.name_description   = name_description ?? "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_vm_appliance_operation(current_operations);
            result_.VMs = (VMs != null) ? Helper.RefListToStringArray(VMs) : new string[] {};
            return(result_);
        }
Esempio n. 5
0
        public Proxy_VUSB ToProxy()
        {
            Proxy_VUSB result_ = new Proxy_VUSB();

            result_.uuid = uuid ?? "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_vusb_operations(current_operations);
            result_.VM                 = VM ?? "";
            result_.USB_group          = USB_group ?? "";
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            result_.currently_attached = currently_attached;
            return(result_);
        }
Esempio n. 6
0
        public Proxy_Cluster_host ToProxy()
        {
            Proxy_Cluster_host result_ = new Proxy_Cluster_host();

            result_.uuid               = uuid ?? "";
            result_.cluster            = cluster ?? "";
            result_.host               = host ?? "";
            result_.enabled            = enabled;
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_cluster_host_operation(current_operations);
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }
Esempio n. 7
0
        public Proxy_Pool_update ToProxy()
        {
            Proxy_Pool_update result_ = new Proxy_Pool_update();

            result_.uuid              = (uuid != null) ? uuid : "";
            result_.name_label        = (name_label != null) ? name_label : "";
            result_.name_description  = (name_description != null) ? name_description : "";
            result_.installation_size = installation_size.ToString();
            result_.key = (key != null) ? key : "";
            result_.after_apply_guidance = (after_apply_guidance != null) ? Helper.ObjectListToStringArray(after_apply_guidance) : new string[] {};
            result_.vdi   = (vdi != null) ? vdi : "";
            result_.hosts = (hosts != null) ? Helper.RefListToStringArray(hosts) : new string[] {};
            return(result_);
        }
Esempio n. 8
0
        public Proxy_Pool_patch ToProxy()
        {
            Proxy_Pool_patch result_ = new Proxy_Pool_patch();

            result_.uuid                 = (uuid != null) ? uuid : "";
            result_.name_label           = (name_label != null) ? name_label : "";
            result_.name_description     = (name_description != null) ? name_description : "";
            result_.version              = (version != null) ? version : "";
            result_.size                 = size.ToString();
            result_.pool_applied         = pool_applied;
            result_.host_patches         = (host_patches != null) ? Helper.RefListToStringArray(host_patches) : new string[] {};
            result_.after_apply_guidance = (after_apply_guidance != null) ? Helper.ObjectListToStringArray(after_apply_guidance) : new string[] {};
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }
Esempio n. 9
0
        public Proxy_Pool_update ToProxy()
        {
            Proxy_Pool_update result_ = new Proxy_Pool_update();

            result_.uuid              = uuid ?? "";
            result_.name_label        = name_label ?? "";
            result_.name_description  = name_description ?? "";
            result_.version           = version ?? "";
            result_.installation_size = installation_size.ToString();
            result_.key = key ?? "";
            result_.after_apply_guidance = (after_apply_guidance != null) ? Helper.ObjectListToStringArray(after_apply_guidance) : new string[] {};
            result_.vdi                 = vdi ?? "";
            result_.hosts               = (hosts != null) ? Helper.RefListToStringArray(hosts) : new string[] {};
            result_.other_config        = Maps.convert_to_proxy_string_string(other_config);
            result_.enforce_homogeneity = enforce_homogeneity;
            return(result_);
        }
Esempio n. 10
0
        public Proxy_Cluster ToProxy()
        {
            Proxy_Cluster result_ = new Proxy_Cluster();

            result_.uuid                      = uuid ?? "";
            result_.cluster_hosts             = (cluster_hosts != null) ? Helper.RefListToStringArray(cluster_hosts) : new string[] {};
            result_.network                   = network ?? "";
            result_.cluster_token             = cluster_token ?? "";
            result_.cluster_stack             = cluster_stack ?? "";
            result_.allowed_operations        = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations        = Maps.convert_to_proxy_string_cluster_operation(current_operations);
            result_.pool_auto_join            = pool_auto_join;
            result_.token_timeout             = token_timeout.ToString();
            result_.token_timeout_coefficient = token_timeout_coefficient.ToString();
            result_.cluster_config            = Maps.convert_to_proxy_string_string(cluster_config);
            result_.other_config              = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }
Esempio n. 11
0
        public Proxy_Network ToProxy()
        {
            Proxy_Network result_ = new Proxy_Network();

            result_.uuid               = (uuid != null) ? uuid : "";
            result_.name_label         = (name_label != null) ? name_label : "";
            result_.name_description   = (name_description != null) ? name_description : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_network_operations(current_operations);
            result_.VIFs               = (VIFs != null) ? Helper.RefListToStringArray(VIFs) : new string[] {};
            result_.PIFs               = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {};
            result_.MTU                  = MTU.ToString();
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            result_.bridge               = (bridge != null) ? bridge : "";
            result_.blobs                = Maps.convert_to_proxy_string_XenRefBlob(blobs);
            result_.tags                 = tags;
            result_.default_locking_mode = network_default_locking_mode_helper.ToString(default_locking_mode);
            return(result_);
        }
Esempio n. 12
0
        public Proxy_Network ToProxy()
        {
            Proxy_Network result_ = new Proxy_Network();

            result_.uuid               = uuid ?? "";
            result_.name_label         = name_label ?? "";
            result_.name_description   = name_description ?? "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_network_operations(current_operations);
            result_.VIFs               = (VIFs != null) ? Helper.RefListToStringArray(VIFs) : new string[] {};
            result_.PIFs               = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {};
            result_.MTU                  = MTU.ToString();
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            result_.bridge               = bridge ?? "";
            result_.managed              = managed;
            result_.blobs                = Maps.convert_to_proxy_string_XenRefBlob(blobs);
            result_.tags                 = tags;
            result_.default_locking_mode = network_default_locking_mode_helper.ToString(default_locking_mode);
            result_.assigned_ips         = Maps.convert_to_proxy_XenRefVIF_string(assigned_ips);
            return(result_);
        }
Esempio n. 13
0
        public Proxy_Task ToProxy()
        {
            Proxy_Task result_ = new Proxy_Task();

            result_.uuid               = (uuid != null) ? uuid : "";
            result_.name_label         = (name_label != null) ? name_label : "";
            result_.name_description   = (name_description != null) ? name_description : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_task_allowed_operations(current_operations);
            result_.created            = created;
            result_.finished           = finished;
            result_.status             = task_status_type_helper.ToString(status);
            result_.resident_on        = (resident_on != null) ? resident_on : "";
            result_.progress           = progress;
            result_.type               = (type != null) ? type : "";
            result_.result             = (result != null) ? result : "";
            result_.error_info         = error_info;
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            result_.subtask_of         = (subtask_of != null) ? subtask_of : "";
            result_.subtasks           = (subtasks != null) ? Helper.RefListToStringArray(subtasks) : new string[] {};
            return(result_);
        }
Esempio n. 14
0
        public Proxy_Task ToProxy()
        {
            Proxy_Task result_ = new Proxy_Task();

            result_.uuid               = uuid ?? "";
            result_.name_label         = name_label ?? "";
            result_.name_description   = name_description ?? "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_task_allowed_operations(current_operations);
            result_.created            = created;
            result_.finished           = finished;
            result_.status             = task_status_type_helper.ToString(status);
            result_.resident_on        = resident_on ?? "";
            result_.progress           = progress;
            result_.type               = type ?? "";
            result_.result             = result ?? "";
            result_.error_info         = error_info;
            result_.other_config       = Maps.convert_to_proxy_string_string(other_config);
            result_.subtask_of         = subtask_of ?? "";
            result_.subtasks           = (subtasks != null) ? Helper.RefListToStringArray(subtasks) : new string[] {};
            result_.backtrace          = backtrace ?? "";
            return(result_);
        }
Esempio n. 15
0
        public Proxy_Pool_patch ToProxy()
        {
            Proxy_Pool_patch result_ = new Proxy_Pool_patch();

            result_.uuid                 = uuid ?? "";
            result_.name_label           = name_label ?? "";
            result_.name_description     = name_description ?? "";
            result_.version              = version ?? "";
            result_.size                 = size.ToString();
            result_.pool_applied         = pool_applied;
            result_.host_patches         = host_patches == null ? new string[] {} : Helper.RefListToStringArray(host_patches);
            result_.after_apply_guidance = after_apply_guidance == null ? new string[] {} : Helper.ObjectListToStringArray(after_apply_guidance);
            result_.pool_update          = pool_update ?? "";
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }