public Proxy_PIF ToProxy() { Proxy_PIF result_ = new Proxy_PIF(); result_.uuid = (uuid != null) ? uuid : ""; result_.device = (device != null) ? device : ""; result_.network = (network != null) ? network : ""; result_.host = (host != null) ? host : ""; result_.MAC = (MAC != null) ? MAC : ""; result_.MTU = MTU.ToString(); result_.VLAN = VLAN.ToString(); result_.metrics = (metrics != null) ? metrics : ""; result_.physical = physical; result_.currently_attached = currently_attached; result_.ip_configuration_mode = ip_configuration_mode_helper.ToString(ip_configuration_mode); result_.IP = (IP != null) ? IP : ""; result_.netmask = (netmask != null) ? netmask : ""; result_.gateway = (gateway != null) ? gateway : ""; result_.DNS = (DNS != null) ? DNS : ""; result_.bond_slave_of = (bond_slave_of != null) ? bond_slave_of : ""; result_.bond_master_of = (bond_master_of != null) ? Helper.RefListToStringArray(bond_master_of) : new string[] {}; result_.VLAN_master_of = (VLAN_master_of != null) ? VLAN_master_of : ""; result_.VLAN_slave_of = (VLAN_slave_of != null) ? Helper.RefListToStringArray(VLAN_slave_of) : new string[] {}; result_.management = management; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.disallow_unplug = disallow_unplug; result_.tunnel_access_PIF_of = (tunnel_access_PIF_of != null) ? Helper.RefListToStringArray(tunnel_access_PIF_of) : new string[] {}; result_.tunnel_transport_PIF_of = (tunnel_transport_PIF_of != null) ? Helper.RefListToStringArray(tunnel_transport_PIF_of) : new string[] {}; result_.ipv6_configuration_mode = ipv6_configuration_mode_helper.ToString(ipv6_configuration_mode); result_.IPv6 = IPv6; result_.ipv6_gateway = (ipv6_gateway != null) ? ipv6_gateway : ""; result_.primary_address_type = primary_address_type_helper.ToString(primary_address_type); return(result_); }
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_); }
public Proxy_VMPP ToProxy() { Proxy_VMPP result_ = new Proxy_VMPP(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.is_policy_enabled = is_policy_enabled; result_.backup_type = vmpp_backup_type_helper.ToString(backup_type); result_.backup_retention_value = backup_retention_value.ToString(); result_.backup_frequency = vmpp_backup_frequency_helper.ToString(backup_frequency); result_.backup_schedule = Maps.convert_to_proxy_string_string(backup_schedule); result_.is_backup_running = is_backup_running; result_.backup_last_run_time = backup_last_run_time; result_.archive_target_type = vmpp_archive_target_type_helper.ToString(archive_target_type); result_.archive_target_config = Maps.convert_to_proxy_string_string(archive_target_config); result_.archive_frequency = vmpp_archive_frequency_helper.ToString(archive_frequency); result_.archive_schedule = Maps.convert_to_proxy_string_string(archive_schedule); result_.is_archive_running = is_archive_running; result_.archive_last_run_time = archive_last_run_time; result_.VMs = (VMs != null) ? Helper.RefListToStringArray(VMs) : new string[] {}; result_.is_alarm_enabled = is_alarm_enabled; result_.alarm_config = Maps.convert_to_proxy_string_string(alarm_config); result_.recent_alerts = recent_alerts; return(result_); }
public Proxy_DR_task ToProxy() { Proxy_DR_task result_ = new Proxy_DR_task(); result_.uuid = (uuid != null) ? uuid : ""; result_.introduced_SRs = (introduced_SRs != null) ? Helper.RefListToStringArray(introduced_SRs) : new string[] {}; return(result_); }
public Proxy_DR_task ToProxy() { Proxy_DR_task result_ = new Proxy_DR_task(); result_.uuid = uuid ?? ""; result_.introduced_SRs = introduced_SRs == null ? new string[] {} : Helper.RefListToStringArray(introduced_SRs); return(result_); }
public Proxy_Subject ToProxy() { Proxy_Subject result_ = new Proxy_Subject(); result_.uuid = (uuid != null) ? uuid : ""; result_.subject_identifier = (subject_identifier != null) ? subject_identifier : ""; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.roles = (roles != null) ? Helper.RefListToStringArray(roles) : new string[] {}; return(result_); }
public Proxy_Role ToProxy() { Proxy_Role result_ = new Proxy_Role(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.subroles = (subroles != null) ? Helper.RefListToStringArray(subroles) : new string[] {}; return(result_); }
public Proxy_Subject ToProxy() { Proxy_Subject result_ = new Proxy_Subject(); result_.uuid = uuid ?? ""; result_.subject_identifier = subject_identifier ?? ""; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.roles = roles == null ? new string[] {} : Helper.RefListToStringArray(roles); return(result_); }
public Proxy_Role ToProxy() { Proxy_Role result_ = new Proxy_Role(); result_.uuid = uuid ?? ""; result_.name_label = name_label ?? ""; result_.name_description = name_description ?? ""; result_.subroles = subroles == null ? new string[] {} : Helper.RefListToStringArray(subroles); return(result_); }
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 ? new string[] {} : Helper.ObjectListToStringArray(allowed_operations); result_.current_operations = Maps.convert_to_proxy_string_vm_appliance_operation(current_operations); result_.VMs = VMs == null ? new string[] {} : Helper.RefListToStringArray(VMs); return result_; }
public Proxy_VM_appliance ToProxy() { Proxy_VM_appliance result_ = new Proxy_VM_appliance(); 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_vm_appliance_operation(current_operations); result_.VMs = (VMs != null) ? Helper.RefListToStringArray(VMs) : new string[] {}; return(result_); }
public Proxy_USB_group ToProxy() { Proxy_USB_group result_ = new Proxy_USB_group(); result_.uuid = uuid ?? ""; result_.name_label = name_label ?? ""; result_.name_description = name_description ?? ""; result_.PUSBs = (PUSBs != null) ? Helper.RefListToStringArray(PUSBs) : new string[] {}; result_.VUSBs = (VUSBs != null) ? Helper.RefListToStringArray(VUSBs) : new string[] {}; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
public Proxy_GPU_group ToProxy() { Proxy_GPU_group result_ = new Proxy_GPU_group(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.PGPUs = (PGPUs != null) ? Helper.RefListToStringArray(PGPUs) : new string[] {}; result_.VGPUs = (VGPUs != null) ? Helper.RefListToStringArray(VGPUs) : new string[] {}; result_.GPU_types = GPU_types; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
public Proxy_PVS_site ToProxy() { Proxy_PVS_site result_ = new Proxy_PVS_site(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.PVS_uuid = (PVS_uuid != null) ? PVS_uuid : ""; result_.cache_storage = (cache_storage != null) ? Helper.RefListToStringArray(cache_storage) : new string[] {}; result_.servers = (servers != null) ? Helper.RefListToStringArray(servers) : new string[] {}; result_.proxies = (proxies != null) ? Helper.RefListToStringArray(proxies) : new string[] {}; return(result_); }
public Proxy_PVS_site ToProxy() { Proxy_PVS_site result_ = new Proxy_PVS_site(); result_.uuid = uuid ?? ""; result_.name_label = name_label ?? ""; result_.name_description = name_description ?? ""; result_.PVS_uuid = PVS_uuid ?? ""; result_.cache_storage = cache_storage == null ? new string[] {} : Helper.RefListToStringArray(cache_storage); result_.servers = servers == null ? new string[] {} : Helper.RefListToStringArray(servers); result_.proxies = proxies == null ? new string[] {} : Helper.RefListToStringArray(proxies); return(result_); }
public Proxy_Bond ToProxy() { Proxy_Bond result_ = new Proxy_Bond(); result_.uuid = uuid ?? ""; result_.master = master ?? ""; result_.slaves = slaves == null ? new string[] {} : Helper.RefListToStringArray(slaves); result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.primary_slave = primary_slave ?? ""; result_.mode = bond_mode_helper.ToString(mode); result_.properties = Maps.convert_to_proxy_string_string(properties); result_.links_up = links_up.ToString(); return(result_); }
public Proxy_PCI ToProxy() { Proxy_PCI result_ = new Proxy_PCI(); result_.uuid = (uuid != null) ? uuid : ""; result_.class_name = (class_name != null) ? class_name : ""; result_.vendor_name = (vendor_name != null) ? vendor_name : ""; result_.device_name = (device_name != null) ? device_name : ""; result_.host = (host != null) ? host : ""; result_.pci_id = (pci_id != null) ? pci_id : ""; result_.dependencies = (dependencies != null) ? Helper.RefListToStringArray(dependencies) : new string[] {}; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
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_); }
public Proxy_Bond ToProxy() { Proxy_Bond result_ = new Proxy_Bond(); result_.uuid = (uuid != null) ? uuid : ""; result_.master = (master != null) ? master : ""; result_.slaves = (slaves != null) ? Helper.RefListToStringArray(slaves) : new string[] {}; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.primary_slave = (primary_slave != null) ? primary_slave : ""; result_.mode = bond_mode_helper.ToString(mode); result_.properties = Maps.convert_to_proxy_string_string(properties); result_.links_up = links_up.ToString(); return(result_); }
public Proxy_PGPU ToProxy() { Proxy_PGPU result_ = new Proxy_PGPU(); result_.uuid = (uuid != null) ? uuid : ""; result_.PCI = (PCI != null) ? PCI : ""; result_.GPU_group = (GPU_group != null) ? GPU_group : ""; result_.host = (host != null) ? host : ""; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.supported_VGPU_types = (supported_VGPU_types != null) ? Helper.RefListToStringArray(supported_VGPU_types) : new string[] {}; result_.enabled_VGPU_types = (enabled_VGPU_types != null) ? Helper.RefListToStringArray(enabled_VGPU_types) : new string[] {}; result_.resident_VGPUs = (resident_VGPUs != null) ? Helper.RefListToStringArray(resident_VGPUs) : new string[] {}; result_.supported_VGPU_max_capacities = Maps.convert_to_proxy_XenRefVGPU_type_long(supported_VGPU_max_capacities); return(result_); }
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_); }
public Proxy_GPU_group ToProxy() { Proxy_GPU_group result_ = new Proxy_GPU_group(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.PGPUs = (PGPUs != null) ? Helper.RefListToStringArray(PGPUs) : new string[] {}; result_.VGPUs = (VGPUs != null) ? Helper.RefListToStringArray(VGPUs) : new string[] {}; result_.GPU_types = GPU_types; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.allocation_algorithm = allocation_algorithm_helper.ToString(allocation_algorithm); result_.supported_VGPU_types = (supported_VGPU_types != null) ? Helper.RefListToStringArray(supported_VGPU_types) : new string[] {}; result_.enabled_VGPU_types = (enabled_VGPU_types != null) ? Helper.RefListToStringArray(enabled_VGPU_types) : new string[] {}; return(result_); }
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_); }
public Proxy_VMSS ToProxy() { Proxy_VMSS result_ = new Proxy_VMSS(); result_.uuid = uuid ?? ""; result_.name_label = name_label ?? ""; result_.name_description = name_description ?? ""; result_.enabled = enabled; result_.type = vmss_type_helper.ToString(type); result_.retained_snapshots = retained_snapshots.ToString(); result_.frequency = vmss_frequency_helper.ToString(frequency); result_.schedule = Maps.convert_to_proxy_string_string(schedule); result_.last_run_time = last_run_time; result_.VMs = (VMs != null) ? Helper.RefListToStringArray(VMs) : new string[] {}; return(result_); }
public Proxy_GPU_group ToProxy() { Proxy_GPU_group result_ = new Proxy_GPU_group(); result_.uuid = uuid ?? ""; result_.name_label = name_label ?? ""; result_.name_description = name_description ?? ""; result_.PGPUs = PGPUs == null ? new string[] {} : Helper.RefListToStringArray(PGPUs); result_.VGPUs = VGPUs == null ? new string[] {} : Helper.RefListToStringArray(VGPUs); result_.GPU_types = GPU_types; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.allocation_algorithm = allocation_algorithm_helper.ToString(allocation_algorithm); result_.supported_VGPU_types = supported_VGPU_types == null ? new string[] {} : Helper.RefListToStringArray(supported_VGPU_types); result_.enabled_VGPU_types = enabled_VGPU_types == null ? new string[] {} : Helper.RefListToStringArray(enabled_VGPU_types); return(result_); }
public Proxy_PCI ToProxy() { Proxy_PCI result_ = new Proxy_PCI(); result_.uuid = uuid ?? ""; result_.class_name = class_name ?? ""; result_.vendor_name = vendor_name ?? ""; result_.device_name = device_name ?? ""; result_.host = host ?? ""; result_.pci_id = pci_id ?? ""; result_.dependencies = (dependencies != null) ? Helper.RefListToStringArray(dependencies) : new string[] {}; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.subsystem_vendor_name = subsystem_vendor_name ?? ""; result_.subsystem_device_name = subsystem_device_name ?? ""; return(result_); }
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_); }
public Proxy_PGPU ToProxy() { Proxy_PGPU result_ = new Proxy_PGPU(); result_.uuid = uuid ?? ""; result_.PCI = PCI ?? ""; result_.GPU_group = GPU_group ?? ""; result_.host = host ?? ""; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.supported_VGPU_types = (supported_VGPU_types != null) ? Helper.RefListToStringArray(supported_VGPU_types) : new string[] {}; result_.enabled_VGPU_types = (enabled_VGPU_types != null) ? Helper.RefListToStringArray(enabled_VGPU_types) : new string[] {}; result_.resident_VGPUs = (resident_VGPUs != null) ? Helper.RefListToStringArray(resident_VGPUs) : new string[] {}; result_.supported_VGPU_max_capacities = Maps.convert_to_proxy_XenRefVGPU_type_long(supported_VGPU_max_capacities); result_.dom0_access = pgpu_dom0_access_helper.ToString(dom0_access); result_.is_system_display_device = is_system_display_device; return(result_); }
public Proxy_VGPU_type ToProxy() { Proxy_VGPU_type result_ = new Proxy_VGPU_type(); result_.uuid = (uuid != null) ? uuid : ""; result_.vendor_name = (vendor_name != null) ? vendor_name : ""; result_.model_name = (model_name != null) ? model_name : ""; result_.framebuffer_size = framebuffer_size.ToString(); result_.max_heads = max_heads.ToString(); result_.max_resolution_x = max_resolution_x.ToString(); result_.max_resolution_y = max_resolution_y.ToString(); result_.supported_on_PGPUs = (supported_on_PGPUs != null) ? Helper.RefListToStringArray(supported_on_PGPUs) : new string[] {}; result_.enabled_on_PGPUs = (enabled_on_PGPUs != null) ? Helper.RefListToStringArray(enabled_on_PGPUs) : new string[] {}; result_.VGPUs = (VGPUs != null) ? Helper.RefListToStringArray(VGPUs) : new string[] {}; result_.supported_on_GPU_groups = (supported_on_GPU_groups != null) ? Helper.RefListToStringArray(supported_on_GPU_groups) : new string[] {}; result_.enabled_on_GPU_groups = (enabled_on_GPU_groups != null) ? Helper.RefListToStringArray(enabled_on_GPU_groups) : new string[] {}; return(result_); }
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_); }