content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18408
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace PasswordRecycler.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PasswordRecycler.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
| 43.671875 | 182 | 0.614669 | [
"MIT"
] | DannyMeister/ActiveDirectoryPasswordRecycler | Password Recycler/Properties/Resources.Designer.cs | 2,797 | C# |
using UnityEngine;
using UnityEngine.Animations;
//Esse script é chamado dentro das animações quando precisam ativar ou desativar o parent constraint do objeto
public class ParentConstraintController : MonoBehaviour {
public ParentConstraint[] parentConstraint;
private int index;
public void SetActive()
{
index = 0;
foreach(ParentConstraint constrain in parentConstraint)
{
parentConstraint[index].enabled = true;
index++;
}
}
public void SetInactive()
{
index = 0;
foreach (ParentConstraint constrain in parentConstraint)
{
parentConstraint[index].enabled = false;
index++;
}
}
}
| 24.4 | 110 | 0.63388 | [
"MIT"
] | univesp/welcome-to-differentown | Welcome To Differentown/Assets/_Scripts/Shared/ParentConstraintController.cs | 737 | C# |
using System.IO;
using Reinforced.Tecture.Commands;
namespace Reinforced.Tecture.Tracing.Commands.Cycles
{
/// <summary>
/// Synthetic command that means end of logical cycle
/// </summary>
[CommandCode(" . ")]
public class EndCycle : CommandBase, ITracingOnly
{
internal EndCycle() { }
/// <summary>
/// Total number of commands that was produced within cycle
/// </summary>
public int TotalCommands { get; internal set; }
/// <summary>
/// Total number of iterations happened
/// </summary>
public int IterationsCount { get; internal set; }
/// <inheritdoc />
public override void Describe(TextWriter tw)
{
if (string.IsNullOrEmpty(Annotation))
{
tw.Write("Cycle ends in ");
tw.Write(IterationsCount);
tw.Write("iterations");
}
else
{
tw.Write(Annotation);
tw.Write(" ends in ");
tw.Write(IterationsCount);
tw.Write(" iterations and ");
tw.Write(TotalCommands);
tw.Write(" commands");
}
}
/// <summary>
/// Clones command for tracing purposes
/// </summary>
/// <returns>Command clone</returns>
protected override CommandBase DeepCloneForTracing()
{
return new EndCycle() { TotalCommands = TotalCommands, IterationsCount = IterationsCount };
}
}
}
| 30.111111 | 104 | 0.5123 | [
"MIT"
] | AxelUser/Reinforced.Tecture | Reinforced.Tecture/Tracing/Commands/Cycles/EndCycle.cs | 1,628 | C# |
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("UnitTest.Rollbar")]
namespace Rollbar
{
using Rollbar.Diagnostics;
using Rollbar.DTOs;
using Rollbar.Telemetry;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Implements disposable implementation of IRollbar.
///
/// All the logging methods implemented in async "fire-and-forget" fashion.
/// Hence, the payload is not yet delivered to the Rollbar API service when
/// the methods return.
///
/// </summary>
/// <seealso cref="Rollbar.IRollbar" />
/// <seealso cref="System.IDisposable" />
internal class RollbarLogger
: IRollbar
, IDisposable
{
private static readonly Task completedTask = // for more recent .NET implementations it would be: Task.CompletedTask;
Task.Factory.StartNew(state => { }, "EnqueueAsyncShortcut");
private readonly object _syncRoot = new object();
private readonly IRollbarConfig _config;
private readonly PayloadQueue _payloadQueue;
private readonly ConcurrentQueue<Action> _pendingTasks = new ConcurrentQueue<Action>();
private readonly ManualResetEvent _pendingTasksWaitEvent = new ManualResetEvent(false);
private readonly int _pendingTasksWorkersCount = 2;
/// <summary>
/// Occurs when a Rollbar internal event happens.
/// </summary>
public event EventHandler<RollbarEventArgs> InternalEvent;
/// <summary>
/// Initializes a new instance of the <see cref="RollbarLogger"/> class.
/// </summary>
/// <param name="isSingleton">if set to <c>true</c> [is singleton].</param>
internal RollbarLogger(bool isSingleton)
: this(isSingleton, null)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="RollbarLogger"/> class.
/// </summary>
/// <param name="isSingleton">if set to <c>true</c> [is singleton].</param>
/// <param name="rollbarConfig">The rollbar configuration.</param>
internal RollbarLogger(bool isSingleton, IRollbarConfig rollbarConfig)
{
if (!TelemetryCollector.Instance.IsAutocollecting)
{
TelemetryCollector.Instance.StartAutocollection();
}
this.IsSingleton = isSingleton;
if (rollbarConfig != null)
{
this._config = rollbarConfig;
}
else
{
this._config = new RollbarConfig(this);
}
var rollbarClient = new RollbarClient(
this._config
, RollbarQueueController.Instance.ProvideHttpClient(this._config.ProxyAddress, this._config.ProxyUsername, this._config.ProxyPassword)
);
this._payloadQueue = new PayloadQueue(this, rollbarClient);
RollbarQueueController.Instance.Register(this._payloadQueue);
for (int i = 0; i < _pendingTasksWorkersCount; i++)
new Task(ProcessPendingTasks).Start();
}
/// <summary>
/// Gets a value indicating whether this instance is singleton.
/// </summary>
/// <value><c>true</c> if this instance is singleton; otherwise, <c>false</c>.</value>
internal bool IsSingleton { get; private set; }
/// <summary>
/// Gets the queue.
/// </summary>
/// <value>The queue.</value>
internal PayloadQueue Queue
{
get { return this._payloadQueue; }
}
#region IRollbar
/// <summary>
/// Gets the logger.
/// </summary>
/// <value>The logger.</value>
public IAsyncLogger Logger => this;
/// <summary>
/// Gets the configuration.
/// </summary>
/// <value>The configuration.</value>
public IRollbarConfig Config
{
get { return this._config; }
}
/// <summary>
/// Configures the using specified settings.
/// </summary>
/// <param name="settings">The settings.</param>
/// <returns>IRollbar.</returns>
public IRollbar Configure(IRollbarConfig settings)
{
this._config.Reconfigure(settings);
return this;
}
/// <summary>
/// Configures using the specified access token.
/// </summary>
/// <param name="accessToken">The access token.</param>
/// <returns>IRollbar.</returns>
public IRollbar Configure(string accessToken)
{
return this.Configure(new RollbarConfig(accessToken));
}
#endregion IRollbar
#region IAsyncLogger
/// <summary>
/// Returns blocking/synchronous implementation of this ILogger.
/// </summary>
/// <param name="timeout">The timeout.</param>
/// <returns>ILogger.</returns>
public ILogger AsBlockingLogger(TimeSpan timeout)
{
return new RollbarLoggerBlockingWrapper(this, timeout);
}
/// <summary>
/// Logs using the specified level.
/// </summary>
/// <param name="level">The level.</param>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Log(ErrorLevel level, object obj)
{
return this.Log(level, obj, null);
}
/// <summary>
/// Logs the specified object as using critical level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Critical(object obj)
{
return this.Critical(obj, null);
}
/// <summary>
/// Logs the specified object as using error level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Error(object obj)
{
return this.Error(obj, null);
}
/// <summary>
/// Logs the specified object as using warning level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Warning(object obj)
{
return this.Warning(obj, null);
}
/// <summary>
/// Logs the specified object as using informational level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Info(object obj)
{
return this.Info(obj, null);
}
/// <summary>
/// Logs the specified object as using debug level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
public Task Debug(object obj)
{
return this.Debug(obj, null);
}
/// <summary>
/// Logs the specified Rollbar Data DTO.
/// </summary>
/// <param name="rollbarData">The Rollbar Data DTO.</param>
/// <returns>Task.</returns>
public Task Log(DTOs.Data rollbarData)
{
return this.EnqueueAsync(rollbarData, rollbarData.Level.HasValue ? rollbarData.Level.Value : ErrorLevel.Debug, null);
}
/// <summary>
/// Logs using the specified level.
/// </summary>
/// <param name="level">The level.</param>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Log(ErrorLevel level, object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, level, custom);
}
/// <summary>
/// Logs the specified object as using critical level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Critical(object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, ErrorLevel.Critical, custom);
}
/// <summary>
/// Logs the specified object as using error level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Error(object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, ErrorLevel.Error, custom);
}
/// <summary>
/// Logs the specified object as using warning level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Warning(object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, ErrorLevel.Warning, custom);
}
/// <summary>
/// Logs the specified object as using informational level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Info(object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, ErrorLevel.Info, custom);
}
/// <summary>
/// Logs the specified object as using debug level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
public Task Debug(object obj, IDictionary<string, object> custom)
{
return this.EnqueueAsync(obj, ErrorLevel.Debug, custom);
}
#endregion IAsyncLogger
#region IRollbar explicitly
/// <summary>
/// Gets the configuration.
/// </summary>
/// <value>The configuration.</value>
IRollbarConfig IRollbar.Config { get { return this.Config; } }
/// <summary>
/// Gets the logger.
/// </summary>
/// <value>The logger.</value>
IAsyncLogger IRollbar.Logger { get { return this; } }
/// <summary>
/// Configures the using specified settings.
/// </summary>
/// <param name="settings">The settings.</param>
/// <returns>IRollbar.</returns>
IRollbar IRollbar.Configure(IRollbarConfig settings)
{
return this.Configure(settings);
}
/// <summary>
/// Configures using the specified access token.
/// </summary>
/// <param name="accessToken">The access token.</param>
/// <returns>IRollbar.</returns>
IRollbar IRollbar.Configure(string accessToken)
{
return this.Configure(accessToken);
}
/// <summary>
/// Occurs when a Rollbar internal event happens.
/// </summary>
event EventHandler<RollbarEventArgs> IRollbar.InternalEvent
{
add
{
this.InternalEvent += value;
}
remove
{
this.InternalEvent -= value;
}
}
#endregion IRollbar explicitly
#region IAsyncLogger explicitly
/// <summary>
/// Returns as the blocking logger.
/// </summary>
/// <param name="timeout">The timeout.</param>
/// <returns>ILogger.</returns>
ILogger IAsyncLogger.AsBlockingLogger(TimeSpan timeout)
{
return this.AsBlockingLogger(timeout);
}
/// <summary>
/// Logs the specified Rollbar Data DTO.
/// </summary>
/// <param name="rollbarData">The Rollbar Data DTO.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Log(Data rollbarData)
{
return this.Log(rollbarData);
}
/// <summary>
/// Logs using the specified level.
/// </summary>
/// <param name="level">The level.</param>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Log(ErrorLevel level, object obj)
{
return this.Log(level, obj);
}
/// <summary>
/// Logs the specified object as using critical level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Critical(object obj)
{
return this.Critical(obj);
}
/// <summary>
/// Logs the specified object as using error level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Error(object obj)
{
return this.Error(obj);
}
/// <summary>
/// Logs the specified object as using warning level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Warning(object obj)
{
return this.Warning(obj);
}
/// <summary>
/// Logs the specified object as using informational level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Info(object obj)
{
return this.Info(obj);
}
/// <summary>
/// Logs the specified object as using debug level.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Debug(object obj)
{
return this.Debug(obj);
}
/// <summary>
/// Logs using the specified level.
/// </summary>
/// <param name="level">The level.</param>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Log(ErrorLevel level, object obj, IDictionary<string, object> custom)
{
return this.Log(level, obj, custom);
}
/// <summary>
/// Logs the specified object as using critical level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Critical(object obj, IDictionary<string, object> custom)
{
return this.Critical(obj, custom);
}
/// <summary>
/// Logs the specified object as using error level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Error(object obj, IDictionary<string, object> custom)
{
return this.Error(obj, custom);
}
/// <summary>
/// Logs the specified object as using warning level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Warning(object obj, IDictionary<string, object> custom)
{
return this.Warning(obj, custom);
}
/// <summary>
/// Logs the specified object as using informational level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Info(object obj, IDictionary<string, object> custom)
{
return this.Info(obj, custom);
}
/// <summary>
/// Logs the specified object as using debug level.
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="custom">The custom.</param>
/// <returns>Task.</returns>
Task IAsyncLogger.Debug(object obj, IDictionary<string, object> custom)
{
return this.Debug(obj, custom);
}
#endregion IAsyncLogger explicitly
#region IDisposable explicitly
void IDisposable.Dispose()
{
this.Dispose();
}
#endregion IDisposable explicitly
internal Task EnqueueAsync(
object dataObject,
ErrorLevel level,
IDictionary<string, object> custom,
TimeSpan? timeout = null,
SemaphoreSlim signal = null
)
{
DateTime utcTimestamp = DateTime.UtcNow;
if (this.Config.LogLevel.HasValue && level < this.Config.LogLevel.Value)
{
// nice shortcut:
return completedTask;
}
DateTime? timeoutAt = null;
if (timeout.HasValue)
{
timeoutAt = DateTime.Now.Add(timeout.Value);
}
// we are taking here a fire-and-forget approach:
Action task = () => Enqueue(utcTimestamp, dataObject, level, custom, timeoutAt, signal);
lock (this._pendingTasks)
{
if (this.Config.ReportingQueueDepth == this._pendingTasks.Count)
{
this._pendingTasks.TryDequeue(out var _);
}
this._pendingTasks.Enqueue(task);
this._pendingTasksWaitEvent.Set();
}
return Task.FromResult(true);
}
private void ProcessPendingTasks()
{
while (!disposedValue)
{
this._pendingTasksWaitEvent.WaitOne();
if (this._pendingTasks.TryDequeue(out var task))
{
try
{
task();
}
catch (System.Exception ex)
{
OnRollbarEvent(new InternalErrorEventArgs(this, null, ex, "While performing Enqueue(...)..."));
System.Diagnostics.Trace.TraceError(ex.ToString());
}
}
else
{
this._pendingTasksWaitEvent.Reset();
}
}
}
private void Enqueue(
DateTime utcTimestamp,
object dataObject,
ErrorLevel level,
IDictionary<string, object> custom,
DateTime? timeoutAt = null,
SemaphoreSlim signal = null
)
{
lock (this._syncRoot)
{
var data = RollbarUtility.PackageAsPayloadData(utcTimestamp, this.Config, level, dataObject, custom);
var payload = new Payload(this._config.AccessToken, data, timeoutAt, signal);
DoSend(payload);
}
}
private void DoSend(Payload payload)
{
//lock (this._syncRoot)
{
// here is the last chance to decide if we need to actually send this payload
// based on the current config settings:
if (string.IsNullOrWhiteSpace(this._config.AccessToken)
|| this._config.Enabled == false
|| (this._config.LogLevel.HasValue && payload.Data.Level < this._config.LogLevel.Value)
)
{
return;
}
if (TelemetryCollector.Instance.Config.TelemetryEnabled)
{
payload.Data.Body.Telemetry =
TelemetryCollector.Instance.GetQueueContent();
}
if (this._config.Server != null)
{
payload.Data.Server = this._config.Server;
}
try
{
if (this._config.CheckIgnore != null
&& this._config.CheckIgnore.Invoke(payload)
)
{
return;
}
}
catch (System.Exception ex)
{
OnRollbarEvent(new InternalErrorEventArgs(this, payload, ex, "While check-ignoring a payload..."));
}
try
{
this._config.Transform?.Invoke(payload);
}
catch (System.Exception ex)
{
OnRollbarEvent(new InternalErrorEventArgs(this, payload, ex, "While transforming a payload..."));
}
try
{
this._config.Truncate?.Invoke(payload);
}
catch (System.Exception ex)
{
OnRollbarEvent(new InternalErrorEventArgs(this, payload, ex, "While truncating a payload..."));
}
this._payloadQueue.Enqueue(payload);
return;
}
}
internal virtual void OnRollbarEvent(RollbarEventArgs e)
{
EventHandler<RollbarEventArgs> handler = InternalEvent;
if (handler != null)
{
handler(this, e);
}
}
#region IDisposable Support
private bool disposedValue = false; // To detect redundant calls
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
{
if (disposing)
{
// TODO: dispose managed state (managed objects).
this._payloadQueue.Release();
}
// TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
// TODO: set large fields to null.
disposedValue = true;
}
}
// TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources.
// ~RollbarLogger() {
// // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
// Dispose(false);
// }
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
/// <remarks>
/// This code added to correctly implement the disposable pattern.
/// </remarks>
public void Dispose()
{
// RollbarLogger type supports both paradigms: singleton-like (via RollbarLocator) and
// multiple disposable instances (via RollbarFactory).
// Here we want to make sure that the singleton instance is never disposed:
Assumption.AssertTrue(!this.IsSingleton, nameof(this.IsSingleton));
// Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true);
// TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this);
}
#endregion IDisposable Support
}
}
| 33.29661 | 150 | 0.530585 | [
"MIT"
] | sanjaysingh/Rollbar.NET | Rollbar/RollbarLogger.cs | 23,576 | C# |
namespace TomsToolbox.Wpf
{
/// <summary>
/// Interface to be implemented by visual layers that need to be forced to invalidate their layout independent of the WPF render cycle.
/// </summary>
interface ILayer
{
/// <summary>
/// Invalidates the layout of this instance.
/// </summary>
void Invalidate();
}
}
| 27.071429 | 140 | 0.588391 | [
"MIT"
] | tom-englert/TomsToolbox1 | TomsToolbox.Wpf/ILayer.cs | 381 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Medical.Editor;
using Engine.Saving;
using Engine.Editing;
using MyGUIPlugin;
namespace Medical.GUI.AnomalousMvc
{
public class ButtonDefinition : ButtonDefinitionBase
{
public ButtonDefinition(String name)
:this(name, null)
{
}
public ButtonDefinition(String name, String action)
: base(name, action)
{
Text = name;
}
public override void createButton(ButtonFactory factory, int x, int y, int width, int height)
{
factory.addTextButton(this, x, y, width, height);
}
[Editable]
public String Text { get; set; }
public override bool FixedSize
{
get
{
return false;
}
}
protected ButtonDefinition(LoadInfo info)
: base(info)
{
}
}
}
| 21.469388 | 102 | 0.527567 | [
"MIT"
] | AnomalousMedical/Medical | Standalone/GUI/AnomalousMvc/Decorators/ButtonDefinition.cs | 1,054 | C# |
// MIT License
//
// Copyright (c) 2009-2017 Luca Piccioni
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// This file is automatically generated
#pragma warning disable 649, 1572, 1573
// ReSharper disable RedundantUsingDirective
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using Khronos;
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer
namespace OpenGL
{
public partial class Egl
{
/// <summary>
/// [EGL] Value of EGL_OBJECT_THREAD_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_THREAD_KHR = 0x33B0;
/// <summary>
/// [EGL] Value of EGL_OBJECT_DISPLAY_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_DISPLAY_KHR = 0x33B1;
/// <summary>
/// [EGL] Value of EGL_OBJECT_CONTEXT_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_CONTEXT_KHR = 0x33B2;
/// <summary>
/// [EGL] Value of EGL_OBJECT_SURFACE_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_SURFACE_KHR = 0x33B3;
/// <summary>
/// [EGL] Value of EGL_OBJECT_IMAGE_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_IMAGE_KHR = 0x33B4;
/// <summary>
/// [EGL] Value of EGL_OBJECT_SYNC_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_SYNC_KHR = 0x33B5;
/// <summary>
/// [EGL] Value of EGL_OBJECT_STREAM_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int OBJECT_STREAM_KHR = 0x33B6;
/// <summary>
/// [EGL] Value of EGL_DEBUG_MSG_CRITICAL_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int DEBUG_MSG_CRITICAL_KHR = 0x33B9;
/// <summary>
/// [EGL] Value of EGL_DEBUG_MSG_ERROR_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int DEBUG_MSG_ERROR_KHR = 0x33BA;
/// <summary>
/// [EGL] Value of EGL_DEBUG_MSG_WARN_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int DEBUG_MSG_WARN_KHR = 0x33BB;
/// <summary>
/// [EGL] Value of EGL_DEBUG_MSG_INFO_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int DEBUG_MSG_INFO_KHR = 0x33BC;
/// <summary>
/// [EGL] Value of EGL_DEBUG_CALLBACK_KHR symbol.
/// </summary>
[RequiredByFeature("EGL_KHR_debug")]
public const int DEBUG_CALLBACK_KHR = 0x33B8;
/// <summary>
/// [EGL] eglDebugMessageControlKHR: Binding for eglDebugMessageControlKHR.
/// </summary>
/// <param name="callback">
/// A <see cref="T:DebugProcKHR"/>.
/// </param>
/// <param name="attrib_list">
/// A <see cref="T:IntPtr[]"/>.
/// </param>
[RequiredByFeature("EGL_KHR_debug")]
public static int KHR(DebugProcKHR callback, IntPtr[] attrib_list)
{
int retValue;
unsafe {
fixed (IntPtr* p_attrib_list = attrib_list)
{
Debug.Assert(Delegates.peglDebugMessageControlKHR != null, "peglDebugMessageControlKHR not implemented");
retValue = Delegates.peglDebugMessageControlKHR(callback, p_attrib_list);
LogCommand("eglDebugMessageControlKHR", retValue, callback, attrib_list );
}
}
DebugCheckErrors(retValue);
return (retValue);
}
/// <summary>
/// [EGL] eglQueryDebugKHR: Binding for eglQueryDebugKHR.
/// </summary>
/// <param name="attribute">
/// A <see cref="T:int"/>.
/// </param>
/// <param name="value">
/// A <see cref="T:IntPtr[]"/>.
/// </param>
[RequiredByFeature("EGL_KHR_debug")]
public static bool QueryKHR(int attribute, IntPtr[] value)
{
bool retValue;
unsafe {
fixed (IntPtr* p_value = value)
{
Debug.Assert(Delegates.peglQueryDebugKHR != null, "peglQueryDebugKHR not implemented");
retValue = Delegates.peglQueryDebugKHR(attribute, p_value);
LogCommand("eglQueryDebugKHR", retValue, attribute, value );
}
}
DebugCheckErrors(retValue);
return (retValue);
}
/// <summary>
/// [EGL] eglLabelObjectKHR: Binding for eglLabelObjectKHR.
/// </summary>
/// <param name="display">
/// A <see cref="T:IntPtr"/>.
/// </param>
/// <param name="objectType">
/// A <see cref="T:uint"/>.
/// </param>
/// <param name="object">
/// A <see cref="T:IntPtr"/>.
/// </param>
/// <param name="label">
/// A <see cref="T:IntPtr"/>.
/// </param>
[RequiredByFeature("EGL_KHR_debug")]
public static int KHR(IntPtr display, uint objectType, IntPtr @object, IntPtr label)
{
int retValue;
Debug.Assert(Delegates.peglLabelObjectKHR != null, "peglLabelObjectKHR not implemented");
retValue = Delegates.peglLabelObjectKHR(display, objectType, @object, label);
LogCommand("eglLabelObjectKHR", retValue, display, objectType, @object, label );
DebugCheckErrors(retValue);
return (retValue);
}
internal static unsafe partial class Delegates
{
[RequiredByFeature("EGL_KHR_debug")]
[SuppressUnmanagedCodeSecurity]
internal delegate int eglDebugMessageControlKHR(DebugProcKHR callback, IntPtr* attrib_list);
[RequiredByFeature("EGL_KHR_debug")]
internal static eglDebugMessageControlKHR peglDebugMessageControlKHR;
[RequiredByFeature("EGL_KHR_debug")]
[SuppressUnmanagedCodeSecurity]
internal delegate bool eglQueryDebugKHR(int attribute, IntPtr* value);
[RequiredByFeature("EGL_KHR_debug")]
internal static eglQueryDebugKHR peglQueryDebugKHR;
[RequiredByFeature("EGL_KHR_debug")]
[SuppressUnmanagedCodeSecurity]
internal delegate int eglLabelObjectKHR(IntPtr display, uint objectType, IntPtr @object, IntPtr label);
[RequiredByFeature("EGL_KHR_debug")]
internal static eglLabelObjectKHR peglLabelObjectKHR;
}
}
}
| 31.659292 | 111 | 0.686373 | [
"MIT"
] | GiantBlargg/OpenGL.Net | OpenGL.Net/KHR/Egl.KHR_debug.cs | 7,155 | C# |
using System.Linq;
using BluffinMuffin.HandEvaluator;
using BluffinMuffin.Protocol.DataTypes;
using BluffinMuffin.Server.DataTypes;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BluffinMuffin.Server.Logic.Test
{
[TestClass]
public class MoneyPotTest
{
[TestMethod]
public void ContributingTakesMoneyFromPlayerBetAmount()
{
//Arrange
var pot = new MoneyPot();
var p = new PlayerInfo { MoneyBetAmnt = 142 };
//Act
pot.Contribute(p, 42);
//Assert
Assert.AreEqual(42, pot.MoneyAmount);
Assert.AreEqual(100, p.MoneyBetAmnt);
}
[TestMethod]
public void DistributingGivesMoneyToPlayerSafeAmount()
{
//Arrange
var pot = new MoneyPot();
var p = new PlayerInfo { MoneyBetAmnt = 142, MoneySafeAmnt = 1000 };
pot.Contribute(p, 42);
//Act
var res = pot.Distribute(new[] { PlayerWithRank(p, 1) }).ToArray();
//Assert
Assert.AreEqual(0, pot.MoneyAmount);
Assert.AreEqual(100, p.MoneyBetAmnt);
Assert.AreEqual(1042, p.MoneySafeAmnt);
Assert.AreEqual(1, res.Length);
Assert.AreEqual(p, res.First().Key.CardsHolder.Player);
Assert.AreEqual(42, res.First().Value);
}
[TestMethod]
public void DistributingGivesMoneyToNobodyIfNoContributingPlayerInTheRankingList()
{
//Arrange
var pot = new MoneyPot();
var p1 = new PlayerInfo { MoneyBetAmnt = 142, MoneySafeAmnt = 1000 };
var p2 = new PlayerInfo { MoneyBetAmnt = 0, MoneySafeAmnt = 5000 };
pot.Contribute(p1, 42);
//Act
var res = pot.Distribute(new[] { PlayerWithRank(p2, 1) }).ToArray();
//Assert
Assert.AreEqual(0, pot.MoneyAmount);
Assert.AreEqual(100, p1.MoneyBetAmnt);
Assert.AreEqual(1000, p1.MoneySafeAmnt);
Assert.AreEqual(0, p2.MoneyBetAmnt);
Assert.AreEqual(5000, p2.MoneySafeAmnt);
Assert.AreEqual(1, res.Length);
Assert.AreEqual(null, res.First().Key);
Assert.AreEqual(42, res.First().Value);
}
[TestMethod]
public void DistributingGivesMoneyToLowestInRankingList()
{
//Arrange
var pot = new MoneyPot();
var p1 = new PlayerInfo { MoneyBetAmnt = 142, MoneySafeAmnt = 1000 };
var p2 = new PlayerInfo { MoneyBetAmnt = 221, MoneySafeAmnt = 5000 };
pot.Contribute(p1, 42);
pot.Contribute(p2, 21);
//Act
var res = pot.Distribute(new[] { PlayerWithRank(p1, 2), PlayerWithRank(p2, 1) }).ToArray();
//Assert
Assert.AreEqual(0, pot.MoneyAmount);
Assert.AreEqual(100, p1.MoneyBetAmnt);
Assert.AreEqual(1000, p1.MoneySafeAmnt);
Assert.AreEqual(200, p2.MoneyBetAmnt);
Assert.AreEqual(5063, p2.MoneySafeAmnt);
Assert.AreEqual(1, res.Length);
Assert.AreEqual(p2, res.First().Key.CardsHolder.Player);
Assert.AreEqual(63, res.First().Value);
}
[TestMethod]
public void DistributingSplitsMoneyToLowestInRankingList()
{
//Arrange
var pot = new MoneyPot();
var p1 = new PlayerInfo { MoneyBetAmnt = 142, MoneySafeAmnt = 1000 };
var p2 = new PlayerInfo { MoneyBetAmnt = 221, MoneySafeAmnt = 5000 };
pot.Contribute(p1, 42);
pot.Contribute(p2, 21);
//Act
var res = pot.Distribute(new[] { PlayerWithRank(p1, 1), PlayerWithRank(p2, 1) }).ToArray();
//Assert
Assert.AreEqual(0, pot.MoneyAmount);
Assert.AreEqual(100, p1.MoneyBetAmnt);
Assert.AreEqual(1031, p1.MoneySafeAmnt);
Assert.AreEqual(200, p2.MoneyBetAmnt);
Assert.AreEqual(5031, p2.MoneySafeAmnt);
Assert.AreEqual(3, res.Length);
Assert.AreEqual(p1, res.First().Key.CardsHolder.Player);
Assert.AreEqual(31, res.First().Value); // 63 / 2 = 31.5: 31 is given
Assert.AreEqual(p2, res.Skip(1).First().Key.CardsHolder.Player);
Assert.AreEqual(31, res.Skip(1).First().Value); // 63 / 2 = 31.5: 31 is given
Assert.AreEqual(null, res.Skip(2).First().Key);
Assert.AreEqual(1, res.Skip(2).First().Value); // 63 - (31*2) = 1: 1 buck for the casino !
}
private EvaluatedCardHolder<PlayerCardHolder> PlayerWithRank(PlayerInfo p, int rank)
{
return new EvaluatedCardHolder<PlayerCardHolder>(new PlayerCardHolder(p, new string[0]), new EvaluationParams()) { Rank = rank };
}
}
}
| 39.33871 | 141 | 0.576671 | [
"MIT"
] | BluffinMuffin/BluffinMuffin.Server | C#/BluffinMuffin.Server.Logic.Test/MoneyPotTest.cs | 4,880 | C# |
namespace Nagasena.Scomp {
using GrammarOptions = Nagasena.Proc.Common.GrammarOptions;
using GrammarCache = Nagasena.Proc.Grammars.GrammarCache;
using GrammarSchema = Nagasena.Schema.GrammarSchema;
/// <exclude/>
public sealed class GrammarCache4Grammar {
public static readonly GrammarCache m_grammarCache;
static GrammarCache4Grammar() {
m_grammarCache = new GrammarCache(GrammarSchema.EXISchema, GrammarOptions.STRICT_OPTIONS);
}
public static GrammarCache GrammarCache {
get {
return m_grammarCache;
}
}
private GrammarCache4Grammar() {
}
}
} | 24.807692 | 97 | 0.694574 | [
"Apache-2.0"
] | LLuke/openexi | nagasenacs/src/Nagasena/Scomp/GrammarCache4Grammar.cs | 647 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Aws.Dms.Inputs
{
public sealed class EndpointKinesisSettingsArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. The default is `false`.
/// </summary>
[Input("includeControlDetails")]
public Input<bool>? IncludeControlDetails { get; set; }
/// <summary>
/// Include NULL and empty columns in the target. The default is `false`.
/// </summary>
[Input("includeNullAndEmpty")]
public Input<bool>? IncludeNullAndEmpty { get; set; }
/// <summary>
/// Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. The default is `false`.
/// </summary>
[Input("includePartitionValue")]
public Input<bool>? IncludePartitionValue { get; set; }
/// <summary>
/// Includes any data definition language (DDL) operations that change the table in the control data. The default is `false`.
/// </summary>
[Input("includeTableAlterOperations")]
public Input<bool>? IncludeTableAlterOperations { get; set; }
/// <summary>
/// Provides detailed transaction information from the source database. The default is `false`.
/// </summary>
[Input("includeTransactionDetails")]
public Input<bool>? IncludeTransactionDetails { get; set; }
/// <summary>
/// Output format for the records created. Defaults to `json`. Valid values are `json` and `json_unformatted` (a single line with no tab).
/// </summary>
[Input("messageFormat")]
public Input<string>? MessageFormat { get; set; }
/// <summary>
/// Prefixes schema and table names to partition values, when the partition type is primary-key-type. The default is `false`.
/// </summary>
[Input("partitionIncludeSchemaTable")]
public Input<bool>? PartitionIncludeSchemaTable { get; set; }
/// <summary>
/// Amazon Resource Name (ARN) of the IAM Role with permissions to write to the Kinesis data stream.
/// </summary>
[Input("serviceAccessRoleArn")]
public Input<string>? ServiceAccessRoleArn { get; set; }
/// <summary>
/// Amazon Resource Name (ARN) of the Kinesis data stream.
/// </summary>
[Input("streamArn")]
public Input<string>? StreamArn { get; set; }
public EndpointKinesisSettingsArgs()
{
}
}
}
| 39.837838 | 171 | 0.635685 | [
"ECL-2.0",
"Apache-2.0"
] | RafalSumislawski/pulumi-aws | sdk/dotnet/Dms/Inputs/EndpointKinesisSettingsArgs.cs | 2,948 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Collections.Generic;
using System.Management.Automation.Remoting;
using System.Management.Automation.Runspaces;
using System.Management.Automation.Remoting.Server;
using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
/// <summary>
/// Handles all data structure handler communication with the client
/// runspace pool.
/// </summary>
internal class ServerRunspacePoolDataStructureHandler
{
#region Constructors
/// <summary>
/// Constructor which takes a server runspace pool driver and
/// creates an associated ServerRunspacePoolDataStructureHandler.
/// </summary>
/// <param name="driver"></param>
/// <param name="transportManager"></param>
internal ServerRunspacePoolDataStructureHandler(ServerRunspacePoolDriver driver,
AbstractServerSessionTransportManager transportManager)
{
_clientRunspacePoolId = driver.InstanceId;
_transportManager = transportManager;
}
#endregion Constructors
#region Data Structure Handler Methods
/// <summary>
/// Send a message with application private data to the client.
/// </summary>
/// <param name="applicationPrivateData">ApplicationPrivateData to send.</param>
/// <param name="serverCapability">Server capability negotiated during initial exchange of remoting messages / session capabilities of client and server.</param>
internal void SendApplicationPrivateDataToClient(PSPrimitiveDictionary applicationPrivateData, RemoteSessionCapability serverCapability)
{
// make server's PSVersionTable available to the client using ApplicationPrivateData
PSPrimitiveDictionary applicationPrivateDataWithVersionTable =
PSPrimitiveDictionary.CloneAndAddPSVersionTable(applicationPrivateData);
// override the hardcoded version numbers with the stuff that was reported to the client during negotiation
PSPrimitiveDictionary versionTable = (PSPrimitiveDictionary)applicationPrivateDataWithVersionTable[PSVersionInfo.PSVersionTableName];
versionTable[PSVersionInfo.PSRemotingProtocolVersionName] = serverCapability.ProtocolVersion;
versionTable[PSVersionInfo.SerializationVersionName] = serverCapability.SerializationVersion;
// Pass back the true PowerShell version to the client via application private data.
versionTable[PSVersionInfo.PSVersionName] = PSVersionInfo.PSVersion;
RemoteDataObject data = RemotingEncoder.GenerateApplicationPrivateData(
_clientRunspacePoolId, applicationPrivateDataWithVersionTable);
SendDataAsync(data);
}
/// <summary>
/// Send a message with the RunspacePoolStateInfo to the client.
/// </summary>
/// <param name="stateInfo">State info to send.</param>
internal void SendStateInfoToClient(RunspacePoolStateInfo stateInfo)
{
RemoteDataObject data = RemotingEncoder.GenerateRunspacePoolStateInfo(
_clientRunspacePoolId, stateInfo);
SendDataAsync(data);
}
/// <summary>
/// Send a message with the PSEventArgs to the client.
/// </summary>
/// <param name="e">Event to send.</param>
internal void SendPSEventArgsToClient(PSEventArgs e)
{
RemoteDataObject data = RemotingEncoder.GeneratePSEventArgs(_clientRunspacePoolId, e);
SendDataAsync(data);
}
/// <summary>
/// Called when session is connected from a new client
/// call into the sessionconnect handlers for each associated powershell dshandler.
/// </summary>
internal void ProcessConnect()
{
List<ServerPowerShellDataStructureHandler> dsHandlers;
lock (_associationSyncObject)
{
dsHandlers = new List<ServerPowerShellDataStructureHandler>(_associatedShells.Values);
}
foreach (var dsHandler in dsHandlers)
{
dsHandler.ProcessConnect();
}
}
/// <summary>
/// Process the data received from the runspace pool on
/// the server.
/// </summary>
/// <param name="receivedData">Data received.</param>
internal void ProcessReceivedData(RemoteDataObject<PSObject> receivedData)
{
if (receivedData == null)
{
throw PSTraceSource.NewArgumentNullException("receivedData");
}
Dbg.Assert(receivedData.TargetInterface == RemotingTargetInterface.RunspacePool,
"RemotingTargetInterface must be Runspace");
switch (receivedData.DataType)
{
case RemotingDataType.CreatePowerShell:
{
Dbg.Assert(CreateAndInvokePowerShell != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
CreateAndInvokePowerShell.SafeInvoke(this, new RemoteDataEventArgs<RemoteDataObject<PSObject>>(receivedData));
}
break;
case RemotingDataType.GetCommandMetadata:
{
Dbg.Assert(GetCommandMetadata != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
GetCommandMetadata.SafeInvoke(this, new RemoteDataEventArgs<RemoteDataObject<PSObject>>(receivedData));
}
break;
case RemotingDataType.RemoteRunspaceHostResponseData:
{
Dbg.Assert(HostResponseReceived != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
RemoteHostResponse remoteHostResponse = RemoteHostResponse.Decode(receivedData.Data);
// part of host message robustness algo. Now the host response is back, report to transport that
// execution status is back to running
_transportManager.ReportExecutionStatusAsRunning();
HostResponseReceived.SafeInvoke(this, new RemoteDataEventArgs<RemoteHostResponse>(remoteHostResponse));
}
break;
case RemotingDataType.SetMaxRunspaces:
{
Dbg.Assert(SetMaxRunspacesReceived != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
SetMaxRunspacesReceived.SafeInvoke(this, new RemoteDataEventArgs<PSObject>(receivedData.Data));
}
break;
case RemotingDataType.SetMinRunspaces:
{
Dbg.Assert(SetMinRunspacesReceived != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
SetMinRunspacesReceived.SafeInvoke(this, new RemoteDataEventArgs<PSObject>(receivedData.Data));
}
break;
case RemotingDataType.AvailableRunspaces:
{
Dbg.Assert(GetAvailableRunspacesReceived != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events");
GetAvailableRunspacesReceived.SafeInvoke(this, new RemoteDataEventArgs<PSObject>(receivedData.Data));
}
break;
case RemotingDataType.ResetRunspaceState:
{
Dbg.Assert(ResetRunspaceState != null,
"The ServerRunspacePoolDriver should subscribe to all data structure handler events.");
ResetRunspaceState.SafeInvoke(this, new RemoteDataEventArgs<PSObject>(receivedData.Data));
}
break;
}
}
/// <summary>
/// Creates a powershell data structure handler from this runspace pool.
/// </summary>
/// <param name="instanceId">Powershell instance id.</param>
/// <param name="runspacePoolId">Runspace pool id.</param>
/// <param name="remoteStreamOptions">Remote stream options.</param>
/// <param name="localPowerShell">Local PowerShell object.</param>
/// <returns>ServerPowerShellDataStructureHandler.</returns>
internal ServerPowerShellDataStructureHandler CreatePowerShellDataStructureHandler(
Guid instanceId, Guid runspacePoolId, RemoteStreamOptions remoteStreamOptions, PowerShell localPowerShell)
{
// start with pool's transport manager.
AbstractServerTransportManager cmdTransportManager = _transportManager;
if (instanceId != Guid.Empty)
{
cmdTransportManager = _transportManager.GetCommandTransportManager(instanceId);
Dbg.Assert(cmdTransportManager.TypeTable != null, "This should be already set in managed C++ code");
}
ServerPowerShellDataStructureHandler dsHandler =
new ServerPowerShellDataStructureHandler(instanceId, runspacePoolId, remoteStreamOptions, cmdTransportManager, localPowerShell);
lock (_associationSyncObject)
{
_associatedShells.Add(dsHandler.PowerShellId, dsHandler);
}
dsHandler.RemoveAssociation += new EventHandler(HandleRemoveAssociation);
return dsHandler;
}
/// <summary>
/// Returns the currently active PowerShell datastructure handler.
/// </summary>
/// <returns>
/// ServerPowerShellDataStructureHandler if one is present, null otherwise.
/// </returns>
internal ServerPowerShellDataStructureHandler GetPowerShellDataStructureHandler()
{
lock (_associationSyncObject)
{
if (_associatedShells.Count > 0)
{
foreach (object o in _associatedShells.Values)
{
ServerPowerShellDataStructureHandler result = o as ServerPowerShellDataStructureHandler;
if (result != null)
{
return result;
}
}
}
}
return null;
}
/// <summary>
/// Dispatch the message to the associated powershell data structure handler.
/// </summary>
/// <param name="rcvdData">Message to dispatch.</param>
internal void DispatchMessageToPowerShell(RemoteDataObject<PSObject> rcvdData)
{
ServerPowerShellDataStructureHandler dsHandler =
GetAssociatedPowerShellDataStructureHandler(rcvdData.PowerShellId);
// if data structure handler is not found, then association has already been
// removed, discard message
if (dsHandler != null)
{
dsHandler.ProcessReceivedData(rcvdData);
}
}
/// <summary>
/// Send the specified response to the client. The client call will
/// be blocked on the same.
/// </summary>
/// <param name="callId">Call id on the client.</param>
/// <param name="response">Response to send.</param>
internal void SendResponseToClient(long callId, object response)
{
RemoteDataObject message =
RemotingEncoder.GenerateRunspacePoolOperationResponse(_clientRunspacePoolId, response, callId);
SendDataAsync(message);
}
/// <summary>
/// TypeTable used for Serialization/Deserialization.
/// </summary>
internal TypeTable TypeTable
{
get { return _transportManager.TypeTable; }
set { _transportManager.TypeTable = value; }
}
#endregion Data Structure Handler Methods
#region Data Structure Handler events
/// <summary>
/// This event is raised whenever there is a request from the
/// client to create a powershell on the server and invoke it.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<RemoteDataObject<PSObject>>> CreateAndInvokePowerShell;
/// <summary>
/// This event is raised whenever there is a request from the
/// client to run command discovery pipeline.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<RemoteDataObject<PSObject>>> GetCommandMetadata;
/// <summary>
/// This event is raised when a host call response is received.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<RemoteHostResponse>> HostResponseReceived;
/// <summary>
/// This event is raised when there is a request to modify the
/// maximum runspaces in the runspace pool.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<PSObject>> SetMaxRunspacesReceived;
/// <summary>
/// This event is raised when there is a request to modify the
/// minimum runspaces in the runspace pool.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<PSObject>> SetMinRunspacesReceived;
/// <summary>
/// This event is raised when there is a request to get the
/// available runspaces in the runspace pool.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<PSObject>> GetAvailableRunspacesReceived;
/// <summary>
/// This event is raised when the client requests the runspace state
/// to be reset.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<PSObject>> ResetRunspaceState;
#endregion Data Structure Handler events
#region Private Methods
/// <summary>
/// Send the data specified as a RemoteDataObject asynchronously
/// to the runspace pool on the remote session.
/// </summary>
/// <param name="data">Data to send.</param>
/// <remarks>This overload takes a RemoteDataObject and should
/// be the one thats used to send data from within this
/// data structure handler class</remarks>
private void SendDataAsync(RemoteDataObject data)
{
Dbg.Assert(data != null, "Cannot send null object.");
_transportManager.SendDataToClient(data, true);
}
/// <summary>
/// Get the associated powershell data structure handler for the specified
/// powershell id.
/// </summary>
/// <param name="clientPowerShellId">powershell id for the
/// powershell data structure handler</param>
/// <returns>ServerPowerShellDataStructureHandler.</returns>
internal ServerPowerShellDataStructureHandler GetAssociatedPowerShellDataStructureHandler
(Guid clientPowerShellId)
{
ServerPowerShellDataStructureHandler dsHandler = null;
lock (_associationSyncObject)
{
bool success = _associatedShells.TryGetValue(clientPowerShellId, out dsHandler);
if (!success)
{
dsHandler = null;
}
}
return dsHandler;
}
/// <summary>
/// Remove the association of the powershell from the runspace pool.
/// </summary>
/// <param name="sender">Sender of this event.</param>
/// <param name="e">Unused.</param>
private void HandleRemoveAssociation(object sender, EventArgs e)
{
Dbg.Assert(sender is ServerPowerShellDataStructureHandler, @"sender of the event
must be ServerPowerShellDataStructureHandler");
ServerPowerShellDataStructureHandler dsHandler = sender as ServerPowerShellDataStructureHandler;
lock (_associationSyncObject)
{
_associatedShells.Remove(dsHandler.PowerShellId);
}
// let session transport manager remove its association of command transport manager.
_transportManager.RemoveCommandTransportManager(dsHandler.PowerShellId);
}
#endregion Private Methods
#region Private Members
private Guid _clientRunspacePoolId;
// transport manager using which this
// runspace pool driver handles all client
// communication
private AbstractServerSessionTransportManager _transportManager;
private Dictionary<Guid, ServerPowerShellDataStructureHandler> _associatedShells
= new Dictionary<Guid, ServerPowerShellDataStructureHandler>();
// powershell data structure handlers associated with this
// runspace pool data structure handler
private object _associationSyncObject = new object();
// object to synchronize operations to above
#endregion Private Members
}
/// <summary>
/// Handles all PowerShell data structure handler communication
/// with the client side PowerShell.
/// </summary>
internal class ServerPowerShellDataStructureHandler
{
#region Private Members
// transport manager using which this
// powershell driver handles all client
// communication
private AbstractServerTransportManager _transportManager;
private Guid _clientRunspacePoolId;
private Guid _clientPowerShellId;
private RemoteStreamOptions _streamSerializationOptions;
private Runspace _rsUsedToInvokePowerShell;
#endregion Private Members
#region Constructors
/// <summary>
/// Default constructor for creating ServerPowerShellDataStructureHandler
/// instance.
/// </summary>
/// <param name="instanceId">Powershell instance id.</param>
/// <param name="runspacePoolId">Runspace pool id.</param>
/// <param name="remoteStreamOptions">Remote stream options.</param>
/// <param name="transportManager">Transport manager.</param>
/// <param name="localPowerShell">Local powershell object.</param>
internal ServerPowerShellDataStructureHandler(Guid instanceId, Guid runspacePoolId, RemoteStreamOptions remoteStreamOptions,
AbstractServerTransportManager transportManager, PowerShell localPowerShell)
{
_clientPowerShellId = instanceId;
_clientRunspacePoolId = runspacePoolId;
_transportManager = transportManager;
_streamSerializationOptions = remoteStreamOptions;
transportManager.Closing += HandleTransportClosing;
if (localPowerShell != null)
{
localPowerShell.RunspaceAssigned +=
new EventHandler<PSEventArgs<Runspace>>(LocalPowerShell_RunspaceAssigned);
}
}
private void LocalPowerShell_RunspaceAssigned(object sender, PSEventArgs<Runspace> e)
{
_rsUsedToInvokePowerShell = e.Args;
}
#endregion Constructors
#region Data Structure Handler Methods
/// <summary>
/// Prepare transport manager to send data to client.
/// </summary>
internal void Prepare()
{
// When Guid.Empty is used, PowerShell must be using pool's transport manager
// to send data to client. so we dont need to prepare command transport manager
if (_clientPowerShellId != Guid.Empty)
{
_transportManager.Prepare();
}
}
/// <summary>
/// Send the state information to the client.
/// </summary>
/// <param name="stateInfo">state information to be
/// sent to the client</param>
internal void SendStateChangedInformationToClient(PSInvocationStateInfo
stateInfo)
{
Dbg.Assert((stateInfo.State == PSInvocationState.Completed) ||
(stateInfo.State == PSInvocationState.Failed) ||
(stateInfo.State == PSInvocationState.Stopped),
"SendStateChangedInformationToClient should be called to notify a termination state");
SendDataAsync(RemotingEncoder.GeneratePowerShellStateInfo(
stateInfo, _clientPowerShellId, _clientRunspacePoolId));
// Close the transport manager only if the PowerShell Guid != Guid.Empty.
// When Guid.Empty is used, PowerShell must be using pool's transport manager
// to send data to client.
if (_clientPowerShellId != Guid.Empty)
{
// no need to listen for closing events as we are initiating the close
_transportManager.Closing -= HandleTransportClosing;
// if terminal state is reached close the transport manager instead of letting
// the client initiate the close.
_transportManager.Close(null);
}
}
/// <summary>
/// Send the output data to the client.
/// </summary>
/// <param name="data">Data to send.</param>
internal void SendOutputDataToClient(PSObject data)
{
SendDataAsync(RemotingEncoder.GeneratePowerShellOutput(data,
_clientPowerShellId, _clientRunspacePoolId));
}
/// <summary>
/// Send the error record to client.
/// </summary>
/// <param name="errorRecord">Error record to send.</param>
internal void SendErrorRecordToClient(ErrorRecord errorRecord)
{
errorRecord.SerializeExtendedInfo = (_streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToErrorRecord) != 0;
SendDataAsync(RemotingEncoder.GeneratePowerShellError(
errorRecord, _clientRunspacePoolId, _clientPowerShellId));
}
/// <summary>
/// Send the specified warning record to client.
/// </summary>
/// <param name="record">Warning record.</param>
internal void SendWarningRecordToClient(WarningRecord record)
{
record.SerializeExtendedInfo = (_streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToWarningRecord) != 0;
SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(
record, _clientRunspacePoolId, _clientPowerShellId, RemotingDataType.PowerShellWarning));
}
/// <summary>
/// Send the specified debug record to client.
/// </summary>
/// <param name="record">Debug record.</param>
internal void SendDebugRecordToClient(DebugRecord record)
{
record.SerializeExtendedInfo = (_streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToDebugRecord) != 0;
SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(
record, _clientRunspacePoolId, _clientPowerShellId, RemotingDataType.PowerShellDebug));
}
/// <summary>
/// Send the specified verbose record to client.
/// </summary>
/// <param name="record">Warning record.</param>
internal void SendVerboseRecordToClient(VerboseRecord record)
{
record.SerializeExtendedInfo = (_streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToVerboseRecord) != 0;
SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(
record, _clientRunspacePoolId, _clientPowerShellId, RemotingDataType.PowerShellVerbose));
}
/// <summary>
/// Send the specified progress record to client.
/// </summary>
/// <param name="record">Progress record.</param>
internal void SendProgressRecordToClient(ProgressRecord record)
{
SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(
record, _clientRunspacePoolId, _clientPowerShellId));
}
/// <summary>
/// Send the specified information record to client.
/// </summary>
/// <param name="record">Information record.</param>
internal void SendInformationRecordToClient(InformationRecord record)
{
SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(
record, _clientRunspacePoolId, _clientPowerShellId));
}
/// <summary>
/// Called when session is connected from a new client
/// calls into observers of this event.
/// observers include corresponding driver that shutdown
/// input stream is present.
/// </summary>
internal void ProcessConnect()
{
OnSessionConnected.SafeInvoke(this, EventArgs.Empty);
}
/// <summary>
/// Process the data received from the powershell on
/// the client.
/// </summary>
/// <param name="receivedData">Data received.</param>
internal void ProcessReceivedData(RemoteDataObject<PSObject> receivedData)
{
if (receivedData == null)
{
throw PSTraceSource.NewArgumentNullException("receivedData");
}
Dbg.Assert(receivedData.TargetInterface == RemotingTargetInterface.PowerShell,
"RemotingTargetInterface must be PowerShell");
switch (receivedData.DataType)
{
case RemotingDataType.StopPowerShell:
{
Dbg.Assert(StopPowerShellReceived != null,
"ServerPowerShellDriver should subscribe to all data structure handler events");
StopPowerShellReceived.SafeInvoke(this, EventArgs.Empty);
}
break;
case RemotingDataType.PowerShellInput:
{
Dbg.Assert(InputReceived != null,
"ServerPowerShellDriver should subscribe to all data structure handler events");
InputReceived.SafeInvoke(this, new RemoteDataEventArgs<object>(receivedData.Data));
}
break;
case RemotingDataType.PowerShellInputEnd:
{
Dbg.Assert(InputEndReceived != null,
"ServerPowerShellDriver should subscribe to all data structure handler events");
InputEndReceived.SafeInvoke(this, EventArgs.Empty);
}
break;
case RemotingDataType.RemotePowerShellHostResponseData:
{
Dbg.Assert(HostResponseReceived != null,
"ServerPowerShellDriver should subscribe to all data structure handler events");
RemoteHostResponse remoteHostResponse = RemoteHostResponse.Decode(receivedData.Data);
// part of host message robustness algo. Now the host response is back, report to transport that
// execution status is back to running
_transportManager.ReportExecutionStatusAsRunning();
HostResponseReceived.SafeInvoke(this, new RemoteDataEventArgs<RemoteHostResponse>(remoteHostResponse));
}
break;
}
}
/// <summary>
/// Raise a remove association event. This is raised
/// when the powershell has gone into a terminal state
/// and the runspace pool need not maintain any further
/// associations.
/// </summary>
internal void RaiseRemoveAssociationEvent()
{
Dbg.Assert(RemoveAssociation != null, @"The ServerRunspacePoolDataStructureHandler should subscribe
to the RemoveAssociation event of ServerPowerShellDataStructureHandler");
RemoveAssociation.SafeInvoke(this, EventArgs.Empty);
}
/// <summary>
/// Creates a ServerRemoteHost which is associated with this powershell.
/// </summary>
/// <param name="powerShellHostInfo">Host information about the host associated
/// PowerShell object on the client.</param>
/// <param name="runspaceServerRemoteHost">Host associated with the RunspacePool
/// on the server.</param>
/// <returns>A new ServerRemoteHost for the PowerShell.</returns>
internal ServerRemoteHost GetHostAssociatedWithPowerShell(
HostInfo powerShellHostInfo,
ServerRemoteHost runspaceServerRemoteHost)
{
HostInfo hostInfo;
// If host was null use the runspace's host for this powershell; otherwise,
// use the HostInfo to create a proxy host of the powershell's host.
if (powerShellHostInfo.UseRunspaceHost)
{
hostInfo = runspaceServerRemoteHost.HostInfo;
}
else
{
hostInfo = powerShellHostInfo;
}
// If the host was not null on the client, then the PowerShell object should
// get a brand spanking new host.
return new ServerRemoteHost(_clientRunspacePoolId, _clientPowerShellId, hostInfo,
_transportManager, runspaceServerRemoteHost.Runspace, runspaceServerRemoteHost as ServerDriverRemoteHost);
}
#endregion Data Structure Handler Methods
#region Data Structure Handler events
/// <summary>
/// This event is raised when the state of associated
/// powershell is terminal and the runspace pool has
/// to detach the association.
/// </summary>
internal event EventHandler RemoveAssociation;
/// <summary>
/// This event is raised when the a message to stop the
/// powershell is received from the client.
/// </summary>
internal event EventHandler StopPowerShellReceived;
/// <summary>
/// This event is raised when an input object is received
/// from the client.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<object>> InputReceived;
/// <summary>
/// This event is raised when end of input is received from
/// the client.
/// </summary>
internal event EventHandler InputEndReceived;
/// <summary>
/// Raised when server session is connected from a new client.
/// </summary>
internal event EventHandler OnSessionConnected;
/// <summary>
/// This event is raised when a host response is received.
/// </summary>
internal event EventHandler<RemoteDataEventArgs<RemoteHostResponse>> HostResponseReceived;
#endregion Data Structure Handler events
#region Internal Methods
/// <summary>
/// Client powershell id.
/// </summary>
internal Guid PowerShellId
{
get
{
return _clientPowerShellId;
}
}
/// <summary>
/// Runspace used to invoke PowerShell, this is used by the steppable
/// pipeline driver.
/// </summary>
internal Runspace RunspaceUsedToInvokePowerShell
{
get { return _rsUsedToInvokePowerShell; }
}
#endregion Internal Methods
#region Private Methods
/// <summary>
/// Send the data specified as a RemoteDataObject asynchronously
/// to the runspace pool on the remote session.
/// </summary>
/// <param name="data">Data to send.</param>
/// <remarks>This overload takes a RemoteDataObject and should
/// be the one thats used to send data from within this
/// data structure handler class</remarks>
private void SendDataAsync(RemoteDataObject data)
{
Dbg.Assert(data != null, "Cannot send null object.");
// this is from a command execution..let transport manager collect
// as much data as possible and send bigger buffer to client.
_transportManager.SendDataToClient(data, false);
}
/// <summary>
/// Handle transport manager's closing event.
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
private void HandleTransportClosing(object sender, EventArgs args)
{
StopPowerShellReceived.SafeInvoke(this, args);
}
#endregion Private Methods
}
}
| 41.133005 | 169 | 0.616647 | [
"MIT"
] | DCtheGeek/PowerShell | src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs | 33,400 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Overlay.UserControls
{
/// <summary>
/// Interaction logic for ColourWheel_UserControl.xaml
/// </summary>
public partial class ColourWheel_UserControl : UserControl
{
public ColourWheel_UserControl()
{
InitializeComponent();
}
}
}
| 23.655172 | 62 | 0.734694 | [
"MIT"
] | GingerPhysicist6/DyslexiaOverlay | Overlay/UserControls/ColourWheel_UserControl.xaml.cs | 688 | C# |
/*
* Author:
* Jose Medrano <josmed@microsoft.com>
*
* Copyright (C) 2018 Microsoft, Corp
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the
* following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using System;
using AppKit;
using LiteForms;
namespace LiteForms.Cocoa
{
public class Window : IWindow, IDisposable
{
public event EventHandler Closing;
NSWindow window;
public virtual OnKeyDown ()
{
}
public string Title
{
get => window.Title;
set => window.Title = value;
}
public Window(Rectangle rectangle) : this(new NSWindow(rectangle.ToCGRect(), NSWindowStyle.Titled | NSWindowStyle.Resizable | NSWindowStyle.Closable, NSBackingStore.Buffered, false))
{
}
public Window(NSWindow window)
{
this.window = window;
this.window.WillClose += Window_WillClose;
}
private void Window_WillClose(object sender, EventArgs e)
{
Closing?.Invoke(this, EventArgs.Empty);
}
IView content;
public IView Content
{
get => content;
set
{
content = value;
this.window.ContentView = content.NativeObject as NSView;
}
}
public object NativeObject => window;
public void AddChild(IWindow window)
{
//To implement
}
public void RemoveChild(IWindow window)
{
//To implement
}
public void ShowDialog ()
{
//To implement
}
public void Show ()
{
window.MakeKeyAndOrderFront(null);
}
public void Dispose()
{
this.window.WillClose -= Window_WillClose;
}
}
}
| 23.028037 | 184 | 0.711445 | [
"MIT"
] | berlamont/FigmaSharp | FigmaSharp.Tools/xForms/xForms.Cocoa/ViewWrappers/Window.cs | 2,466 | C# |
using System;
namespace R5T.Groenbjerg
{
public class Class1
{
}
}
| 9.888889 | 25 | 0.561798 | [
"MIT"
] | MinexAutomation/R5T.Groenbjerg | source/R5T.Groenbjerg/Code/Class1.cs | 91 | C# |
using System;
using System.Collections.Generic;
using DCL.Helpers;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
internal class SectionSceneContributorsSettingsView : MonoBehaviour, IDisposable
{
[SerializeField] internal UsersSearchPromptView usersSearchPromptView;
[SerializeField] internal Button addUserButton;
[SerializeField] internal UserElementView userElementView;
[SerializeField] internal Transform usersContainer;
[SerializeField] internal GameObject emptyListContainer;
[SerializeField] internal TextMeshProUGUI labelContributor;
public event Action OnSearchUserButtonPressed;
internal readonly Dictionary<string, UserElementView> userElementViews = new Dictionary<string, UserElementView>();
private readonly Queue<UserElementView> userElementViewsPool = new Queue<UserElementView>();
private string contributorLabelFormat;
private bool isDestroyed = false;
private void Awake()
{
addUserButton.onClick.AddListener(()=> OnSearchUserButtonPressed?.Invoke());
PoolView(userElementView);
contributorLabelFormat = labelContributor.text;
}
private void OnDestroy()
{
isDestroyed = true;
}
public void Dispose()
{
if (!isDestroyed)
{
Destroy(gameObject);
}
}
public void SetParent(Transform parent)
{
transform.SetParent(parent);
transform.ResetLocalTRS();
}
public void SetActive(bool active)
{
gameObject.SetActive(active);
}
public UsersSearchPromptView GetSearchPromptView()
{
return usersSearchPromptView;
}
public void SetEmptyList(bool isEmpty)
{
usersContainer.gameObject.SetActive(!isEmpty);
emptyListContainer.SetActive(isEmpty);
if (isEmpty)
{
foreach (UserElementView view in userElementViews.Values)
{
PoolView(view);
}
userElementViews.Clear();
}
}
public void SetContributorsCount(int count)
{
labelContributor.text = string.Format(contributorLabelFormat, count);
}
public UserElementView AddUser(string userId)
{
if (!userElementViews.TryGetValue(userId, out UserElementView view))
{
view = GetView();
view.SetUserName(userId);
view.SetUserId(userId);
view.SetAlwaysHighlighted(false);
view.SetIsAdded(true);
view.SetActive(true);
userElementViews.Add(userId, view);
}
bool isBlocked = UserProfile.GetOwnUserProfile().blocked.Contains(userId);
view.SetBlocked(isBlocked);
return view;
}
public bool RemoveUser(string userId)
{
if (!userElementViews.TryGetValue(userId, out UserElementView view))
{
return false;
}
userElementViews.Remove(userId);
PoolView(view);
return true;
}
void PoolView(UserElementView view)
{
view.SetActive(false);
userElementViewsPool.Enqueue(view);
}
UserElementView GetView()
{
UserElementView userView;
if (userElementViewsPool.Count > 0)
{
userView = userElementViewsPool.Dequeue();
}
else
{
userView = Instantiate(userElementView, usersContainer);
}
userView.ClearThumbnail();
return userView;
}
}
| 26.492424 | 119 | 0.642265 | [
"Apache-2.0"
] | Marguelgtz/explorer | unity-client/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BuilderProjectsPanel/Scripts/Views/MenuSections/SectionSceneContributorsSettingsView.cs | 3,499 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: EntityRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Linq.Expressions;
/// <summary>
/// The type LongRunningOperationRequest.
/// </summary>
public partial class LongRunningOperationRequest : BaseRequest, ILongRunningOperationRequest
{
/// <summary>
/// Constructs a new LongRunningOperationRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public LongRunningOperationRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
}
/// <summary>
/// Creates the specified LongRunningOperation using POST.
/// </summary>
/// <param name="longRunningOperationToCreate">The LongRunningOperation to create.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created LongRunningOperation.</returns>
public async System.Threading.Tasks.Task<LongRunningOperation> CreateAsync(LongRunningOperation longRunningOperationToCreate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.POST;
var newEntity = await this.SendAsync<LongRunningOperation>(longRunningOperationToCreate, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(newEntity);
return newEntity;
}
/// <summary>
/// Creates the specified LongRunningOperation using POST and returns a <see cref="GraphResponse{LongRunningOperation}"/> object.
/// </summary>
/// <param name="longRunningOperationToCreate">The LongRunningOperation to create.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{LongRunningOperation}"/> object of the request.</returns>
public System.Threading.Tasks.Task<GraphResponse<LongRunningOperation>> CreateResponseAsync(LongRunningOperation longRunningOperationToCreate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.POST;
return this.SendAsyncWithGraphResponse<LongRunningOperation>(longRunningOperationToCreate, cancellationToken);
}
/// <summary>
/// Deletes the specified LongRunningOperation.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await.</returns>
public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.DELETE;
await this.SendAsync<LongRunningOperation>(null, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Deletes the specified LongRunningOperation and returns a <see cref="GraphResponse"/> object.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task of <see cref="GraphResponse"/> to await.</returns>
public System.Threading.Tasks.Task<GraphResponse> DeleteResponseAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.DELETE;
return this.SendAsyncWithGraphResponse(null, cancellationToken);
}
/// <summary>
/// Gets the specified LongRunningOperation.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The LongRunningOperation.</returns>
public async System.Threading.Tasks.Task<LongRunningOperation> GetAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.GET;
var retrievedEntity = await this.SendAsync<LongRunningOperation>(null, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(retrievedEntity);
return retrievedEntity;
}
/// <summary>
/// Gets the specified LongRunningOperation and returns a <see cref="GraphResponse{LongRunningOperation}"/> object.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{LongRunningOperation}"/> object of the request.</returns>
public System.Threading.Tasks.Task<GraphResponse<LongRunningOperation>> GetResponseAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.GET;
return this.SendAsyncWithGraphResponse<LongRunningOperation>(null, cancellationToken);
}
/// <summary>
/// Updates the specified LongRunningOperation using PATCH.
/// </summary>
/// <param name="longRunningOperationToUpdate">The LongRunningOperation to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <exception cref="ClientException">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>
/// <returns>The updated LongRunningOperation.</returns>
public async System.Threading.Tasks.Task<LongRunningOperation> UpdateAsync(LongRunningOperation longRunningOperationToUpdate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.PATCH;
var updatedEntity = await this.SendAsync<LongRunningOperation>(longRunningOperationToUpdate, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(updatedEntity);
return updatedEntity;
}
/// <summary>
/// Updates the specified LongRunningOperation using PATCH and returns a <see cref="GraphResponse{LongRunningOperation}"/> object.
/// </summary>
/// <param name="longRunningOperationToUpdate">The LongRunningOperation to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <exception cref="ClientException">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>
/// <returns>The <see cref="GraphResponse{LongRunningOperation}"/> object of the request.</returns>
public System.Threading.Tasks.Task<GraphResponse<LongRunningOperation>> UpdateResponseAsync(LongRunningOperation longRunningOperationToUpdate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.PATCH;
return this.SendAsyncWithGraphResponse<LongRunningOperation>(longRunningOperationToUpdate, cancellationToken);
}
/// <summary>
/// Updates the specified LongRunningOperation using PUT.
/// </summary>
/// <param name="longRunningOperationToUpdate">The LongRunningOperation object to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await.</returns>
public async System.Threading.Tasks.Task<LongRunningOperation> PutAsync(LongRunningOperation longRunningOperationToUpdate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.PUT;
var updatedEntity = await this.SendAsync<LongRunningOperation>(longRunningOperationToUpdate, cancellationToken).ConfigureAwait(false);
this.InitializeCollectionProperties(updatedEntity);
return updatedEntity;
}
/// <summary>
/// Updates the specified LongRunningOperation using PUT and returns a <see cref="GraphResponse{LongRunningOperation}"/> object.
/// </summary>
/// <param name="longRunningOperationToUpdate">The LongRunningOperation object to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await of <see cref="GraphResponse{LongRunningOperation}"/>.</returns>
public System.Threading.Tasks.Task<GraphResponse<LongRunningOperation>> PutResponseAsync(LongRunningOperation longRunningOperationToUpdate, CancellationToken cancellationToken = default)
{
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
this.Method = HttpMethods.PUT;
return this.SendAsyncWithGraphResponse<LongRunningOperation>(longRunningOperationToUpdate, cancellationToken);
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public ILongRunningOperationRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="expandExpression">The expression from which to calculate the expand value.</param>
/// <returns>The request object to send.</returns>
public ILongRunningOperationRequest Expand(Expression<Func<LongRunningOperation, object>> expandExpression)
{
if (expandExpression == null)
{
throw new ArgumentNullException(nameof(expandExpression));
}
string error;
string value = ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
if (value == null)
{
throw new ArgumentException(error, nameof(expandExpression));
}
else
{
this.QueryOptions.Add(new QueryOption("$expand", value));
}
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public ILongRunningOperationRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="selectExpression">The expression from which to calculate the select value.</param>
/// <returns>The request object to send.</returns>
public ILongRunningOperationRequest Select(Expression<Func<LongRunningOperation, object>> selectExpression)
{
if (selectExpression == null)
{
throw new ArgumentNullException(nameof(selectExpression));
}
string error;
string value = ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
if (value == null)
{
throw new ArgumentException(error, nameof(selectExpression));
}
else
{
this.QueryOptions.Add(new QueryOption("$select", value));
}
return this;
}
/// <summary>
/// Initializes any collection properties after deserialization, like next requests for paging.
/// </summary>
/// <param name="longRunningOperationToInitialize">The <see cref="LongRunningOperation"/> with the collection properties to initialize.</param>
private void InitializeCollectionProperties(LongRunningOperation longRunningOperationToInitialize)
{
}
}
}
| 52.396 | 197 | 0.658982 | [
"MIT"
] | ScriptBox99/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Generated/requests/LongRunningOperationRequest.cs | 13,099 | C# |
namespace SFA.Apprenticeships.Application.Vacancies.Entities
{
using System.Collections.Generic;
using Domain.Entities.Vacancies.Apprenticeships;
using Domain.Entities.Vacancies.Traineeships;
public class VacancySummaries
{
public VacancySummaries(IEnumerable<ApprenticeshipSummary> apprenticeshipSummaries,
IEnumerable<TraineeshipSummary> traineeshipSummaries)
{
ApprenticeshipSummaries = apprenticeshipSummaries;
TraineeshipSummaries = traineeshipSummaries;
}
public IEnumerable<ApprenticeshipSummary> ApprenticeshipSummaries { get; private set; }
public IEnumerable<TraineeshipSummary> TraineeshipSummaries { get; private set; }
}
} | 36.95 | 95 | 0.741543 | [
"MIT"
] | BugsUK/FindApprenticeship | src/SFA.Apprenticeships.Application.Vacancies/Entities/VacancySummaries.cs | 741 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNextGen.DataFactory.V20180601.Outputs
{
[OutputType]
public sealed class CosmosDbSqlApiCollectionDatasetResponse
{
/// <summary>
/// List of tags that can be used for describing the Dataset.
/// </summary>
public readonly ImmutableArray<object> Annotations;
/// <summary>
/// CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string).
/// </summary>
public readonly object CollectionName;
/// <summary>
/// Dataset description.
/// </summary>
public readonly string? Description;
/// <summary>
/// The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
/// </summary>
public readonly Outputs.DatasetResponseFolder? Folder;
/// <summary>
/// Linked service reference.
/// </summary>
public readonly Outputs.LinkedServiceReferenceResponse LinkedServiceName;
/// <summary>
/// Parameters for dataset.
/// </summary>
public readonly ImmutableDictionary<string, Outputs.ParameterSpecificationResponse>? Parameters;
/// <summary>
/// Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
/// </summary>
public readonly object? Schema;
/// <summary>
/// Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
/// </summary>
public readonly object? Structure;
/// <summary>
/// Type of dataset.
/// Expected value is 'CosmosDbSqlApiCollection'.
/// </summary>
public readonly string Type;
[OutputConstructor]
private CosmosDbSqlApiCollectionDatasetResponse(
ImmutableArray<object> annotations,
object collectionName,
string? description,
Outputs.DatasetResponseFolder? folder,
Outputs.LinkedServiceReferenceResponse linkedServiceName,
ImmutableDictionary<string, Outputs.ParameterSpecificationResponse>? parameters,
object? schema,
object? structure,
string type)
{
Annotations = annotations;
CollectionName = collectionName;
Description = description;
Folder = folder;
LinkedServiceName = linkedServiceName;
Parameters = parameters;
Schema = schema;
Structure = structure;
Type = type;
}
}
}
| 35.046512 | 159 | 0.629064 | [
"Apache-2.0"
] | pulumi/pulumi-azure-nextgen | sdk/dotnet/DataFactory/V20180601/Outputs/CosmosDbSqlApiCollectionDatasetResponse.cs | 3,014 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Azure.Messaging.EventHubs.Consumer;
using Azure.Messaging.EventHubs.Core;
using Azure.Messaging.EventHubs.Errors;
using Moq;
using NUnit.Framework;
namespace Azure.Messaging.EventHubs.Tests
{
/// <summary>
/// The suite of tests for the <see cref="PartitionContext" />
/// class.
/// </summary>
///
[TestFixture]
public class PartitionContextTests
{
/// <summary>
/// Verifies functionality of the constructor.
/// </summary>
///
[Test]
[TestCase(null)]
[TestCase("")]
public void ConstructorValidatesThePartition(string value)
{
Assert.That(() => new PartitionContext(value), Throws.InstanceOf<ArgumentException>(), "The constructor with consumer should validate.");
Assert.That(() => new PartitionContext(value, Mock.Of<TransportConsumer>()), Throws.InstanceOf<ArgumentException>(), "The constructor with no consumer should validate.");
}
/// <summary>
/// Verifies functionality of the constructor.
/// </summary>
///
[Test]
public void ConstructorValidatesTheConsumer()
{
Assert.That(() => new PartitionContext("partition", null), Throws.ArgumentNullException);
}
/// <summary>
/// Verifies functionality of the <see cref="PartitionContext.ReadLastEnqueuedEventProperties" />
/// method.
/// </summary>
///
[Test]
public void ReadLastEnqueuedEventPropertiesDelegatesToTheConsumer()
{
var lastEvent = new EventData
(
eventBody: Array.Empty<byte>(),
lastPartitionSequenceNumber: 1234,
lastPartitionOffset: 42,
lastPartitionEnqueuedTime: DateTimeOffset.Parse("2015-10-27T00:00:00Z"),
lastPartitionPropertiesRetrievalTime: DateTimeOffset.Parse("2012-03-04T08:42Z")
);
var partitionId = "id-value";
var mockConsumer = new LastEventConsumerMock(lastEvent);
var context = new PartitionContext(partitionId, mockConsumer);
var information = context.ReadLastEnqueuedEventProperties();
Assert.That(information.SequenceNumber, Is.EqualTo(lastEvent.LastPartitionSequenceNumber), "The sequence number should match.");
Assert.That(information.Offset, Is.EqualTo(lastEvent.LastPartitionOffset), "The offset should match.");
Assert.That(information.EnqueuedTime, Is.EqualTo(lastEvent.LastPartitionEnqueuedTime), "The last enqueue time should match.");
Assert.That(information.LastReceivedTime, Is.EqualTo(lastEvent.LastPartitionPropertiesRetrievalTime), "The retrieval time should match.");
Assert.That(mockConsumer.IsClosed, Is.False, "The consumer should not have been closed or disposed of.");
}
/// <summary>
/// Verifies functionality of the <see cref="PartitionContext.ReadLastEnqueuedEventProperties" />
/// method.
/// </summary>
///
[Test]
public async Task TheConsumerIsNotKeptAlive()
{
var partitionId = "id-value";
var mockConsumer = new LastEventConsumerMock(new EventData(Array.Empty<byte>()));
var context = new PartitionContext(partitionId, mockConsumer);
// Attempt to clear out the consumer and force GC.
mockConsumer = null;
// Because cleanup may be non-deterministic, allow a small set of
// retries.
var attempts = 0;
var maxAttempts = 5;
while (attempts <= maxAttempts)
{
await Task.Delay(TimeSpan.FromSeconds(1));
GC.Collect();
GC.WaitForPendingFinalizers();
try
{
Assert.That(() => context.ReadLastEnqueuedEventProperties(), Throws.TypeOf<EventHubsClientClosedException>());
}
catch (AssertionException)
{
if (++attempts <= maxAttempts)
{
continue;
}
throw;
}
// If things have gotten here, the test passes.
break;
}
}
/// <summary>
/// Allows for setting the last received event by the consumer
/// for testing purposes.
/// </summary>
///
private class LastEventConsumerMock : TransportConsumer
{
public LastEventConsumerMock(EventData lastEvent)
{
LastReceivedEvent = lastEvent;
}
public override Task<IEnumerable<EventData>> ReceiveAsync(int maximumMessageCount, TimeSpan? maximumWaitTime, CancellationToken cancellationToken) => throw new NotImplementedException();
public override Task CloseAsync(CancellationToken cancellationToken) => throw new NotImplementedException();
}
}
}
| 37.394366 | 198 | 0.600188 | [
"MIT"
] | zhya-msft/azure-sdk-for-net | sdk/eventhub/Azure.Messaging.EventHubs/tests/Consumer/PartitionContextTests.cs | 5,312 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace RealPosi
{
class Logger
{
static public void WriteLog_text(string text)
{
string strFilePath = "log.txt";
//FileStream fs = new FileStream(strFilePath, FileMode.Append);
FileStream fs = new FileStream(strFilePath, FileMode.Append, FileAccess.Write, FileShare.Write);
StreamWriter streamWriter = new StreamWriter(fs);
streamWriter.BaseStream.Seek(0, SeekOrigin.End);
streamWriter.WriteLine(DateTime.Now.ToString("yyyy'-'MM'-'dd' 'HH':'mm':'ss.ff") + ":" + text);
streamWriter.Flush();
streamWriter.Close();
Console.WriteLine(DateTime.Now.ToString("yyyy'-'MM'-'dd' 'HH':'mm':'ss.fff") + ":" + text);
}
}
}
| 33.111111 | 108 | 0.624161 | [
"Unlicense"
] | yohuooo/RealPosi | RealPosi/Logger.cs | 900 | C# |
using System;
using System.Threading.Tasks;
namespace XboxOneController
{
public interface IXboxController
{
/// <summary>
/// Turns the XBOX on
/// </summary>
/// <returns>A task that awaits the completion of the on command</returns>
/// <remarks>This command is prone to failing (not sure why), so it is retried internally a few times</remarks>
Task TurnOn();
/// <summary>
/// Turns the XBOX off
/// </summary>
/// <returns>A task that awaits the completion of the on command</returns>
/// <remarks>This command is not yet implemented</remarks>
Task TurnOff();
/// <summary>
/// Checks if the XBOX is on
/// </summary>
/// <returns>A task that awaits the completion of the ping command</returns>
/// <remarks>Throws a timeout exception if the XBOX is off</remarks>
Task Ping();
}
}
| 31.5 | 119 | 0.591534 | [
"MIT"
] | Nolan-Ramsden/XboxOneController | XboxOneController/IXboxController.cs | 947 | C# |
namespace eidss.winclient.BasicSyndromicSurveillance
{
sealed partial class BasicSyndromicSurveillanceItemDetail
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BasicSyndromicSurveillanceItemDetail));
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject13 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject14 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject15 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject16 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject17 = new DevExpress.Utils.SerializableAppearanceObject();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject18 = new DevExpress.Utils.SerializableAppearanceObject();
this.remoteSqlConnection1 = new bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection();
this.remoteSqlConnection2 = new bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection();
this.remoteSqlConnection3 = new bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection();
this.txtFormID = new DevExpress.XtraEditors.TextEdit();
this.lblFormID = new DevExpress.XtraEditors.LabelControl();
this.lblNotification = new DevExpress.XtraEditors.LabelControl();
this.lblDateEntered = new DevExpress.XtraEditors.LabelControl();
this.lblDateLastSaved = new DevExpress.XtraEditors.LabelControl();
this.txtCreatedBy = new DevExpress.XtraEditors.TextEdit();
this.lblCreatedBy = new DevExpress.XtraEditors.LabelControl();
this.txtSite = new DevExpress.XtraEditors.TextEdit();
this.lblSite = new DevExpress.XtraEditors.LabelControl();
this.leNotification = new DevExpress.XtraEditors.LookUpEdit();
this.leHospital = new DevExpress.XtraEditors.LookUpEdit();
this.lblHospital = new DevExpress.XtraEditors.LabelControl();
this.dtReportDate = new DevExpress.XtraEditors.DateEdit();
this.lblReportDate = new DevExpress.XtraEditors.LabelControl();
this.panelPatientInfo = new DevExpress.XtraEditors.PanelControl();
this.beLastName = new DevExpress.XtraEditors.ButtonEdit();
this.patientAddress = new eidss.winclient.Location.AddressDetail();
this.txtPersonalID = new DevExpress.XtraEditors.TextEdit();
this.txtPhoneNumber = new DevExpress.XtraEditors.TextEdit();
this.leSex = new DevExpress.XtraEditors.LookUpEdit();
this.txtAgeMonths = new DevExpress.XtraEditors.SpinEdit();
this.txtAgeYears = new DevExpress.XtraEditors.SpinEdit();
this.dtDateOfBirth = new DevExpress.XtraEditors.DateEdit();
this.txtMiddleName = new DevExpress.XtraEditors.TextEdit();
this.txtFirstName = new DevExpress.XtraEditors.TextEdit();
this.lblPersonalID = new DevExpress.XtraEditors.LabelControl();
this.lblPhoneNumber = new DevExpress.XtraEditors.LabelControl();
this.lblSex = new DevExpress.XtraEditors.LabelControl();
this.lblMonths = new DevExpress.XtraEditors.LabelControl();
this.lblYears = new DevExpress.XtraEditors.LabelControl();
this.lblAge = new DevExpress.XtraEditors.LabelControl();
this.lblDateOfBirth = new DevExpress.XtraEditors.LabelControl();
this.lblMiddleName = new DevExpress.XtraEditors.LabelControl();
this.lblFirstName = new DevExpress.XtraEditors.LabelControl();
this.lblLastName = new DevExpress.XtraEditors.LabelControl();
this.panelClinicalSigns = new DevExpress.XtraEditors.PanelControl();
this.cbUnknownEtiology = new DevExpress.XtraEditors.CheckEdit();
this.cbImmuno = new DevExpress.XtraEditors.CheckEdit();
this.cbNeuro = new DevExpress.XtraEditors.CheckEdit();
this.cbLiver = new DevExpress.XtraEditors.CheckEdit();
this.cbRenal = new DevExpress.XtraEditors.CheckEdit();
this.cbObesity = new DevExpress.XtraEditors.CheckEdit();
this.cbCardiovascular = new DevExpress.XtraEditors.CheckEdit();
this.cbDiabetes = new DevExpress.XtraEditors.CheckEdit();
this.cbAsthma = new DevExpress.XtraEditors.CheckEdit();
this.cbRespiratorySystem = new DevExpress.XtraEditors.CheckEdit();
this.lblConcurent = new DevExpress.XtraEditors.LabelControl();
this.dtDateReceived = new DevExpress.XtraEditors.DateEdit();
this.lblDateReceived = new DevExpress.XtraEditors.LabelControl();
this.leOutcome = new DevExpress.XtraEditors.LookUpEdit();
this.lblOutcome = new DevExpress.XtraEditors.LabelControl();
this.leTreatment = new DevExpress.XtraEditors.LookUpEdit();
this.lblTreatment = new DevExpress.XtraEditors.LabelControl();
this.lePatientWasHospitalized = new DevExpress.XtraEditors.LookUpEdit();
this.lblPatientWasHospitalized = new DevExpress.XtraEditors.LabelControl();
this.lblNameOfMedication = new DevExpress.XtraEditors.LabelControl();
this.txtNameOfMedication = new DevExpress.XtraEditors.TextEdit();
this.leAntiviral = new DevExpress.XtraEditors.LookUpEdit();
this.lblAntiviral = new DevExpress.XtraEditors.LabelControl();
this.lePatientER = new DevExpress.XtraEditors.LookUpEdit();
this.lblPatientER = new DevExpress.XtraEditors.LabelControl();
this.dtDateOfCare = new DevExpress.XtraEditors.DateEdit();
this.lblDateOfCare = new DevExpress.XtraEditors.LabelControl();
this.lblOther = new DevExpress.XtraEditors.LabelControl();
this.txtOtherMethod = new DevExpress.XtraEditors.TextEdit();
this.leSeasonalFluVaccine = new DevExpress.XtraEditors.LookUpEdit();
this.lblSeasonalFluVaccine = new DevExpress.XtraEditors.LabelControl();
this.leShortnessBreath = new DevExpress.XtraEditors.LookUpEdit();
this.lblShortnessBreath = new DevExpress.XtraEditors.LabelControl();
this.leMethodMeasurement = new DevExpress.XtraEditors.LookUpEdit();
this.lblMethodMeasurement = new DevExpress.XtraEditors.LabelControl();
this.leCough = new DevExpress.XtraEditors.LookUpEdit();
this.lblCough = new DevExpress.XtraEditors.LabelControl();
this.leFever = new DevExpress.XtraEditors.LookUpEdit();
this.lblFever = new DevExpress.XtraEditors.LabelControl();
this.dtDateOfSymptomsOnset = new DevExpress.XtraEditors.DateEdit();
this.lblDateOfSymptomsOnset = new DevExpress.XtraEditors.LabelControl();
this.lePostpartum = new DevExpress.XtraEditors.LookUpEdit();
this.lblPostpartum = new DevExpress.XtraEditors.LabelControl();
this.lePregnant = new DevExpress.XtraEditors.LookUpEdit();
this.lblPregnant = new DevExpress.XtraEditors.LabelControl();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.leTestResult = new DevExpress.XtraEditors.LookUpEdit();
this.txtSampleID = new DevExpress.XtraEditors.TextEdit();
this.dtResultDate = new DevExpress.XtraEditors.DateEdit();
this.lblResultDate = new DevExpress.XtraEditors.LabelControl();
this.dtSampleCollectionDate = new DevExpress.XtraEditors.DateEdit();
this.lblTestResult = new DevExpress.XtraEditors.LabelControl();
this.lblSampleID = new DevExpress.XtraEditors.LabelControl();
this.lblSampleCollectionDate = new DevExpress.XtraEditors.LabelControl();
this.bppLocation = new eidss.winclient.Location.LocationLookup();
this.txtDateEntered = new DevExpress.XtraEditors.TextEdit();
this.txtDateLastSaved = new DevExpress.XtraEditors.TextEdit();
((System.ComponentModel.ISupportInitialize)(this.txtFormID.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtCreatedBy.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtSite.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leNotification.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leHospital.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtReportDate.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtReportDate.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelPatientInfo)).BeginInit();
this.panelPatientInfo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.beLastName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPersonalID.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPhoneNumber.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leSex.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtAgeMonths.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtAgeYears.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfBirth.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfBirth.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtMiddleName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtFirstName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelClinicalSigns)).BeginInit();
this.panelClinicalSigns.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbUnknownEtiology.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbImmuno.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbNeuro.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbLiver.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbRenal.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbObesity.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbCardiovascular.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbDiabetes.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbAsthma.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbRespiratorySystem.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateReceived.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateReceived.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leOutcome.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leTreatment.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lePatientWasHospitalized.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtNameOfMedication.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leAntiviral.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lePatientER.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfCare.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfCare.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtOtherMethod.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leSeasonalFluVaccine.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leShortnessBreath.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leMethodMeasurement.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leCough.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.leFever.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfSymptomsOnset.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfSymptomsOnset.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lePostpartum.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lePregnant.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.leTestResult.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtSampleID.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtResultDate.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtResultDate.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtSampleCollectionDate.Properties.CalendarTimeProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtSampleCollectionDate.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bppLocation.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtDateEntered.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtDateLastSaved.Properties)).BeginInit();
this.SuspendLayout();
bv.common.Resources.BvResourceManagerChanger.GetResourceManager(typeof(BasicSyndromicSurveillanceItemDetail), out resources);
// Form Is Localizable: True
//
// remoteSqlConnection1
//
this.remoteSqlConnection1.ConnectionString = null;
//
// remoteSqlConnection2
//
this.remoteSqlConnection2.ConnectionString = null;
//
// remoteSqlConnection3
//
this.remoteSqlConnection3.ConnectionString = null;
//
// txtFormID
//
resources.ApplyResources(this.txtFormID, "txtFormID");
this.txtFormID.Name = "txtFormID";
//
// lblFormID
//
this.lblFormID.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblFormID.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblFormID, "lblFormID");
this.lblFormID.Name = "lblFormID";
//
// lblNotification
//
this.lblNotification.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblNotification.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblNotification, "lblNotification");
this.lblNotification.Name = "lblNotification";
//
// lblDateEntered
//
this.lblDateEntered.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateEntered.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateEntered, "lblDateEntered");
this.lblDateEntered.Name = "lblDateEntered";
//
// lblDateLastSaved
//
this.lblDateLastSaved.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateLastSaved.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateLastSaved, "lblDateLastSaved");
this.lblDateLastSaved.Name = "lblDateLastSaved";
//
// txtCreatedBy
//
resources.ApplyResources(this.txtCreatedBy, "txtCreatedBy");
this.txtCreatedBy.Name = "txtCreatedBy";
//
// lblCreatedBy
//
this.lblCreatedBy.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblCreatedBy.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblCreatedBy, "lblCreatedBy");
this.lblCreatedBy.Name = "lblCreatedBy";
//
// txtSite
//
resources.ApplyResources(this.txtSite, "txtSite");
this.txtSite.Name = "txtSite";
//
// lblSite
//
this.lblSite.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblSite.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblSite, "lblSite");
this.lblSite.Name = "lblSite";
//
// leNotification
//
resources.ApplyResources(this.leNotification, "leNotification");
this.leNotification.Name = "leNotification";
this.leNotification.Properties.Appearance.Options.UseFont = true;
this.leNotification.Properties.AppearanceDisabled.Options.UseFont = true;
this.leNotification.Properties.AppearanceDropDown.Options.UseFont = true;
this.leNotification.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leNotification.Properties.AppearanceFocused.Options.UseFont = true;
this.leNotification.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject1.Options.UseFont = true;
this.leNotification.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leNotification.Properties.Buttons"))), resources.GetString("leNotification.Properties.Buttons1"), ((int)(resources.GetObject("leNotification.Properties.Buttons2"))), ((bool)(resources.GetObject("leNotification.Properties.Buttons3"))), ((bool)(resources.GetObject("leNotification.Properties.Buttons4"))), ((bool)(resources.GetObject("leNotification.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leNotification.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leNotification.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, resources.GetString("leNotification.Properties.Buttons8"), ((object)(resources.GetObject("leNotification.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leNotification.Properties.Buttons10"))), ((bool)(resources.GetObject("leNotification.Properties.Buttons11"))))});
this.leNotification.Properties.NullText = resources.GetString("leNotification.Properties.NullText");
this.leNotification.EditValueChanged += new System.EventHandler(this.OnLeNotificationEditValueChanged);
//
// leHospital
//
resources.ApplyResources(this.leHospital, "leHospital");
this.leHospital.Name = "leHospital";
this.leHospital.Properties.Appearance.Options.UseFont = true;
this.leHospital.Properties.AppearanceDisabled.Options.UseFont = true;
this.leHospital.Properties.AppearanceDropDown.Options.UseFont = true;
this.leHospital.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leHospital.Properties.AppearanceFocused.Options.UseFont = true;
this.leHospital.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject2.Options.UseFont = true;
this.leHospital.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leHospital.Properties.Buttons"))), resources.GetString("leHospital.Properties.Buttons1"), ((int)(resources.GetObject("leHospital.Properties.Buttons2"))), ((bool)(resources.GetObject("leHospital.Properties.Buttons3"))), ((bool)(resources.GetObject("leHospital.Properties.Buttons4"))), ((bool)(resources.GetObject("leHospital.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leHospital.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leHospital.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject2, resources.GetString("leHospital.Properties.Buttons8"), ((object)(resources.GetObject("leHospital.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leHospital.Properties.Buttons10"))), ((bool)(resources.GetObject("leHospital.Properties.Buttons11"))))});
this.leHospital.Properties.NullText = resources.GetString("leHospital.Properties.NullText");
//
// lblHospital
//
this.lblHospital.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblHospital.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblHospital, "lblHospital");
this.lblHospital.Name = "lblHospital";
//
// dtReportDate
//
resources.ApplyResources(this.dtReportDate, "dtReportDate");
this.dtReportDate.Name = "dtReportDate";
this.dtReportDate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtReportDate.Properties.Buttons"))))});
this.dtReportDate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblReportDate
//
this.lblReportDate.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblReportDate.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblReportDate, "lblReportDate");
this.lblReportDate.Name = "lblReportDate";
//
// panelPatientInfo
//
this.panelPatientInfo.Controls.Add(this.beLastName);
this.panelPatientInfo.Controls.Add(this.patientAddress);
this.panelPatientInfo.Controls.Add(this.txtPersonalID);
this.panelPatientInfo.Controls.Add(this.txtPhoneNumber);
this.panelPatientInfo.Controls.Add(this.leSex);
this.panelPatientInfo.Controls.Add(this.txtAgeMonths);
this.panelPatientInfo.Controls.Add(this.txtAgeYears);
this.panelPatientInfo.Controls.Add(this.dtDateOfBirth);
this.panelPatientInfo.Controls.Add(this.txtMiddleName);
this.panelPatientInfo.Controls.Add(this.txtFirstName);
this.panelPatientInfo.Controls.Add(this.lblPersonalID);
this.panelPatientInfo.Controls.Add(this.lblPhoneNumber);
this.panelPatientInfo.Controls.Add(this.lblSex);
this.panelPatientInfo.Controls.Add(this.lblMonths);
this.panelPatientInfo.Controls.Add(this.lblYears);
this.panelPatientInfo.Controls.Add(this.lblAge);
this.panelPatientInfo.Controls.Add(this.lblDateOfBirth);
this.panelPatientInfo.Controls.Add(this.lblMiddleName);
this.panelPatientInfo.Controls.Add(this.lblFirstName);
this.panelPatientInfo.Controls.Add(this.lblLastName);
resources.ApplyResources(this.panelPatientInfo, "panelPatientInfo");
this.panelPatientInfo.Name = "panelPatientInfo";
//
// beLastName
//
resources.ApplyResources(this.beLastName, "beLastName");
this.beLastName.Name = "beLastName";
this.beLastName.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("beLastName.Properties.Buttons"))), resources.GetString("beLastName.Properties.Buttons1"), ((int)(resources.GetObject("beLastName.Properties.Buttons2"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons3"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons4"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("beLastName.Properties.Buttons6"))), global::eidss.winclient.Properties.Resources.Browse5, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject3, resources.GetString("beLastName.Properties.Buttons7"), ((object)(resources.GetObject("beLastName.Properties.Buttons8"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("beLastName.Properties.Buttons9"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons10")))),
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("beLastName.Properties.Buttons11"))), resources.GetString("beLastName.Properties.Buttons12"), ((int)(resources.GetObject("beLastName.Properties.Buttons13"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons14"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons15"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons16"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("beLastName.Properties.Buttons17"))), ((System.Drawing.Image)(resources.GetObject("beLastName.Properties.Buttons18"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject4, resources.GetString("beLastName.Properties.Buttons19"), resources.GetString("beLastName.Properties.Buttons20"), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("beLastName.Properties.Buttons21"))), ((bool)(resources.GetObject("beLastName.Properties.Buttons22"))))});
this.beLastName.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.OnBeLastNameButtonClick);
//
// patientAddress
//
this.patientAddress.AutoSizeControls = false;
resources.ApplyResources(this.patientAddress, "patientAddress");
this.patientAddress.CaptionWidth = 80;
this.patientAddress.ColumnCount = 3;
this.patientAddress.FormID = "";
this.patientAddress.HelpTopicID = "";
this.patientAddress.Icon = null;
this.patientAddress.LabelAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.patientAddress.Name = "patientAddress";
this.patientAddress.ShowCountry = false;
this.patientAddress.Sizable = false;
//
// txtPersonalID
//
resources.ApplyResources(this.txtPersonalID, "txtPersonalID");
this.txtPersonalID.Name = "txtPersonalID";
//
// txtPhoneNumber
//
resources.ApplyResources(this.txtPhoneNumber, "txtPhoneNumber");
this.txtPhoneNumber.Name = "txtPhoneNumber";
//
// leSex
//
resources.ApplyResources(this.leSex, "leSex");
this.leSex.Name = "leSex";
this.leSex.Properties.Appearance.Options.UseFont = true;
this.leSex.Properties.AppearanceDisabled.Options.UseFont = true;
this.leSex.Properties.AppearanceDropDown.Options.UseFont = true;
this.leSex.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leSex.Properties.AppearanceFocused.Options.UseFont = true;
this.leSex.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject5.Options.UseFont = true;
this.leSex.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leSex.Properties.Buttons"))), resources.GetString("leSex.Properties.Buttons1"), ((int)(resources.GetObject("leSex.Properties.Buttons2"))), ((bool)(resources.GetObject("leSex.Properties.Buttons3"))), ((bool)(resources.GetObject("leSex.Properties.Buttons4"))), ((bool)(resources.GetObject("leSex.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leSex.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leSex.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, resources.GetString("leSex.Properties.Buttons8"), ((object)(resources.GetObject("leSex.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leSex.Properties.Buttons10"))), ((bool)(resources.GetObject("leSex.Properties.Buttons11"))))});
this.leSex.Properties.NullText = resources.GetString("leSex.Properties.NullText");
//
// txtAgeMonths
//
resources.ApplyResources(this.txtAgeMonths, "txtAgeMonths");
this.txtAgeMonths.Name = "txtAgeMonths";
this.txtAgeMonths.Properties.Mask.EditMask = resources.GetString("txtAgeMonths.Properties.Mask.EditMask");
//
// txtAgeYears
//
resources.ApplyResources(this.txtAgeYears, "txtAgeYears");
this.txtAgeYears.Name = "txtAgeYears";
this.txtAgeYears.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
this.txtAgeYears.Properties.IsFloatValue = false;
this.txtAgeYears.Properties.Mask.EditMask = resources.GetString("txtAgeYears.Properties.Mask.EditMask");
//
// dtDateOfBirth
//
resources.ApplyResources(this.dtDateOfBirth, "dtDateOfBirth");
this.dtDateOfBirth.Name = "dtDateOfBirth";
this.dtDateOfBirth.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtDateOfBirth.Properties.Buttons"))))});
this.dtDateOfBirth.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// txtMiddleName
//
resources.ApplyResources(this.txtMiddleName, "txtMiddleName");
this.txtMiddleName.Name = "txtMiddleName";
//
// txtFirstName
//
resources.ApplyResources(this.txtFirstName, "txtFirstName");
this.txtFirstName.Name = "txtFirstName";
//
// lblPersonalID
//
this.lblPersonalID.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPersonalID.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPersonalID, "lblPersonalID");
this.lblPersonalID.Name = "lblPersonalID";
//
// lblPhoneNumber
//
this.lblPhoneNumber.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPhoneNumber.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPhoneNumber, "lblPhoneNumber");
this.lblPhoneNumber.Name = "lblPhoneNumber";
//
// lblSex
//
this.lblSex.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblSex.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblSex, "lblSex");
this.lblSex.Name = "lblSex";
//
// lblMonths
//
this.lblMonths.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblMonths.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblMonths, "lblMonths");
this.lblMonths.Name = "lblMonths";
//
// lblYears
//
this.lblYears.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblYears.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblYears, "lblYears");
this.lblYears.Name = "lblYears";
//
// lblAge
//
this.lblAge.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblAge.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblAge, "lblAge");
this.lblAge.Name = "lblAge";
//
// lblDateOfBirth
//
this.lblDateOfBirth.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateOfBirth.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateOfBirth, "lblDateOfBirth");
this.lblDateOfBirth.Name = "lblDateOfBirth";
//
// lblMiddleName
//
this.lblMiddleName.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblMiddleName.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblMiddleName, "lblMiddleName");
this.lblMiddleName.Name = "lblMiddleName";
//
// lblFirstName
//
this.lblFirstName.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblFirstName.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblFirstName, "lblFirstName");
this.lblFirstName.Name = "lblFirstName";
//
// lblLastName
//
this.lblLastName.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblLastName.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblLastName, "lblLastName");
this.lblLastName.Name = "lblLastName";
//
// panelClinicalSigns
//
this.panelClinicalSigns.Controls.Add(this.cbUnknownEtiology);
this.panelClinicalSigns.Controls.Add(this.cbImmuno);
this.panelClinicalSigns.Controls.Add(this.cbNeuro);
this.panelClinicalSigns.Controls.Add(this.cbLiver);
this.panelClinicalSigns.Controls.Add(this.cbRenal);
this.panelClinicalSigns.Controls.Add(this.cbObesity);
this.panelClinicalSigns.Controls.Add(this.cbCardiovascular);
this.panelClinicalSigns.Controls.Add(this.cbDiabetes);
this.panelClinicalSigns.Controls.Add(this.cbAsthma);
this.panelClinicalSigns.Controls.Add(this.cbRespiratorySystem);
this.panelClinicalSigns.Controls.Add(this.lblConcurent);
this.panelClinicalSigns.Controls.Add(this.dtDateReceived);
this.panelClinicalSigns.Controls.Add(this.lblDateReceived);
this.panelClinicalSigns.Controls.Add(this.leOutcome);
this.panelClinicalSigns.Controls.Add(this.lblOutcome);
this.panelClinicalSigns.Controls.Add(this.leTreatment);
this.panelClinicalSigns.Controls.Add(this.lblTreatment);
this.panelClinicalSigns.Controls.Add(this.lePatientWasHospitalized);
this.panelClinicalSigns.Controls.Add(this.lblPatientWasHospitalized);
this.panelClinicalSigns.Controls.Add(this.lblNameOfMedication);
this.panelClinicalSigns.Controls.Add(this.txtNameOfMedication);
this.panelClinicalSigns.Controls.Add(this.leAntiviral);
this.panelClinicalSigns.Controls.Add(this.lblAntiviral);
this.panelClinicalSigns.Controls.Add(this.lePatientER);
this.panelClinicalSigns.Controls.Add(this.lblPatientER);
this.panelClinicalSigns.Controls.Add(this.dtDateOfCare);
this.panelClinicalSigns.Controls.Add(this.lblDateOfCare);
this.panelClinicalSigns.Controls.Add(this.lblOther);
this.panelClinicalSigns.Controls.Add(this.txtOtherMethod);
this.panelClinicalSigns.Controls.Add(this.leSeasonalFluVaccine);
this.panelClinicalSigns.Controls.Add(this.lblSeasonalFluVaccine);
this.panelClinicalSigns.Controls.Add(this.leShortnessBreath);
this.panelClinicalSigns.Controls.Add(this.lblShortnessBreath);
this.panelClinicalSigns.Controls.Add(this.leMethodMeasurement);
this.panelClinicalSigns.Controls.Add(this.lblMethodMeasurement);
this.panelClinicalSigns.Controls.Add(this.leCough);
this.panelClinicalSigns.Controls.Add(this.lblCough);
this.panelClinicalSigns.Controls.Add(this.leFever);
this.panelClinicalSigns.Controls.Add(this.lblFever);
this.panelClinicalSigns.Controls.Add(this.dtDateOfSymptomsOnset);
this.panelClinicalSigns.Controls.Add(this.lblDateOfSymptomsOnset);
this.panelClinicalSigns.Controls.Add(this.lePostpartum);
this.panelClinicalSigns.Controls.Add(this.lblPostpartum);
this.panelClinicalSigns.Controls.Add(this.lePregnant);
this.panelClinicalSigns.Controls.Add(this.lblPregnant);
resources.ApplyResources(this.panelClinicalSigns, "panelClinicalSigns");
this.panelClinicalSigns.Name = "panelClinicalSigns";
//
// cbUnknownEtiology
//
resources.ApplyResources(this.cbUnknownEtiology, "cbUnknownEtiology");
this.cbUnknownEtiology.Name = "cbUnknownEtiology";
this.cbUnknownEtiology.Properties.Appearance.Options.UseTextOptions = true;
this.cbUnknownEtiology.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbUnknownEtiology.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbUnknownEtiology.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbUnknownEtiology.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbUnknownEtiology.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbUnknownEtiology.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbUnknownEtiology.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbUnknownEtiology.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbUnknownEtiology.Properties.AutoHeight = ((bool)(resources.GetObject("cbUnknownEtiology.Properties.AutoHeight")));
this.cbUnknownEtiology.Properties.Caption = resources.GetString("cbUnknownEtiology.Properties.Caption");
//
// cbImmuno
//
resources.ApplyResources(this.cbImmuno, "cbImmuno");
this.cbImmuno.Name = "cbImmuno";
this.cbImmuno.Properties.Appearance.Options.UseTextOptions = true;
this.cbImmuno.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbImmuno.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbImmuno.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbImmuno.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbImmuno.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbImmuno.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbImmuno.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbImmuno.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbImmuno.Properties.AutoHeight = ((bool)(resources.GetObject("cbImmuno.Properties.AutoHeight")));
this.cbImmuno.Properties.Caption = resources.GetString("cbImmuno.Properties.Caption");
//
// cbNeuro
//
resources.ApplyResources(this.cbNeuro, "cbNeuro");
this.cbNeuro.Name = "cbNeuro";
this.cbNeuro.Properties.Appearance.Options.UseTextOptions = true;
this.cbNeuro.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbNeuro.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbNeuro.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbNeuro.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbNeuro.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbNeuro.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbNeuro.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbNeuro.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbNeuro.Properties.AutoHeight = ((bool)(resources.GetObject("cbNeuro.Properties.AutoHeight")));
this.cbNeuro.Properties.Caption = resources.GetString("cbNeuro.Properties.Caption");
//
// cbLiver
//
resources.ApplyResources(this.cbLiver, "cbLiver");
this.cbLiver.Name = "cbLiver";
this.cbLiver.Properties.Appearance.Options.UseTextOptions = true;
this.cbLiver.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbLiver.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbLiver.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbLiver.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbLiver.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbLiver.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbLiver.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbLiver.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbLiver.Properties.AutoHeight = ((bool)(resources.GetObject("cbLiver.Properties.AutoHeight")));
this.cbLiver.Properties.Caption = resources.GetString("cbLiver.Properties.Caption");
//
// cbRenal
//
resources.ApplyResources(this.cbRenal, "cbRenal");
this.cbRenal.Name = "cbRenal";
this.cbRenal.Properties.Appearance.Options.UseTextOptions = true;
this.cbRenal.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbRenal.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRenal.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbRenal.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRenal.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbRenal.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRenal.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbRenal.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRenal.Properties.AutoHeight = ((bool)(resources.GetObject("cbRenal.Properties.AutoHeight")));
this.cbRenal.Properties.Caption = resources.GetString("cbRenal.Properties.Caption");
//
// cbObesity
//
resources.ApplyResources(this.cbObesity, "cbObesity");
this.cbObesity.Name = "cbObesity";
this.cbObesity.Properties.Appearance.Options.UseTextOptions = true;
this.cbObesity.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbObesity.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbObesity.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbObesity.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbObesity.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbObesity.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbObesity.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbObesity.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbObesity.Properties.AutoHeight = ((bool)(resources.GetObject("cbObesity.Properties.AutoHeight")));
this.cbObesity.Properties.Caption = resources.GetString("cbObesity.Properties.Caption");
//
// cbCardiovascular
//
resources.ApplyResources(this.cbCardiovascular, "cbCardiovascular");
this.cbCardiovascular.Name = "cbCardiovascular";
this.cbCardiovascular.Properties.Appearance.Options.UseTextOptions = true;
this.cbCardiovascular.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbCardiovascular.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbCardiovascular.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbCardiovascular.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbCardiovascular.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbCardiovascular.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbCardiovascular.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbCardiovascular.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbCardiovascular.Properties.AutoHeight = ((bool)(resources.GetObject("cbCardiovascular.Properties.AutoHeight")));
this.cbCardiovascular.Properties.Caption = resources.GetString("cbCardiovascular.Properties.Caption");
//
// cbDiabetes
//
resources.ApplyResources(this.cbDiabetes, "cbDiabetes");
this.cbDiabetes.Name = "cbDiabetes";
this.cbDiabetes.Properties.Appearance.Options.UseTextOptions = true;
this.cbDiabetes.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbDiabetes.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbDiabetes.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbDiabetes.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbDiabetes.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbDiabetes.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbDiabetes.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbDiabetes.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbDiabetes.Properties.AutoHeight = ((bool)(resources.GetObject("cbDiabetes.Properties.AutoHeight")));
this.cbDiabetes.Properties.Caption = resources.GetString("cbDiabetes.Properties.Caption");
//
// cbAsthma
//
resources.ApplyResources(this.cbAsthma, "cbAsthma");
this.cbAsthma.Name = "cbAsthma";
this.cbAsthma.Properties.Appearance.Options.UseTextOptions = true;
this.cbAsthma.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbAsthma.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbAsthma.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbAsthma.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbAsthma.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbAsthma.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbAsthma.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbAsthma.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbAsthma.Properties.AutoHeight = ((bool)(resources.GetObject("cbAsthma.Properties.AutoHeight")));
this.cbAsthma.Properties.Caption = resources.GetString("cbAsthma.Properties.Caption");
//
// cbRespiratorySystem
//
resources.ApplyResources(this.cbRespiratorySystem, "cbRespiratorySystem");
this.cbRespiratorySystem.Name = "cbRespiratorySystem";
this.cbRespiratorySystem.Properties.Appearance.Options.UseTextOptions = true;
this.cbRespiratorySystem.Properties.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.cbRespiratorySystem.Properties.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRespiratorySystem.Properties.AppearanceDisabled.Options.UseTextOptions = true;
this.cbRespiratorySystem.Properties.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRespiratorySystem.Properties.AppearanceFocused.Options.UseTextOptions = true;
this.cbRespiratorySystem.Properties.AppearanceFocused.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRespiratorySystem.Properties.AppearanceReadOnly.Options.UseTextOptions = true;
this.cbRespiratorySystem.Properties.AppearanceReadOnly.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.cbRespiratorySystem.Properties.AutoHeight = ((bool)(resources.GetObject("cbRespiratorySystem.Properties.AutoHeight")));
this.cbRespiratorySystem.Properties.Caption = resources.GetString("cbRespiratorySystem.Properties.Caption");
//
// lblConcurent
//
this.lblConcurent.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblConcurent.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblConcurent, "lblConcurent");
this.lblConcurent.Name = "lblConcurent";
//
// dtDateReceived
//
resources.ApplyResources(this.dtDateReceived, "dtDateReceived");
this.dtDateReceived.Name = "dtDateReceived";
this.dtDateReceived.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtDateReceived.Properties.Buttons"))))});
this.dtDateReceived.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblDateReceived
//
this.lblDateReceived.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateReceived.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateReceived, "lblDateReceived");
this.lblDateReceived.Name = "lblDateReceived";
//
// leOutcome
//
resources.ApplyResources(this.leOutcome, "leOutcome");
this.leOutcome.Name = "leOutcome";
this.leOutcome.Properties.Appearance.Options.UseFont = true;
this.leOutcome.Properties.AppearanceDisabled.Options.UseFont = true;
this.leOutcome.Properties.AppearanceDropDown.Options.UseFont = true;
this.leOutcome.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leOutcome.Properties.AppearanceFocused.Options.UseFont = true;
this.leOutcome.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject6.Options.UseFont = true;
this.leOutcome.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leOutcome.Properties.Buttons"))), resources.GetString("leOutcome.Properties.Buttons1"), ((int)(resources.GetObject("leOutcome.Properties.Buttons2"))), ((bool)(resources.GetObject("leOutcome.Properties.Buttons3"))), ((bool)(resources.GetObject("leOutcome.Properties.Buttons4"))), ((bool)(resources.GetObject("leOutcome.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leOutcome.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leOutcome.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject6, resources.GetString("leOutcome.Properties.Buttons8"), ((object)(resources.GetObject("leOutcome.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leOutcome.Properties.Buttons10"))), ((bool)(resources.GetObject("leOutcome.Properties.Buttons11"))))});
this.leOutcome.Properties.NullText = resources.GetString("leOutcome.Properties.NullText");
//
// lblOutcome
//
this.lblOutcome.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblOutcome.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblOutcome, "lblOutcome");
this.lblOutcome.Name = "lblOutcome";
//
// leTreatment
//
resources.ApplyResources(this.leTreatment, "leTreatment");
this.leTreatment.Name = "leTreatment";
this.leTreatment.Properties.Appearance.Options.UseFont = true;
this.leTreatment.Properties.AppearanceDisabled.Options.UseFont = true;
this.leTreatment.Properties.AppearanceDropDown.Options.UseFont = true;
this.leTreatment.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leTreatment.Properties.AppearanceFocused.Options.UseFont = true;
this.leTreatment.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject7.Options.UseFont = true;
this.leTreatment.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leTreatment.Properties.Buttons"))), resources.GetString("leTreatment.Properties.Buttons1"), ((int)(resources.GetObject("leTreatment.Properties.Buttons2"))), ((bool)(resources.GetObject("leTreatment.Properties.Buttons3"))), ((bool)(resources.GetObject("leTreatment.Properties.Buttons4"))), ((bool)(resources.GetObject("leTreatment.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leTreatment.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leTreatment.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject7, resources.GetString("leTreatment.Properties.Buttons8"), ((object)(resources.GetObject("leTreatment.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leTreatment.Properties.Buttons10"))), ((bool)(resources.GetObject("leTreatment.Properties.Buttons11"))))});
this.leTreatment.Properties.NullText = resources.GetString("leTreatment.Properties.NullText");
//
// lblTreatment
//
this.lblTreatment.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblTreatment.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblTreatment, "lblTreatment");
this.lblTreatment.Name = "lblTreatment";
//
// lePatientWasHospitalized
//
resources.ApplyResources(this.lePatientWasHospitalized, "lePatientWasHospitalized");
this.lePatientWasHospitalized.Name = "lePatientWasHospitalized";
this.lePatientWasHospitalized.Properties.Appearance.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.AppearanceDisabled.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.AppearanceDropDown.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.AppearanceFocused.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject8.Options.UseFont = true;
this.lePatientWasHospitalized.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons"))), resources.GetString("lePatientWasHospitalized.Properties.Buttons1"), ((int)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons2"))), ((bool)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons3"))), ((bool)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons4"))), ((bool)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject8, resources.GetString("lePatientWasHospitalized.Properties.Buttons8"), ((object)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons10"))), ((bool)(resources.GetObject("lePatientWasHospitalized.Properties.Buttons11"))))});
this.lePatientWasHospitalized.Properties.NullText = resources.GetString("lePatientWasHospitalized.Properties.NullText");
//
// lblPatientWasHospitalized
//
this.lblPatientWasHospitalized.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPatientWasHospitalized.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPatientWasHospitalized, "lblPatientWasHospitalized");
this.lblPatientWasHospitalized.Name = "lblPatientWasHospitalized";
//
// lblNameOfMedication
//
this.lblNameOfMedication.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblNameOfMedication.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblNameOfMedication, "lblNameOfMedication");
this.lblNameOfMedication.Name = "lblNameOfMedication";
//
// txtNameOfMedication
//
resources.ApplyResources(this.txtNameOfMedication, "txtNameOfMedication");
this.txtNameOfMedication.Name = "txtNameOfMedication";
//
// leAntiviral
//
resources.ApplyResources(this.leAntiviral, "leAntiviral");
this.leAntiviral.Name = "leAntiviral";
this.leAntiviral.Properties.Appearance.Options.UseFont = true;
this.leAntiviral.Properties.AppearanceDisabled.Options.UseFont = true;
this.leAntiviral.Properties.AppearanceDropDown.Options.UseFont = true;
this.leAntiviral.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leAntiviral.Properties.AppearanceFocused.Options.UseFont = true;
this.leAntiviral.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject9.Options.UseFont = true;
this.leAntiviral.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leAntiviral.Properties.Buttons"))), resources.GetString("leAntiviral.Properties.Buttons1"), ((int)(resources.GetObject("leAntiviral.Properties.Buttons2"))), ((bool)(resources.GetObject("leAntiviral.Properties.Buttons3"))), ((bool)(resources.GetObject("leAntiviral.Properties.Buttons4"))), ((bool)(resources.GetObject("leAntiviral.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leAntiviral.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leAntiviral.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, resources.GetString("leAntiviral.Properties.Buttons8"), ((object)(resources.GetObject("leAntiviral.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leAntiviral.Properties.Buttons10"))), ((bool)(resources.GetObject("leAntiviral.Properties.Buttons11"))))});
this.leAntiviral.Properties.NullText = resources.GetString("leAntiviral.Properties.NullText");
//
// lblAntiviral
//
this.lblAntiviral.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblAntiviral.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblAntiviral, "lblAntiviral");
this.lblAntiviral.Name = "lblAntiviral";
//
// lePatientER
//
resources.ApplyResources(this.lePatientER, "lePatientER");
this.lePatientER.Name = "lePatientER";
this.lePatientER.Properties.Appearance.Options.UseFont = true;
this.lePatientER.Properties.AppearanceDisabled.Options.UseFont = true;
this.lePatientER.Properties.AppearanceDropDown.Options.UseFont = true;
this.lePatientER.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.lePatientER.Properties.AppearanceFocused.Options.UseFont = true;
this.lePatientER.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject10.Options.UseFont = true;
this.lePatientER.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("lePatientER.Properties.Buttons"))), resources.GetString("lePatientER.Properties.Buttons1"), ((int)(resources.GetObject("lePatientER.Properties.Buttons2"))), ((bool)(resources.GetObject("lePatientER.Properties.Buttons3"))), ((bool)(resources.GetObject("lePatientER.Properties.Buttons4"))), ((bool)(resources.GetObject("lePatientER.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("lePatientER.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("lePatientER.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject10, resources.GetString("lePatientER.Properties.Buttons8"), ((object)(resources.GetObject("lePatientER.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("lePatientER.Properties.Buttons10"))), ((bool)(resources.GetObject("lePatientER.Properties.Buttons11"))))});
this.lePatientER.Properties.NullText = resources.GetString("lePatientER.Properties.NullText");
//
// lblPatientER
//
this.lblPatientER.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPatientER.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPatientER, "lblPatientER");
this.lblPatientER.Name = "lblPatientER";
//
// dtDateOfCare
//
resources.ApplyResources(this.dtDateOfCare, "dtDateOfCare");
this.dtDateOfCare.Name = "dtDateOfCare";
this.dtDateOfCare.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtDateOfCare.Properties.Buttons"))))});
this.dtDateOfCare.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblDateOfCare
//
this.lblDateOfCare.AccessibleRole = System.Windows.Forms.AccessibleRole.MenuBar;
this.lblDateOfCare.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateOfCare.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateOfCare, "lblDateOfCare");
this.lblDateOfCare.Name = "lblDateOfCare";
//
// lblOther
//
this.lblOther.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblOther.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblOther, "lblOther");
this.lblOther.Name = "lblOther";
//
// txtOtherMethod
//
resources.ApplyResources(this.txtOtherMethod, "txtOtherMethod");
this.txtOtherMethod.Name = "txtOtherMethod";
//
// leSeasonalFluVaccine
//
resources.ApplyResources(this.leSeasonalFluVaccine, "leSeasonalFluVaccine");
this.leSeasonalFluVaccine.Name = "leSeasonalFluVaccine";
this.leSeasonalFluVaccine.Properties.Appearance.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.AppearanceDisabled.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.AppearanceDropDown.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.AppearanceFocused.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject11.Options.UseFont = true;
this.leSeasonalFluVaccine.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons"))), resources.GetString("leSeasonalFluVaccine.Properties.Buttons1"), ((int)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons2"))), ((bool)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons3"))), ((bool)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons4"))), ((bool)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject11, resources.GetString("leSeasonalFluVaccine.Properties.Buttons8"), ((object)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons10"))), ((bool)(resources.GetObject("leSeasonalFluVaccine.Properties.Buttons11"))))});
this.leSeasonalFluVaccine.Properties.NullText = resources.GetString("leSeasonalFluVaccine.Properties.NullText");
//
// lblSeasonalFluVaccine
//
this.lblSeasonalFluVaccine.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblSeasonalFluVaccine.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblSeasonalFluVaccine, "lblSeasonalFluVaccine");
this.lblSeasonalFluVaccine.Name = "lblSeasonalFluVaccine";
//
// leShortnessBreath
//
resources.ApplyResources(this.leShortnessBreath, "leShortnessBreath");
this.leShortnessBreath.Name = "leShortnessBreath";
this.leShortnessBreath.Properties.Appearance.Options.UseFont = true;
this.leShortnessBreath.Properties.AppearanceDisabled.Options.UseFont = true;
this.leShortnessBreath.Properties.AppearanceDropDown.Options.UseFont = true;
this.leShortnessBreath.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leShortnessBreath.Properties.AppearanceFocused.Options.UseFont = true;
this.leShortnessBreath.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject12.Options.UseFont = true;
this.leShortnessBreath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leShortnessBreath.Properties.Buttons"))), resources.GetString("leShortnessBreath.Properties.Buttons1"), ((int)(resources.GetObject("leShortnessBreath.Properties.Buttons2"))), ((bool)(resources.GetObject("leShortnessBreath.Properties.Buttons3"))), ((bool)(resources.GetObject("leShortnessBreath.Properties.Buttons4"))), ((bool)(resources.GetObject("leShortnessBreath.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leShortnessBreath.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leShortnessBreath.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject12, resources.GetString("leShortnessBreath.Properties.Buttons8"), ((object)(resources.GetObject("leShortnessBreath.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leShortnessBreath.Properties.Buttons10"))), ((bool)(resources.GetObject("leShortnessBreath.Properties.Buttons11"))))});
this.leShortnessBreath.Properties.NullText = resources.GetString("leShortnessBreath.Properties.NullText");
//
// lblShortnessBreath
//
this.lblShortnessBreath.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblShortnessBreath.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblShortnessBreath, "lblShortnessBreath");
this.lblShortnessBreath.Name = "lblShortnessBreath";
//
// leMethodMeasurement
//
resources.ApplyResources(this.leMethodMeasurement, "leMethodMeasurement");
this.leMethodMeasurement.Name = "leMethodMeasurement";
this.leMethodMeasurement.Properties.Appearance.Options.UseFont = true;
this.leMethodMeasurement.Properties.AppearanceDisabled.Options.UseFont = true;
this.leMethodMeasurement.Properties.AppearanceDropDown.Options.UseFont = true;
this.leMethodMeasurement.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leMethodMeasurement.Properties.AppearanceFocused.Options.UseFont = true;
this.leMethodMeasurement.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject13.Options.UseFont = true;
this.leMethodMeasurement.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leMethodMeasurement.Properties.Buttons"))), resources.GetString("leMethodMeasurement.Properties.Buttons1"), ((int)(resources.GetObject("leMethodMeasurement.Properties.Buttons2"))), ((bool)(resources.GetObject("leMethodMeasurement.Properties.Buttons3"))), ((bool)(resources.GetObject("leMethodMeasurement.Properties.Buttons4"))), ((bool)(resources.GetObject("leMethodMeasurement.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leMethodMeasurement.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leMethodMeasurement.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject13, resources.GetString("leMethodMeasurement.Properties.Buttons8"), ((object)(resources.GetObject("leMethodMeasurement.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leMethodMeasurement.Properties.Buttons10"))), ((bool)(resources.GetObject("leMethodMeasurement.Properties.Buttons11"))))});
this.leMethodMeasurement.Properties.NullText = resources.GetString("leMethodMeasurement.Properties.NullText");
//
// lblMethodMeasurement
//
this.lblMethodMeasurement.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblMethodMeasurement.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblMethodMeasurement, "lblMethodMeasurement");
this.lblMethodMeasurement.Name = "lblMethodMeasurement";
//
// leCough
//
resources.ApplyResources(this.leCough, "leCough");
this.leCough.Name = "leCough";
this.leCough.Properties.Appearance.Options.UseFont = true;
this.leCough.Properties.AppearanceDisabled.Options.UseFont = true;
this.leCough.Properties.AppearanceDropDown.Options.UseFont = true;
this.leCough.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leCough.Properties.AppearanceFocused.Options.UseFont = true;
this.leCough.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject14.Options.UseFont = true;
this.leCough.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leCough.Properties.Buttons"))), resources.GetString("leCough.Properties.Buttons1"), ((int)(resources.GetObject("leCough.Properties.Buttons2"))), ((bool)(resources.GetObject("leCough.Properties.Buttons3"))), ((bool)(resources.GetObject("leCough.Properties.Buttons4"))), ((bool)(resources.GetObject("leCough.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leCough.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leCough.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject14, resources.GetString("leCough.Properties.Buttons8"), ((object)(resources.GetObject("leCough.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leCough.Properties.Buttons10"))), ((bool)(resources.GetObject("leCough.Properties.Buttons11"))))});
this.leCough.Properties.NullText = resources.GetString("leCough.Properties.NullText");
//
// lblCough
//
this.lblCough.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblCough.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblCough, "lblCough");
this.lblCough.Name = "lblCough";
//
// leFever
//
resources.ApplyResources(this.leFever, "leFever");
this.leFever.Name = "leFever";
this.leFever.Properties.Appearance.Options.UseFont = true;
this.leFever.Properties.AppearanceDisabled.Options.UseFont = true;
this.leFever.Properties.AppearanceDropDown.Options.UseFont = true;
this.leFever.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leFever.Properties.AppearanceFocused.Options.UseFont = true;
this.leFever.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject15.Options.UseFont = true;
this.leFever.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leFever.Properties.Buttons"))), resources.GetString("leFever.Properties.Buttons1"), ((int)(resources.GetObject("leFever.Properties.Buttons2"))), ((bool)(resources.GetObject("leFever.Properties.Buttons3"))), ((bool)(resources.GetObject("leFever.Properties.Buttons4"))), ((bool)(resources.GetObject("leFever.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leFever.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leFever.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject15, resources.GetString("leFever.Properties.Buttons8"), ((object)(resources.GetObject("leFever.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leFever.Properties.Buttons10"))), ((bool)(resources.GetObject("leFever.Properties.Buttons11"))))});
this.leFever.Properties.NullText = resources.GetString("leFever.Properties.NullText");
//
// lblFever
//
this.lblFever.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblFever.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblFever, "lblFever");
this.lblFever.Name = "lblFever";
//
// dtDateOfSymptomsOnset
//
resources.ApplyResources(this.dtDateOfSymptomsOnset, "dtDateOfSymptomsOnset");
this.dtDateOfSymptomsOnset.Name = "dtDateOfSymptomsOnset";
this.dtDateOfSymptomsOnset.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtDateOfSymptomsOnset.Properties.Buttons"))))});
this.dtDateOfSymptomsOnset.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblDateOfSymptomsOnset
//
this.lblDateOfSymptomsOnset.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblDateOfSymptomsOnset.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblDateOfSymptomsOnset, "lblDateOfSymptomsOnset");
this.lblDateOfSymptomsOnset.Name = "lblDateOfSymptomsOnset";
//
// lePostpartum
//
resources.ApplyResources(this.lePostpartum, "lePostpartum");
this.lePostpartum.Name = "lePostpartum";
this.lePostpartum.Properties.Appearance.Options.UseFont = true;
this.lePostpartum.Properties.AppearanceDisabled.Options.UseFont = true;
this.lePostpartum.Properties.AppearanceDropDown.Options.UseFont = true;
this.lePostpartum.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.lePostpartum.Properties.AppearanceFocused.Options.UseFont = true;
this.lePostpartum.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject16.Options.UseFont = true;
this.lePostpartum.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("lePostpartum.Properties.Buttons"))), resources.GetString("lePostpartum.Properties.Buttons1"), ((int)(resources.GetObject("lePostpartum.Properties.Buttons2"))), ((bool)(resources.GetObject("lePostpartum.Properties.Buttons3"))), ((bool)(resources.GetObject("lePostpartum.Properties.Buttons4"))), ((bool)(resources.GetObject("lePostpartum.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("lePostpartum.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("lePostpartum.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject16, resources.GetString("lePostpartum.Properties.Buttons8"), ((object)(resources.GetObject("lePostpartum.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("lePostpartum.Properties.Buttons10"))), ((bool)(resources.GetObject("lePostpartum.Properties.Buttons11"))))});
this.lePostpartum.Properties.NullText = resources.GetString("lePostpartum.Properties.NullText");
//
// lblPostpartum
//
this.lblPostpartum.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPostpartum.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPostpartum, "lblPostpartum");
this.lblPostpartum.Name = "lblPostpartum";
//
// lePregnant
//
resources.ApplyResources(this.lePregnant, "lePregnant");
this.lePregnant.Name = "lePregnant";
this.lePregnant.Properties.Appearance.Options.UseFont = true;
this.lePregnant.Properties.AppearanceDisabled.Options.UseFont = true;
this.lePregnant.Properties.AppearanceDropDown.Options.UseFont = true;
this.lePregnant.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.lePregnant.Properties.AppearanceFocused.Options.UseFont = true;
this.lePregnant.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject17.Options.UseFont = true;
this.lePregnant.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("lePregnant.Properties.Buttons"))), resources.GetString("lePregnant.Properties.Buttons1"), ((int)(resources.GetObject("lePregnant.Properties.Buttons2"))), ((bool)(resources.GetObject("lePregnant.Properties.Buttons3"))), ((bool)(resources.GetObject("lePregnant.Properties.Buttons4"))), ((bool)(resources.GetObject("lePregnant.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("lePregnant.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("lePregnant.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject17, resources.GetString("lePregnant.Properties.Buttons8"), ((object)(resources.GetObject("lePregnant.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("lePregnant.Properties.Buttons10"))), ((bool)(resources.GetObject("lePregnant.Properties.Buttons11"))))});
this.lePregnant.Properties.NullText = resources.GetString("lePregnant.Properties.NullText");
//
// lblPregnant
//
this.lblPregnant.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblPregnant.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblPregnant, "lblPregnant");
this.lblPregnant.Name = "lblPregnant";
//
// panelControl1
//
this.panelControl1.Controls.Add(this.leTestResult);
this.panelControl1.Controls.Add(this.txtSampleID);
this.panelControl1.Controls.Add(this.dtResultDate);
this.panelControl1.Controls.Add(this.lblResultDate);
this.panelControl1.Controls.Add(this.dtSampleCollectionDate);
this.panelControl1.Controls.Add(this.lblTestResult);
this.panelControl1.Controls.Add(this.lblSampleID);
this.panelControl1.Controls.Add(this.lblSampleCollectionDate);
resources.ApplyResources(this.panelControl1, "panelControl1");
this.panelControl1.Name = "panelControl1";
//
// leTestResult
//
resources.ApplyResources(this.leTestResult, "leTestResult");
this.leTestResult.Name = "leTestResult";
this.leTestResult.Properties.Appearance.Options.UseFont = true;
this.leTestResult.Properties.AppearanceDisabled.Options.UseFont = true;
this.leTestResult.Properties.AppearanceDropDown.Options.UseFont = true;
this.leTestResult.Properties.AppearanceDropDownHeader.Options.UseFont = true;
this.leTestResult.Properties.AppearanceFocused.Options.UseFont = true;
this.leTestResult.Properties.AppearanceReadOnly.Options.UseFont = true;
serializableAppearanceObject18.Options.UseFont = true;
this.leTestResult.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("leTestResult.Properties.Buttons"))), resources.GetString("leTestResult.Properties.Buttons1"), ((int)(resources.GetObject("leTestResult.Properties.Buttons2"))), ((bool)(resources.GetObject("leTestResult.Properties.Buttons3"))), ((bool)(resources.GetObject("leTestResult.Properties.Buttons4"))), ((bool)(resources.GetObject("leTestResult.Properties.Buttons5"))), ((DevExpress.XtraEditors.ImageLocation)(resources.GetObject("leTestResult.Properties.Buttons6"))), ((System.Drawing.Image)(resources.GetObject("leTestResult.Properties.Buttons7"))), new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject18, resources.GetString("leTestResult.Properties.Buttons8"), ((object)(resources.GetObject("leTestResult.Properties.Buttons9"))), ((DevExpress.Utils.SuperToolTip)(resources.GetObject("leTestResult.Properties.Buttons10"))), ((bool)(resources.GetObject("leTestResult.Properties.Buttons11"))))});
this.leTestResult.Properties.NullText = resources.GetString("leTestResult.Properties.NullText");
//
// txtSampleID
//
resources.ApplyResources(this.txtSampleID, "txtSampleID");
this.txtSampleID.Name = "txtSampleID";
//
// dtResultDate
//
resources.ApplyResources(this.dtResultDate, "dtResultDate");
this.dtResultDate.Name = "dtResultDate";
this.dtResultDate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtResultDate.Properties.Buttons"))))});
this.dtResultDate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblResultDate
//
this.lblResultDate.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblResultDate.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblResultDate, "lblResultDate");
this.lblResultDate.Name = "lblResultDate";
//
// dtSampleCollectionDate
//
resources.ApplyResources(this.dtSampleCollectionDate, "dtSampleCollectionDate");
this.dtSampleCollectionDate.Name = "dtSampleCollectionDate";
this.dtSampleCollectionDate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("dtSampleCollectionDate.Properties.Buttons"))))});
this.dtSampleCollectionDate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
//
// lblTestResult
//
this.lblTestResult.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblTestResult.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblTestResult, "lblTestResult");
this.lblTestResult.Name = "lblTestResult";
//
// lblSampleID
//
this.lblSampleID.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblSampleID.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblSampleID, "lblSampleID");
this.lblSampleID.Name = "lblSampleID";
//
// lblSampleCollectionDate
//
this.lblSampleCollectionDate.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
this.lblSampleCollectionDate.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
resources.ApplyResources(this.lblSampleCollectionDate, "lblSampleCollectionDate");
this.lblSampleCollectionDate.Name = "lblSampleCollectionDate";
//
// bppLocation
//
resources.ApplyResources(this.bppLocation, "bppLocation");
this.bppLocation.Name = "bppLocation";
this.bppLocation.Properties.Appearance.Options.UseFont = true;
this.bppLocation.Properties.AppearanceDisabled.Options.UseFont = true;
this.bppLocation.Properties.AppearanceDropDown.Options.UseFont = true;
this.bppLocation.Properties.AppearanceFocused.Options.UseFont = true;
this.bppLocation.Properties.AppearanceReadOnly.Options.UseFont = true;
this.bppLocation.Properties.AutoHeight = ((bool)(resources.GetObject("bppLocation.Properties.AutoHeight")));
this.bppLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("bppLocation.Properties.Buttons"))))});
this.bppLocation.Properties.CloseOnOuterMouseClick = false;
this.bppLocation.Properties.PopupFormMinSize = new System.Drawing.Size(416, 349);
this.bppLocation.Properties.PopupFormSize = new System.Drawing.Size(420, 328);
this.bppLocation.Properties.PopupSizeable = false;
this.bppLocation.Properties.ReadOnly = true;
this.bppLocation.Properties.ShowPopupCloseButton = false;
//
// txtDateEntered
//
resources.ApplyResources(this.txtDateEntered, "txtDateEntered");
this.txtDateEntered.Name = "txtDateEntered";
//
// txtDateLastSaved
//
resources.ApplyResources(this.txtDateLastSaved, "txtDateLastSaved");
this.txtDateLastSaved.Name = "txtDateLastSaved";
//
// BasicSyndromicSurveillanceItemDetail
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.txtDateLastSaved);
this.Controls.Add(this.txtDateEntered);
this.Controls.Add(this.panelControl1);
this.Controls.Add(this.panelClinicalSigns);
this.Controls.Add(this.panelPatientInfo);
this.Controls.Add(this.dtReportDate);
this.Controls.Add(this.lblReportDate);
this.Controls.Add(this.leHospital);
this.Controls.Add(this.lblHospital);
this.Controls.Add(this.leNotification);
this.Controls.Add(this.txtSite);
this.Controls.Add(this.lblSite);
this.Controls.Add(this.txtCreatedBy);
this.Controls.Add(this.lblCreatedBy);
this.Controls.Add(this.lblDateLastSaved);
this.Controls.Add(this.lblDateEntered);
this.Controls.Add(this.txtFormID);
this.Controls.Add(this.lblFormID);
this.Controls.Add(this.lblNotification);
this.Icon = global::eidss.winclient.Properties.Resources.bss_32x32;
this.Name = "BasicSyndromicSurveillanceItemDetail";
this.Load += new System.EventHandler(this.OnBasicSyndromicSurveillanceItemDetailLoad);
((System.ComponentModel.ISupportInitialize)(this.txtFormID.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtCreatedBy.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtSite.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leNotification.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leHospital.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtReportDate.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtReportDate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelPatientInfo)).EndInit();
this.panelPatientInfo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.beLastName.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtPersonalID.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtPhoneNumber.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leSex.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtAgeMonths.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtAgeYears.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfBirth.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfBirth.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtMiddleName.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtFirstName.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelClinicalSigns)).EndInit();
this.panelClinicalSigns.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.cbUnknownEtiology.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbImmuno.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbNeuro.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbLiver.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbRenal.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbObesity.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbCardiovascular.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbDiabetes.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbAsthma.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbRespiratorySystem.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateReceived.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateReceived.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leOutcome.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leTreatment.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lePatientWasHospitalized.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtNameOfMedication.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leAntiviral.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lePatientER.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfCare.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfCare.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtOtherMethod.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leSeasonalFluVaccine.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leShortnessBreath.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leMethodMeasurement.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leCough.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.leFever.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfSymptomsOnset.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtDateOfSymptomsOnset.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lePostpartum.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lePregnant.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.leTestResult.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtSampleID.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtResultDate.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtResultDate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtSampleCollectionDate.Properties.CalendarTimeProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtSampleCollectionDate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bppLocation.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtDateEntered.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtDateLastSaved.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private eidss.winclient.Location.LocationLookup bppLocation;
private bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection remoteSqlConnection1;
private bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection remoteSqlConnection2;
private bv.model.BLToolkit.RemoteProvider.Client.RemoteSqlConnection remoteSqlConnection3;
private DevExpress.XtraEditors.TextEdit txtFormID;
private DevExpress.XtraEditors.LabelControl lblFormID;
private DevExpress.XtraEditors.LabelControl lblNotification;
private DevExpress.XtraEditors.LabelControl lblDateEntered;
private DevExpress.XtraEditors.LabelControl lblDateLastSaved;
private DevExpress.XtraEditors.TextEdit txtCreatedBy;
private DevExpress.XtraEditors.LabelControl lblCreatedBy;
private DevExpress.XtraEditors.TextEdit txtSite;
private DevExpress.XtraEditors.LabelControl lblSite;
private DevExpress.XtraEditors.LookUpEdit leNotification;
private DevExpress.XtraEditors.LookUpEdit leHospital;
private DevExpress.XtraEditors.LabelControl lblHospital;
private DevExpress.XtraEditors.DateEdit dtReportDate;
private DevExpress.XtraEditors.LabelControl lblReportDate;
private DevExpress.XtraEditors.PanelControl panelPatientInfo;
private DevExpress.XtraEditors.TextEdit txtMiddleName;
private DevExpress.XtraEditors.LabelControl lblMiddleName;
private DevExpress.XtraEditors.TextEdit txtFirstName;
private DevExpress.XtraEditors.LabelControl lblFirstName;
private DevExpress.XtraEditors.LabelControl lblLastName;
private DevExpress.XtraEditors.DateEdit dtDateOfBirth;
private DevExpress.XtraEditors.LabelControl lblDateOfBirth;
private DevExpress.XtraEditors.LookUpEdit leSex;
private DevExpress.XtraEditors.LabelControl lblSex;
private DevExpress.XtraEditors.LabelControl lblMonths;
private DevExpress.XtraEditors.SpinEdit txtAgeMonths;
private DevExpress.XtraEditors.LabelControl lblYears;
private DevExpress.XtraEditors.SpinEdit txtAgeYears;
private DevExpress.XtraEditors.LabelControl lblAge;
private DevExpress.XtraEditors.TextEdit txtPersonalID;
private DevExpress.XtraEditors.LabelControl lblPersonalID;
private DevExpress.XtraEditors.TextEdit txtPhoneNumber;
private DevExpress.XtraEditors.LabelControl lblPhoneNumber;
private DevExpress.XtraEditors.PanelControl panelClinicalSigns;
private DevExpress.XtraEditors.LookUpEdit lePostpartum;
private DevExpress.XtraEditors.LabelControl lblPostpartum;
private DevExpress.XtraEditors.LookUpEdit lePregnant;
private DevExpress.XtraEditors.LabelControl lblPregnant;
private DevExpress.XtraEditors.LookUpEdit leFever;
private DevExpress.XtraEditors.LabelControl lblFever;
private DevExpress.XtraEditors.DateEdit dtDateOfSymptomsOnset;
private DevExpress.XtraEditors.LabelControl lblDateOfSymptomsOnset;
private DevExpress.XtraEditors.LabelControl lblOther;
private DevExpress.XtraEditors.TextEdit txtOtherMethod;
private DevExpress.XtraEditors.LookUpEdit leSeasonalFluVaccine;
private DevExpress.XtraEditors.LabelControl lblSeasonalFluVaccine;
private DevExpress.XtraEditors.LookUpEdit leShortnessBreath;
private DevExpress.XtraEditors.LabelControl lblShortnessBreath;
private DevExpress.XtraEditors.LookUpEdit leMethodMeasurement;
private DevExpress.XtraEditors.LabelControl lblMethodMeasurement;
private DevExpress.XtraEditors.LookUpEdit leCough;
private DevExpress.XtraEditors.LabelControl lblCough;
private DevExpress.XtraEditors.LookUpEdit leTreatment;
private DevExpress.XtraEditors.LabelControl lblTreatment;
private DevExpress.XtraEditors.LookUpEdit lePatientWasHospitalized;
private DevExpress.XtraEditors.LabelControl lblPatientWasHospitalized;
private DevExpress.XtraEditors.LabelControl lblNameOfMedication;
private DevExpress.XtraEditors.TextEdit txtNameOfMedication;
private DevExpress.XtraEditors.LookUpEdit leAntiviral;
private DevExpress.XtraEditors.LabelControl lblAntiviral;
private DevExpress.XtraEditors.LookUpEdit lePatientER;
private DevExpress.XtraEditors.LabelControl lblPatientER;
private DevExpress.XtraEditors.DateEdit dtDateOfCare;
private DevExpress.XtraEditors.LabelControl lblDateOfCare;
private DevExpress.XtraEditors.DateEdit dtDateReceived;
private DevExpress.XtraEditors.LabelControl lblDateReceived;
private DevExpress.XtraEditors.LookUpEdit leOutcome;
private DevExpress.XtraEditors.LabelControl lblOutcome;
private Location.AddressDetail patientAddress;
private DevExpress.XtraEditors.LabelControl lblConcurent;
private DevExpress.XtraEditors.CheckEdit cbUnknownEtiology;
private DevExpress.XtraEditors.CheckEdit cbImmuno;
private DevExpress.XtraEditors.CheckEdit cbNeuro;
private DevExpress.XtraEditors.CheckEdit cbLiver;
private DevExpress.XtraEditors.CheckEdit cbRenal;
private DevExpress.XtraEditors.CheckEdit cbObesity;
private DevExpress.XtraEditors.CheckEdit cbCardiovascular;
private DevExpress.XtraEditors.CheckEdit cbDiabetes;
private DevExpress.XtraEditors.CheckEdit cbAsthma;
private DevExpress.XtraEditors.CheckEdit cbRespiratorySystem;
private DevExpress.XtraEditors.PanelControl panelControl1;
private DevExpress.XtraEditors.LookUpEdit leTestResult;
private DevExpress.XtraEditors.LabelControl lblTestResult;
private DevExpress.XtraEditors.LabelControl lblSampleID;
private DevExpress.XtraEditors.TextEdit txtSampleID;
private DevExpress.XtraEditors.DateEdit dtResultDate;
private DevExpress.XtraEditors.LabelControl lblResultDate;
private DevExpress.XtraEditors.DateEdit dtSampleCollectionDate;
private DevExpress.XtraEditors.LabelControl lblSampleCollectionDate;
private DevExpress.XtraEditors.ButtonEdit beLastName;
private DevExpress.XtraEditors.TextEdit txtDateEntered;
private DevExpress.XtraEditors.TextEdit txtDateLastSaved;
}
}
| 82.86101 | 1,208 | 0.707842 | [
"BSD-2-Clause"
] | EIDSS/EIDSS-Legacy | EIDSS v6/eidss.winclient/BasicSyndromicSurveillance/BasicSyndromicSurveillanceItemDetail.Designer.cs | 113,273 | C# |
using System;
using System.Buffers;
using System.Diagnostics;
using BCnEncoder.Shared;
using Gorgon.Graphics;
namespace BCnEncoder.Encoder
{
internal class Bc5BlockEncoder : BcBlockEncoder<Bc5Block>
{
public Bc5BlockEncoder()
: base(4)
{
}
private Bc5Block RedIndexSetter(Bc5Block inBlock, int i, byte idx)
{
inBlock.SetRedIndex(i, idx);
return inBlock;
}
private Bc5Block RedCol0Setter(Bc5Block inBlock, byte col)
{
inBlock.Red0 = col;
return inBlock;
}
private Bc5Block RedCol1Setter(Bc5Block inBlock, byte col)
{
inBlock.Red0 = col;
return inBlock;
}
private byte RedCol0Getter(Bc5Block inBlock) => inBlock.Red0;
private byte RedCol1Getter(Bc5Block inBlock) => inBlock.Red1;
private Bc5Block GreenIndexSetter(Bc5Block inBlock, int i, byte idx)
{
inBlock.SetGreenIndex(i, idx);
return inBlock;
}
private Bc5Block GreenCol0Setter(Bc5Block inBlock, byte col)
{
inBlock.Green0 = col;
return inBlock;
}
private Bc5Block GreenCol1Setter(Bc5Block inBlock, byte col)
{
inBlock.Green0 = col;
return inBlock;
}
private byte GreenCol0Getter(Bc5Block inBlock) => inBlock.Green0;
private byte GreenCol1Getter(Bc5Block inBlock) => inBlock.Green1;
protected override Bc5Block EncodeBlock(RawBlock4X4Rgba32 block, CompressionQuality quality)
{
var output = new Bc5Block();
byte[] redsArray = ArrayPool<byte>.Shared.Rent(16);
byte[] greensArray = ArrayPool<byte>.Shared.Rent(16);
try
{
var reds = new Span<byte>(redsArray, 0, 16);
var greens = new Span<byte>(greensArray, 0, 16);
Span<GorgonColor> pixels = block.AsSpan;
for (int i = 0; i < 16; i++)
{
(int R, int G, int _, int _) = pixels[i].GetIntegerComponents();
reds[i] = (byte)R;
greens[i] = (byte)G;
}
int variations = 0;
int ErrorThreshsold = 0;
switch (quality)
{
case CompressionQuality.Fast:
variations = 3;
ErrorThreshsold = 5;
break;
case CompressionQuality.Balanced:
variations = 5;
ErrorThreshsold = 1;
break;
case CompressionQuality.BestQuality:
variations = 8;
ErrorThreshsold = 0;
break;
default:
throw new ArgumentOutOfRangeException(nameof(quality), quality, null);
}
output = FindValues(output, reds, variations, ErrorThreshsold,
RedIndexSetter,
RedCol0Setter,
RedCol1Setter,
RedCol0Getter,
RedCol1Getter
);
output = FindValues(output, greens, variations, ErrorThreshsold,
GreenIndexSetter,
GreenCol0Setter,
GreenCol1Setter,
GreenCol0Getter,
GreenCol1Getter);
}
finally
{
ArrayPool<byte>.Shared.Return(redsArray);
ArrayPool<byte>.Shared.Return(greensArray);
}
return output;
}
public static BufferFormat GetDxgiFormat() => BufferFormat.BC5_UNorm;
#region Encoding private stuff
private static int SelectIndices(ref Bc5Block block, Span<byte> pixels, int bestError,
Func<Bc5Block, int, byte, Bc5Block> indexSetter,
Func<Bc5Block, byte> col0Getter,
Func<Bc5Block, byte> col1Getter)
{
int cumulativeError = 0;
//var c0 = block.Red0;
//var c1 = block.Red1;
byte c0 = col0Getter(block);
byte c1 = col1Getter(block);
Span<byte> colors = c0 > c1
? stackalloc byte[] {
c0,
c1,
(byte)(6 / 7.0 * c0 + 1 / 7.0 * c1),
(byte)(5 / 7.0 * c0 + 2 / 7.0 * c1),
(byte)(4 / 7.0 * c0 + 3 / 7.0 * c1),
(byte)(3 / 7.0 * c0 + 4 / 7.0 * c1),
(byte)(2 / 7.0 * c0 + 5 / 7.0 * c1),
(byte)(1 / 7.0 * c0 + 6 / 7.0 * c1),
}
: stackalloc byte[] {
c0,
c1,
(byte)(4 / 5.0 * c0 + 1 / 5.0 * c1),
(byte)(3 / 5.0 * c0 + 2 / 5.0 * c1),
(byte)(2 / 5.0 * c0 + 3 / 5.0 * c1),
(byte)(1 / 5.0 * c0 + 4 / 5.0 * c1),
0,
255
};
for (int i = 0; i < pixels.Length; i++)
{
byte bestIndex = 0;
bestError = Math.Abs(pixels[i] - colors[0]);
for (byte j = 1; j < colors.Length; j++)
{
int error = Math.Abs(pixels[i] - colors[j]);
if (error < bestError)
{
bestIndex = j;
bestError = error;
}
if (bestError == 0)
{
break;
}
}
block = indexSetter(block, i, bestIndex);
cumulativeError += bestError * bestError;
}
return cumulativeError;
}
private static Bc5Block FindValues(Bc5Block colorBlock, Span<byte> pixels, int variations, int errorThreshsold,
Func<Bc5Block, int, byte, Bc5Block> indexSetter,
Func<Bc5Block, byte, Bc5Block> col0Setter,
Func<Bc5Block, byte, Bc5Block> col1Setter,
Func<Bc5Block, byte> col0Getter,
Func<Bc5Block, byte> col1Getter)
{
//Find min and max alpha
int bestError = 0;
byte min = 255;
byte max = 0;
bool hasExtremeValues = false;
for (int i = 0; i < pixels.Length; i++)
{
if (pixels[i] is < 255 and > 0)
{
if (pixels[i] < min)
{
min = pixels[i];
}
if (pixels[i] > max)
{
max = pixels[i];
}
}
else
{
hasExtremeValues = true;
}
}
//everything is either fully black or fully red
if (hasExtremeValues && min == 255 && max == 0)
{
//colorBlock.Red0 = 0;
//colorBlock.Red1 = 255;
colorBlock = col0Setter(colorBlock, 0);
colorBlock = col1Setter(colorBlock, 255);
int error = SelectIndices(ref colorBlock, pixels, 0, indexSetter, col0Getter, col1Getter);
Debug.Assert(0 == error);
return colorBlock;
}
Bc5Block best = colorBlock;
//best.Red0 = max;
//best.Red1 = min;
best = col0Setter(best, max);
best = col1Setter(best, min);
bestError = SelectIndices(ref colorBlock, pixels, 0, indexSetter, col0Getter, col1Getter);
if (bestError == 0)
{
return best;
}
for (byte i = (byte)variations; i > 0; i--)
{
{
byte c0 = ByteHelper.ClampToByte(max - i);
byte c1 = ByteHelper.ClampToByte(min + i);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
{
byte c0 = ByteHelper.ClampToByte(max + i);
byte c1 = ByteHelper.ClampToByte(min - i);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
{
byte c0 = ByteHelper.ClampToByte(max);
byte c1 = ByteHelper.ClampToByte(min - i);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
{
byte c0 = ByteHelper.ClampToByte(max + i);
byte c1 = ByteHelper.ClampToByte(min);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
{
byte c0 = ByteHelper.ClampToByte(max);
byte c1 = ByteHelper.ClampToByte(min + i);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
{
byte c0 = ByteHelper.ClampToByte(max - i);
byte c1 = ByteHelper.ClampToByte(min);
Bc5Block block = colorBlock;
//block.Red0 = hasExtremeValues ? c1 : c0;
//block.Red1 = hasExtremeValues ? c0 : c1;
block = col0Setter(block, hasExtremeValues ? c1 : c0);
block = col1Setter(block, hasExtremeValues ? c0 : c1);
int error = SelectIndices(ref colorBlock, pixels, bestError, indexSetter, col0Getter, col1Getter);
if (error < bestError)
{
best = block;
bestError = error;
max = c0;
min = c1;
}
}
if (bestError <= errorThreshsold)
{
break;
}
}
return best;
}
#endregion
}
} | 37.036415 | 119 | 0.434654 | [
"MIT",
"Unlicense"
] | Tape-Worm/BCnEncoder.NET | BCnEnc.Net/Encoder/Bc5BlockEncoder.cs | 13,224 | C# |
using LiteDB;
using System.IO;
namespace BiuBiuWpfClient.Tools
{
public class LiteDBDriven
{
public class SaveInfo
{
public string ID { get; set; }
public string Account { get; set; }
public string Password { get; set; }
public string ServiceIp { get; set; }
public bool CheckAccount { get; set; }
public bool CheckPassword { get; set; }
}
private static LiteDatabase db = new LiteDatabase("./MyData.db");
private static ILiteCollection<SaveInfo> siCollection;
private static SaveInfo results;
public LiteDBDriven()
{
siCollection = db.GetCollection<SaveInfo>("SaveInfo");
siCollection.EnsureIndex(x => x.ID, true);
}
public string GetIp()
{
results = siCollection.FindOne(x => x.ID == "17761");
if (results is null)
{
SaveInfo save = new SaveInfo()
{
ID = "17761",
Account = "",
Password = "",
ServiceIp = "127.0.0.1"
};
siCollection.Insert(save);
results = save;
return "127.0.0.1";
}
else
{
return results.ServiceIp;
}
}
public void SetIp(string Ip)
{
results.ServiceIp = Ip;
siCollection.Update(results);
}
public string GetAccount()
{
if (!(results is null))
{
return results.Account;
}
else
{
results.Account = "";
return "";
}
}
public void SetAccount(string account)
{
results.Account = account;
siCollection.Update(results);
}
public string GetPassword()
{
if (!(results is null))
{
return results.Password;
}
else
{
results.Password = "";
return "";
}
}
public void SetPassword(string password)
{
results.Password = password;
siCollection.Update(results);
}
public bool GetCheckAccount()
{
if (!(results is null))
{
return results.CheckAccount;
}
else
{
results.CheckAccount = false;
return false;
}
}
public void SetCheckAccount(bool checkAccount)
{
results.CheckAccount = checkAccount;
siCollection.Update(results);
}
public bool GetCheckPassword()
{
if (!(results is null))
{
return results.CheckAccount;
}
else
{
results.CheckAccount = false;
return false;
}
}
public void SetCheckPassword(bool checkPassword)
{
results.CheckPassword = checkPassword;
siCollection.Update(results);
}
public byte[] LoadImage(ulong imageId)
{
var file
= db.FileStorage.FindById("$/images/" + imageId.ToString() +
".image");
if (file is null)
{
return new byte[0];
}
else
{
var ms = new MemoryStream();
file.CopyTo(ms);
return ms.ToArray();
}
}
public void UploadImage(ulong imageId, Stream stream)
{
db.FileStorage.Upload("$/images/" + imageId.ToString() + ".image"
, imageId.ToString() + ".image", stream);
}
}
} | 24.746914 | 77 | 0.435021 | [
"Apache-2.0"
] | LuXts/BiuBiu | BiuBiuWpfClient/Tools/LiteDBDriven.cs | 4,011 | C# |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Rewrite;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
using NetModular.Lib.Host.Web.Middleware;
using NetModular.Lib.Module.AspNetCore;
using NetModular.Lib.Swagger.Core;
using NetModular.Lib.Utils.Core.Interfaces;
using System.IO;
using System.Linq;
using HostOptions = NetModular.Lib.Host.Web.Options.HostOptions;
namespace NetModular.Lib.Host.Web
{
public static class ApplicationBuilderExtensions
{
/// <summary>
/// 启用WebHost
/// </summary>
/// <param name="app"></param>
/// <param name="hostOptions"></param>
/// <param name="env"></param>
/// <returns></returns>
public static IApplicationBuilder UseWebHost(this IApplicationBuilder app, HostOptions hostOptions, IHostEnvironment env)
{
//异常处理
app.UseExceptionHandle();
//设置默认文档
var defaultFilesOptions = new DefaultFilesOptions();
defaultFilesOptions.DefaultFileNames.Clear();
defaultFilesOptions.DefaultFileNames.Add("index.html");
app.UseDefaultFiles(defaultFilesOptions);
//基地址
var pathBase = hostOptions.PathBase;
if (pathBase.NotNull())
{
pathBase = pathBase.Trim();
if (!pathBase.StartsWith('/'))
{
pathBase = $"/{pathBase}";
}
//1、配置请求基地址:
app.Use((context, next) =>
{
context.Request.PathBase = pathBase;
return next();
});
// 2、配置静态文件基地址:
app.UsePathBase(pathBase);
}
app.UseDefaultPage();
app.UseDocs();
//反向代理
if (hostOptions.Proxy)
{
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});
}
//路由
app.UseRouting();
//CORS
app.UseCors("Default");
//认证
app.UseAuthentication();
//授权
app.UseAuthorization();
//配置端点
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
//开启Swagger
if (hostOptions.Swagger || env.IsDevelopment())
{
app.UseCustomSwagger(pathBase);
}
//加载模块
app.UseModules(env);
return app;
}
/// <summary>
/// 启用默认页
/// </summary>
/// <param name="app"></param>
/// <returns></returns>
public static IApplicationBuilder UseDefaultPage(this IApplicationBuilder app)
{
var path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/app");
if (Directory.Exists(path))
{
var options = new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(path),
RequestPath = new PathString("/app")
};
app.UseStaticFiles(options);
var appPath = "app";
var rewriteOptions = new RewriteOptions().AddRedirect("^$", appPath);
app.UseRewriter(rewriteOptions);
}
return app;
}
/// <summary>
/// 启动文档页
/// </summary>
/// <param name="app"></param>
/// <returns></returns>
public static IApplicationBuilder UseDocs(this IApplicationBuilder app)
{
var path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/docs");
if (Directory.Exists(path))
{
var options = new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(path),
RequestPath = new PathString("/docs")
};
app.UseStaticFiles(options);
}
return app;
}
/// <summary>
/// 启用应用停止处理
/// </summary>
/// <returns></returns>
public static IApplicationBuilder UseShutdownHandler(this IApplicationBuilder app)
{
var applicationLifetime = app.ApplicationServices.GetRequiredService<IHostApplicationLifetime>();
applicationLifetime.ApplicationStopping.Register(() =>
{
var handlers = app.ApplicationServices.GetServices<IAppShutdownHandler>().ToList();
foreach (var handler in handlers)
{
handler.Handle();
}
});
return app;
}
}
}
| 29.596491 | 129 | 0.522031 | [
"MIT"
] | 380138129/NetModular | src/Framework/Host/Host.Web/ApplicationBuilderExtensions.cs | 5,209 | C# |
#region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion
using Grpc.AspNetCore.Server;
using Grpc.AspNetCore.Server.Internal;
using Grpc.AspNetCore.Server.Model;
using Grpc.AspNetCore.Server.Model.Internal;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extension methods for the gRPC services.
/// </summary>
public static class GrpcServicesExtensions
{
/// <summary>
/// Adds service specific options to an <see cref="IGrpcServerBuilder"/>.
/// </summary>
/// <typeparam name="TService">The service type to configure.</typeparam>
/// <param name="grpcBuilder">The <see cref="IGrpcServerBuilder"/>.</param>
/// <param name="configure">A callback to configure the service options.</param>
/// <returns>The same instance of the <see cref="IGrpcServerBuilder"/> for chaining.</returns>
public static IGrpcServerBuilder AddServiceOptions<TService>(this IGrpcServerBuilder grpcBuilder, Action<GrpcServiceOptions<TService>> configure) where TService : class
{
if (grpcBuilder == null)
{
throw new ArgumentNullException(nameof(grpcBuilder));
}
grpcBuilder.Services.AddSingleton<IConfigureOptions<GrpcServiceOptions<TService>>, GrpcServiceOptionsSetup<TService>>();
grpcBuilder.Services.Configure(configure);
return grpcBuilder;
}
/// <summary>
/// Adds gRPC services to the specified <see cref="IServiceCollection" />.
/// </summary>
/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param>
/// <returns>An <see cref="IGrpcServerBuilder"/> that can be used to further configure the gRPC services.</returns>
public static IGrpcServerBuilder AddGrpc(this IServiceCollection services)
{
if (services == null)
{
throw new ArgumentNullException(nameof(services));
}
services.AddRouting();
services.AddOptions();
services.TryAddSingleton<GrpcMarkerService>();
services.TryAddSingleton(typeof(ServerCallHandlerFactory<>));
services.TryAddSingleton(typeof(IGrpcServiceActivator<>), typeof(DefaultGrpcServiceActivator<>));
services.TryAddSingleton(typeof(IGrpcInterceptorActivator<>), typeof(DefaultGrpcInterceptorActivator<>));
services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<GrpcServiceOptions>, GrpcServiceOptionsSetup>());
// Model
services.TryAddSingleton<ServiceMethodsRegistry>();
services.TryAddSingleton(typeof(ServiceRouteBuilder<>));
services.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(IServiceMethodProvider<>), typeof(BinderServiceMethodProvider<>)));
return new GrpcServerBuilder(services);
}
/// <summary>
/// Adds gRPC services to the specified <see cref="IServiceCollection" />.
/// </summary>
/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param>
/// <param name="configureOptions">An <see cref="Action{GrpcServiceOptions}"/> to configure the provided <see cref="GrpcServiceOptions"/>.</param>
/// <returns>An <see cref="IGrpcServerBuilder"/> that can be used to further configure the gRPC services.</returns>
public static IGrpcServerBuilder AddGrpc(this IServiceCollection services, Action<GrpcServiceOptions> configureOptions)
{
if (services == null)
{
throw new ArgumentNullException(nameof(services));
}
return services.Configure(configureOptions).AddGrpc();
}
}
}
| 46.350515 | 176 | 0.677714 | [
"Apache-2.0"
] | ArminShoeibi/grpc-dotnet | src/Grpc.AspNetCore.Server/GrpcServiceExtensions.cs | 4,498 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17626
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CSExcelCallWebService.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
| 39.851852 | 151 | 0.585502 | [
"MIT"
] | Ranin26/msdn-code-gallery-microsoft | OneCodeTeam/How to call web Service in Excel Using VSTO/[C#]-How to call web Service in Excel Using VSTO/C#/CSExcelCallWebService/Properties/Settings.Designer.cs | 1,078 | C# |
using System;
using Baku.LibqiDotNet;
using Baku.LibqiDotNet.Path;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
//作業ディレクトリだけでなく"dlls"というフォルダのライブラリも実行中に参照できるよう設定を変更
PathModifier.AddEnvironmentPath("dlls", PathModifyMode.RelativeToEntryAssembly);
//HelloWorldの対象とするマシンのアドレスをIPとポート(ポートは通常9559)で指定
string address = "tcp://127.0.0.1:9559";
var session = QiSession.Create(address);
Console.WriteLine($"Connected? {session.IsConnected}");
if (!session.IsConnected)
{
Console.WriteLine("end program because there is no connection");
return;
}
//最も基本的なモジュールの一つとして合成音声のモジュールを取得
var tts = session.GetService("ALTextToSpeech");
//"say"関数に文字列引数を指定して実行
tts["say"].Call("this is test");
session.Close();
session.Destroy();
}
}
}
| 27.263158 | 93 | 0.561776 | [
"MIT"
] | malaybaku/BakuLibQiDotNet | Baku.LibqiDotNet/HelloWorld/Program.cs | 1,270 | C# |
/* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace OpenSearch.Client
{
/// <inheritdoc cref="IRankFeatureProperty"/>
public class RankFeatureAttribute : OpenSearchPropertyAttributeBase, IRankFeatureProperty
{
public RankFeatureAttribute() : base(FieldType.RankFeature) { }
private IRankFeatureProperty Self => this;
/// <inheritdoc cref="IRankFeatureProperty.PositiveScoreImpact"/>
public bool PositiveScoreImpact
{
get => Self.PositiveScoreImpact.GetValueOrDefault(true);
set => Self.PositiveScoreImpact = value;
}
bool? IRankFeatureProperty.PositiveScoreImpact { get; set; }
}
}
| 34.893617 | 90 | 0.766463 | [
"Apache-2.0"
] | opensearch-project/opensearch-net | src/OpenSearch.Client/Mapping/Types/Core/RankFeature/RankFeatureAttribute.cs | 1,640 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace DIO.games
{
// Just to take a ID
public abstract class BaseEntity
{
public int Id { get; protected set; }
}
}
| 16.384615 | 45 | 0.657277 | [
"MIT"
] | Victor-BwD/DIO.games | DIO.games/Classes/BaseEntity.cs | 215 | C# |
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Ordering.Application.Contracts.Infrastructure;
using Ordering.Application.Models;
using SendGrid;
using SendGrid.Helpers.Mail;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ordering.Infrastructure.Mail
{
public class EmailService : IEmailService
{
public EmailSettings _emailSettings { get; set; }
public ILogger<EmailService> _logger { get; set; }
public EmailService(IOptions<EmailSettings> emailSettings, ILogger<EmailService> logger)
{
_emailSettings = emailSettings.Value;
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
}
public async Task<bool> SendEmail(Email email)
{
var client = new SendGridClient(_emailSettings.ApiKey);
var subject = email.Subject;
var to = new EmailAddress(email.To);
var emailBody = email.Body;
var from = new EmailAddress
{
Email = _emailSettings.FromAddress,
Name = _emailSettings.FromName
};
var sendGridMessage = MailHelper.CreateSingleEmail(from, to, subject, emailBody, emailBody);
var response = await client.SendEmailAsync(sendGridMessage);
_logger.LogInformation("Email sent.");
if (response.StatusCode == System.Net.HttpStatusCode.Accepted || response.StatusCode == System.Net.HttpStatusCode.OK)
return true;
_logger.LogError("Email sending failed.");
return false;
}
}
}
| 31.62963 | 129 | 0.655152 | [
"MIT"
] | alexander2g3/AspnetMicroservices | src/Services/Ordering/Ordering.Infrastructure/Mail/EmailService.cs | 1,710 | C# |
namespace ServiceBouncer
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.toolStripContainer = new System.Windows.Forms.ToolStripContainer();
this.statusStrip = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.dataGridView = new System.Windows.Forms.DataGridView();
this.dataGridStatusIcon = new System.Windows.Forms.DataGridViewImageColumn();
this.dataGridName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridStatupType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.contextMenuStartItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStopItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuRestartItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuSpacer1 = new System.Windows.Forms.ToolStripSeparator();
this.contextMenuDeleteItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStartupTypeItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextStatupTypeAutomatic = new System.Windows.Forms.ToolStripMenuItem();
this.contextStartupTypeManual = new System.Windows.Forms.ToolStripMenuItem();
this.contextStartupTypeDisabled = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuSpacer2 = new System.Windows.Forms.ToolStripSeparator();
this.contextMenuRefreshItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuSpacer3 = new System.Windows.Forms.ToolStripSeparator();
this.contextMenuOpenLocation = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuAssemblyInfo = new System.Windows.Forms.ToolStripMenuItem();
this.serviceViewModelBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.toolStrip = new System.Windows.Forms.ToolStrip();
this.toolStripConnectButton = new System.Windows.Forms.ToolStripButton();
this.toolStripConnectToTextBox = new System.Windows.Forms.ToolStripTextBox();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripStartButton = new System.Windows.Forms.ToolStripButton();
this.toolStripPauseButton = new System.Windows.Forms.ToolStripButton();
this.toolStripStopButton = new System.Windows.Forms.ToolStripButton();
this.toolStripRestartButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripDeleteButton = new System.Windows.Forms.ToolStripButton();
this.toolStripInstallButton = new System.Windows.Forms.ToolStripButton();
this.toolStripStartupTypeButton = new System.Windows.Forms.ToolStripDropDownButton();
this.toolStripStartupTypeAutomaticItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripStartupTypeManualItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripStartupTypeDisabledItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripExplorerButton = new System.Windows.Forms.ToolStripButton();
this.toolStripInfoButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripRefreshButton = new System.Windows.Forms.ToolStripButton();
this.toolStripFilterIcon = new System.Windows.Forms.ToolStripLabel();
this.toolStripFilterBox = new System.Windows.Forms.ToolStripTextBox();
this.refreshTimer = new System.Windows.Forms.Timer(this.components);
this.toolStripContainer.BottomToolStripPanel.SuspendLayout();
this.toolStripContainer.ContentPanel.SuspendLayout();
this.toolStripContainer.TopToolStripPanel.SuspendLayout();
this.toolStripContainer.SuspendLayout();
this.statusStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.contextMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.serviceViewModelBindingSource)).BeginInit();
this.toolStrip.SuspendLayout();
this.SuspendLayout();
//
// toolStripContainer
//
//
// toolStripContainer.BottomToolStripPanel
//
this.toolStripContainer.BottomToolStripPanel.Controls.Add(this.statusStrip);
//
// toolStripContainer.ContentPanel
//
this.toolStripContainer.ContentPanel.Controls.Add(this.dataGridView);
this.toolStripContainer.ContentPanel.Size = new System.Drawing.Size(1008, 307);
this.toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.toolStripContainer.Location = new System.Drawing.Point(0, 0);
this.toolStripContainer.Name = "toolStripContainer";
this.toolStripContainer.Size = new System.Drawing.Size(1008, 361);
this.toolStripContainer.TabIndex = 0;
this.toolStripContainer.Text = "toolStripContainer";
//
// toolStripContainer.TopToolStripPanel
//
this.toolStripContainer.TopToolStripPanel.Controls.Add(this.toolStrip);
this.toolStripContainer.TopToolStripPanel.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
this.toolStripContainer.TopToolStripPanel.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0);
//
// statusStrip
//
this.statusStrip.Dock = System.Windows.Forms.DockStyle.None;
this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel});
this.statusStrip.Location = new System.Drawing.Point(0, 0);
this.statusStrip.Name = "statusStrip";
this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.statusStrip.Size = new System.Drawing.Size(1008, 22);
this.statusStrip.TabIndex = 2;
this.statusStrip.Text = "statusStrip1";
//
// toolStripStatusLabel
//
this.toolStripStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripStatusLabel.Name = "toolStripStatusLabel";
this.toolStripStatusLabel.Size = new System.Drawing.Size(0, 17);
//
// dataGridView
//
this.dataGridView.AllowUserToAddRows = false;
this.dataGridView.AllowUserToDeleteRows = false;
this.dataGridView.AllowUserToResizeRows = false;
this.dataGridView.AutoGenerateColumns = false;
this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dataGridView.BackgroundColor = System.Drawing.Color.White;
this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleHorizontal;
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridStatusIcon,
this.dataGridName,
this.dataGridStatus,
this.dataGridStatupType});
this.dataGridView.ContextMenuStrip = this.contextMenu;
this.dataGridView.DataSource = this.serviceViewModelBindingSource;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.Margin = new System.Windows.Forms.Padding(7);
this.dataGridView.Name = "dataGridView";
this.dataGridView.ReadOnly = true;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(2);
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView.RowHeadersVisible = false;
this.dataGridView.RowTemplate.Height = 25;
this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView.Size = new System.Drawing.Size(1008, 307);
this.dataGridView.TabIndex = 0;
//
// dataGridStatusIcon
//
this.dataGridStatusIcon.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.dataGridStatusIcon.DataPropertyName = "StatusIcon";
this.dataGridStatusIcon.FillWeight = 50.76142F;
this.dataGridStatusIcon.HeaderText = "";
this.dataGridStatusIcon.MinimumWidth = 30;
this.dataGridStatusIcon.Name = "dataGridStatusIcon";
this.dataGridStatusIcon.ReadOnly = true;
this.dataGridStatusIcon.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridStatusIcon.Width = 30;
//
// dataGridName
//
this.dataGridName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridName.DataPropertyName = "Name";
this.dataGridName.FillWeight = 70.05687F;
this.dataGridName.HeaderText = "Display Name";
this.dataGridName.Name = "dataGridName";
this.dataGridName.ReadOnly = true;
//
// dataGridStatus
//
this.dataGridStatus.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.dataGridStatus.DataPropertyName = "Status";
this.dataGridStatus.FillWeight = 70.05687F;
this.dataGridStatus.HeaderText = "Status";
this.dataGridStatus.Name = "dataGridStatus";
this.dataGridStatus.ReadOnly = true;
this.dataGridStatus.Width = 68;
//
// dataGridStatupType
//
this.dataGridStatupType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.dataGridStatupType.DataPropertyName = "StartupType";
this.dataGridStatupType.FillWeight = 209.125F;
this.dataGridStatupType.HeaderText = "Startup Type";
this.dataGridStatupType.Name = "dataGridStatupType";
this.dataGridStatupType.ReadOnly = true;
this.dataGridStatupType.Width = 102;
//
// contextMenu
//
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.contextMenuStartItem,
this.contextMenuStopItem,
this.contextMenuRestartItem,
this.contextMenuSpacer1,
this.contextMenuDeleteItem,
this.contextMenuStartupTypeItem,
this.contextMenuSpacer2,
this.contextMenuRefreshItem,
this.contextMenuSpacer3,
this.contextMenuOpenLocation,
this.contextMenuAssemblyInfo});
this.contextMenu.Name = "contextMenu";
this.contextMenu.Size = new System.Drawing.Size(180, 198);
//
// contextMenuStartItem
//
this.contextMenuStartItem.Image = global::ServiceBouncer.Properties.Resources.Start;
this.contextMenuStartItem.Name = "contextMenuStartItem";
this.contextMenuStartItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuStartItem.Text = "Start";
this.contextMenuStartItem.Click += new System.EventHandler(this.StartClicked);
//
// contextMenuStopItem
//
this.contextMenuStopItem.Image = global::ServiceBouncer.Properties.Resources.Stop;
this.contextMenuStopItem.Name = "contextMenuStopItem";
this.contextMenuStopItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuStopItem.Text = "Stop";
this.contextMenuStopItem.Click += new System.EventHandler(this.StopClicked);
//
// contextMenuRestartItem
//
this.contextMenuRestartItem.Image = global::ServiceBouncer.Properties.Resources.Restart;
this.contextMenuRestartItem.Name = "contextMenuRestartItem";
this.contextMenuRestartItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuRestartItem.Text = "Restart";
this.contextMenuRestartItem.Click += new System.EventHandler(this.RestartClicked);
//
// contextMenuSpacer1
//
this.contextMenuSpacer1.Name = "contextMenuSpacer1";
this.contextMenuSpacer1.Size = new System.Drawing.Size(176, 6);
//
// contextMenuDeleteItem
//
this.contextMenuDeleteItem.Image = global::ServiceBouncer.Properties.Resources.Delete;
this.contextMenuDeleteItem.Name = "contextMenuDeleteItem";
this.contextMenuDeleteItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuDeleteItem.Text = "Delete";
this.contextMenuDeleteItem.Click += new System.EventHandler(this.DeleteClicked);
//
// contextMenuStartupTypeItem
//
this.contextMenuStartupTypeItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.contextStatupTypeAutomatic,
this.contextStartupTypeManual,
this.contextStartupTypeDisabled});
this.contextMenuStartupTypeItem.Image = global::ServiceBouncer.Properties.Resources.Startup;
this.contextMenuStartupTypeItem.Name = "contextMenuStartupTypeItem";
this.contextMenuStartupTypeItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuStartupTypeItem.Text = "Startup Type";
//
// contextStatupTypeAutomatic
//
this.contextStatupTypeAutomatic.Name = "contextStatupTypeAutomatic";
this.contextStatupTypeAutomatic.Size = new System.Drawing.Size(130, 22);
this.contextStatupTypeAutomatic.Text = "Automatic";
this.contextStatupTypeAutomatic.Click += new System.EventHandler(this.StartupAutomaticClicked);
//
// contextStartupTypeManual
//
this.contextStartupTypeManual.Name = "contextStartupTypeManual";
this.contextStartupTypeManual.Size = new System.Drawing.Size(130, 22);
this.contextStartupTypeManual.Text = "Manual";
this.contextStartupTypeManual.Click += new System.EventHandler(this.StartupManualClicked);
//
// contextStartupTypeDisabled
//
this.contextStartupTypeDisabled.Name = "contextStartupTypeDisabled";
this.contextStartupTypeDisabled.Size = new System.Drawing.Size(130, 22);
this.contextStartupTypeDisabled.Text = "Disabled";
this.contextStartupTypeDisabled.Click += new System.EventHandler(this.StartupDisabledClick);
//
// contextMenuSpacer2
//
this.contextMenuSpacer2.Name = "contextMenuSpacer2";
this.contextMenuSpacer2.Size = new System.Drawing.Size(176, 6);
//
// contextMenuRefreshItem
//
this.contextMenuRefreshItem.Image = global::ServiceBouncer.Properties.Resources.Refresh;
this.contextMenuRefreshItem.Name = "contextMenuRefreshItem";
this.contextMenuRefreshItem.Size = new System.Drawing.Size(179, 22);
this.contextMenuRefreshItem.Text = "Refresh";
this.contextMenuRefreshItem.Click += new System.EventHandler(this.RefreshClicked);
//
// contextMenuSpacer3
//
this.contextMenuSpacer3.Name = "contextMenuSpacer3";
this.contextMenuSpacer3.Size = new System.Drawing.Size(176, 6);
//
// contextMenuOpenLocation
//
this.contextMenuOpenLocation.Image = global::ServiceBouncer.Properties.Resources.Browse;
this.contextMenuOpenLocation.Name = "contextMenuOpenLocation";
this.contextMenuOpenLocation.Size = new System.Drawing.Size(179, 22);
this.contextMenuOpenLocation.Text = "Open Service Folder";
this.contextMenuOpenLocation.Click += new System.EventHandler(this.OpenServiceLocationClick);
//
// contextMenuAssemblyInfo
//
this.contextMenuAssemblyInfo.Image = global::ServiceBouncer.Properties.Resources.Info;
this.contextMenuAssemblyInfo.Name = "contextMenuAssemblyInfo";
this.contextMenuAssemblyInfo.Size = new System.Drawing.Size(179, 22);
this.contextMenuAssemblyInfo.Text = "Assembly Info";
this.contextMenuAssemblyInfo.Click += new System.EventHandler(this.AssemblyInfoClick);
//
// serviceViewModelBindingSource
//
this.serviceViewModelBindingSource.DataSource = typeof(ServiceBouncer.ServiceViewModel);
//
// toolStrip
//
this.toolStrip.AllowMerge = false;
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip.ImageScalingSize = new System.Drawing.Size(25, 25);
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripConnectButton,
this.toolStripConnectToTextBox,
this.toolStripSeparator3,
this.toolStripStartButton,
this.toolStripPauseButton,
this.toolStripStopButton,
this.toolStripRestartButton,
this.toolStripSeparator1,
this.toolStripDeleteButton,
this.toolStripInstallButton,
this.toolStripStartupTypeButton,
this.toolStripExplorerButton,
this.toolStripInfoButton,
this.toolStripSeparator2,
this.toolStripRefreshButton,
this.toolStripFilterIcon,
this.toolStripFilterBox});
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.toolStrip.Location = new System.Drawing.Point(0, 0);
this.toolStrip.Name = "toolStrip";
this.toolStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.toolStrip.Size = new System.Drawing.Size(1008, 32);
this.toolStrip.Stretch = true;
this.toolStrip.TabIndex = 0;
//
// toolStripConnectButton
//
this.toolStripConnectButton.Image = global::ServiceBouncer.Properties.Resources.Connect;
this.toolStripConnectButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripConnectButton.Name = "toolStripConnectButton";
this.toolStripConnectButton.Size = new System.Drawing.Size(95, 29);
this.toolStripConnectButton.Tag = "Connected";
this.toolStripConnectButton.Text = "Disconnect";
this.toolStripConnectButton.ToolTipText = "Disconnect";
this.toolStripConnectButton.Click += new System.EventHandler(this.ConnectButtonClick);
//
// toolStripConnectToTextBox
//
this.toolStripConnectToTextBox.Margin = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.toolStripConnectToTextBox.MaxLength = 120;
this.toolStripConnectToTextBox.Name = "toolStripConnectToTextBox";
this.toolStripConnectToTextBox.Size = new System.Drawing.Size(500, 23);
this.toolStripConnectToTextBox.Text = "localhost";
this.toolStripConnectToTextBox.ToolTipText = "Hostname of the machine to connect to";
this.toolStripConnectToTextBox.Visible = false;
this.toolStripConnectToTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConnectTextBoxKeyDown);
//
// toolStripSeparator3
//
this.toolStripSeparator3.AutoSize = false;
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 29);
//
// toolStripStartButton
//
this.toolStripStartButton.Image = global::ServiceBouncer.Properties.Resources.Start;
this.toolStripStartButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripStartButton.Name = "toolStripStartButton";
this.toolStripStartButton.Size = new System.Drawing.Size(60, 29);
this.toolStripStartButton.Text = "Start";
this.toolStripStartButton.Click += new System.EventHandler(this.StartClicked);
//
// toolStripPauseButton
//
this.toolStripPauseButton.Image = global::ServiceBouncer.Properties.Resources.Pause;
this.toolStripPauseButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripPauseButton.Name = "toolStripPauseButton";
this.toolStripPauseButton.Size = new System.Drawing.Size(67, 29);
this.toolStripPauseButton.Text = "Pause";
this.toolStripPauseButton.Click += new System.EventHandler(this.PauseClicked);
//
// toolStripStopButton
//
this.toolStripStopButton.Image = global::ServiceBouncer.Properties.Resources.Stop;
this.toolStripStopButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripStopButton.Name = "toolStripStopButton";
this.toolStripStopButton.Size = new System.Drawing.Size(60, 29);
this.toolStripStopButton.Text = "Stop";
this.toolStripStopButton.Click += new System.EventHandler(this.StopClicked);
//
// toolStripRestartButton
//
this.toolStripRestartButton.Image = global::ServiceBouncer.Properties.Resources.Restart;
this.toolStripRestartButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripRestartButton.Name = "toolStripRestartButton";
this.toolStripRestartButton.Size = new System.Drawing.Size(72, 29);
this.toolStripRestartButton.Text = "Restart";
this.toolStripRestartButton.ToolTipText = "Stop, wait, then start";
this.toolStripRestartButton.Click += new System.EventHandler(this.RestartClicked);
//
// toolStripSeparator1
//
this.toolStripSeparator1.AutoSize = false;
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29);
//
// toolStripDeleteButton
//
this.toolStripDeleteButton.Image = global::ServiceBouncer.Properties.Resources.Delete;
this.toolStripDeleteButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDeleteButton.Name = "toolStripDeleteButton";
this.toolStripDeleteButton.Size = new System.Drawing.Size(69, 29);
this.toolStripDeleteButton.Text = "Delete";
this.toolStripDeleteButton.Click += new System.EventHandler(this.DeleteClicked);
//
// toolStripInstallButton
//
this.toolStripInstallButton.Image = global::ServiceBouncer.Properties.Resources.Install;
this.toolStripInstallButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripInstallButton.Name = "toolStripInstallButton";
this.toolStripInstallButton.Size = new System.Drawing.Size(67, 29);
this.toolStripInstallButton.Text = "Install";
this.toolStripInstallButton.Click += new System.EventHandler(this.InstallClicked);
//
// toolStripStartupTypeButton
//
this.toolStripStartupTypeButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStartupTypeAutomaticItem,
this.toolStripStartupTypeManualItem,
this.toolStripStartupTypeDisabledItem});
this.toolStripStartupTypeButton.Image = global::ServiceBouncer.Properties.Resources.Startup;
this.toolStripStartupTypeButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripStartupTypeButton.Name = "toolStripStartupTypeButton";
this.toolStripStartupTypeButton.Size = new System.Drawing.Size(83, 29);
this.toolStripStartupTypeButton.Text = "Startup";
//
// toolStripStartupTypeAutomaticItem
//
this.toolStripStartupTypeAutomaticItem.Name = "toolStripStartupTypeAutomaticItem";
this.toolStripStartupTypeAutomaticItem.Size = new System.Drawing.Size(130, 22);
this.toolStripStartupTypeAutomaticItem.Text = "Automatic";
this.toolStripStartupTypeAutomaticItem.Click += new System.EventHandler(this.StartupAutomaticClicked);
//
// toolStripStartupTypeManualItem
//
this.toolStripStartupTypeManualItem.Name = "toolStripStartupTypeManualItem";
this.toolStripStartupTypeManualItem.Size = new System.Drawing.Size(130, 22);
this.toolStripStartupTypeManualItem.Text = "Manual";
this.toolStripStartupTypeManualItem.Click += new System.EventHandler(this.StartupManualClicked);
//
// toolStripStartupTypeDisabledItem
//
this.toolStripStartupTypeDisabledItem.Name = "toolStripStartupTypeDisabledItem";
this.toolStripStartupTypeDisabledItem.Size = new System.Drawing.Size(130, 22);
this.toolStripStartupTypeDisabledItem.Text = "Disabled";
this.toolStripStartupTypeDisabledItem.Click += new System.EventHandler(this.StartupDisabledClick);
//
// toolStripExplorerButton
//
this.toolStripExplorerButton.Image = global::ServiceBouncer.Properties.Resources.Browse;
this.toolStripExplorerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripExplorerButton.Name = "toolStripExplorerButton";
this.toolStripExplorerButton.Size = new System.Drawing.Size(74, 29);
this.toolStripExplorerButton.Text = "Browse";
this.toolStripExplorerButton.Click += new System.EventHandler(this.OpenServiceLocationClick);
//
// toolStripInfoButton
//
this.toolStripInfoButton.Image = global::ServiceBouncer.Properties.Resources.Info;
this.toolStripInfoButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripInfoButton.Name = "toolStripInfoButton";
this.toolStripInfoButton.Size = new System.Drawing.Size(57, 29);
this.toolStripInfoButton.Text = "Info";
this.toolStripInfoButton.Click += new System.EventHandler(this.AssemblyInfoClick);
//
// toolStripSeparator2
//
this.toolStripSeparator2.AutoSize = false;
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 29);
//
// toolStripRefreshButton
//
this.toolStripRefreshButton.Image = global::ServiceBouncer.Properties.Resources.Refresh;
this.toolStripRefreshButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripRefreshButton.Name = "toolStripRefreshButton";
this.toolStripRefreshButton.Size = new System.Drawing.Size(75, 29);
this.toolStripRefreshButton.Text = "Refresh";
this.toolStripRefreshButton.Click += new System.EventHandler(this.RefreshClicked);
//
// toolStripFilterIcon
//
this.toolStripFilterIcon.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripFilterIcon.Image = global::ServiceBouncer.Properties.Resources.Filter;
this.toolStripFilterIcon.Name = "toolStripFilterIcon";
this.toolStripFilterIcon.Size = new System.Drawing.Size(25, 25);
//
// toolStripFilterBox
//
this.toolStripFilterBox.Margin = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.toolStripFilterBox.Name = "toolStripFilterBox";
this.toolStripFilterBox.Size = new System.Drawing.Size(150, 23);
this.toolStripFilterBox.ToolTipText = "Type a name here to filter";
this.toolStripFilterBox.TextChanged += new System.EventHandler(this.FilterBoxTextChanged);
//
// refreshTimer
//
this.refreshTimer.Enabled = true;
this.refreshTimer.Interval = 1000;
this.refreshTimer.Tick += new System.EventHandler(this.RefreshTimerTicked);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 361);
this.Controls.Add(this.toolStripContainer);
this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(1024, 400);
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Service Bouncer";
this.Activated += new System.EventHandler(this.FormActivated);
this.Deactivate += new System.EventHandler(this.FormDeactivated);
this.Load += new System.EventHandler(this.FormLoaded);
this.toolStripContainer.BottomToolStripPanel.ResumeLayout(false);
this.toolStripContainer.BottomToolStripPanel.PerformLayout();
this.toolStripContainer.ContentPanel.ResumeLayout(false);
this.toolStripContainer.TopToolStripPanel.ResumeLayout(false);
this.toolStripContainer.TopToolStripPanel.PerformLayout();
this.toolStripContainer.ResumeLayout(false);
this.toolStripContainer.PerformLayout();
this.statusStrip.ResumeLayout(false);
this.statusStrip.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.contextMenu.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.serviceViewModelBindingSource)).EndInit();
this.toolStrip.ResumeLayout(false);
this.toolStrip.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ToolStripContainer toolStripContainer;
private System.Windows.Forms.ToolStripButton toolStripStartButton;
private System.Windows.Forms.ToolStripButton toolStripStopButton;
private System.Windows.Forms.Timer refreshTimer;
private System.Windows.Forms.DataGridView dataGridView;
private System.Windows.Forms.BindingSource serviceViewModelBindingSource;
private System.Windows.Forms.ToolStripButton toolStripRestartButton;
private System.Windows.Forms.ToolStripTextBox toolStripFilterBox;
private System.Windows.Forms.ToolStripButton toolStripRefreshButton;
private System.Windows.Forms.ToolStripButton toolStripDeleteButton;
private System.Windows.Forms.ContextMenuStrip contextMenu;
private System.Windows.Forms.ToolStripMenuItem contextMenuStartItem;
private System.Windows.Forms.ToolStripMenuItem contextMenuStopItem;
private System.Windows.Forms.ToolStripMenuItem contextMenuRestartItem;
private System.Windows.Forms.ToolStripSeparator contextMenuSpacer2;
private System.Windows.Forms.ToolStripMenuItem contextMenuRefreshItem;
private System.Windows.Forms.ToolStripSeparator contextMenuSpacer1;
private System.Windows.Forms.ToolStripMenuItem contextMenuDeleteItem;
private System.Windows.Forms.ToolStripDropDownButton toolStripStartupTypeButton;
private System.Windows.Forms.ToolStripMenuItem toolStripStartupTypeAutomaticItem;
private System.Windows.Forms.ToolStripMenuItem toolStripStartupTypeManualItem;
private System.Windows.Forms.ToolStripMenuItem toolStripStartupTypeDisabledItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripLabel toolStripFilterIcon;
private System.Windows.Forms.ToolStripButton toolStripPauseButton;
private System.Windows.Forms.ToolStripMenuItem contextMenuStartupTypeItem;
private System.Windows.Forms.ToolStripMenuItem contextStatupTypeAutomatic;
private System.Windows.Forms.ToolStripMenuItem contextStartupTypeManual;
private System.Windows.Forms.ToolStripMenuItem contextStartupTypeDisabled;
private System.Windows.Forms.ToolStrip toolStrip;
private System.Windows.Forms.ToolStripSeparator contextMenuSpacer3;
private System.Windows.Forms.ToolStripMenuItem contextMenuOpenLocation;
private System.Windows.Forms.ToolStripMenuItem contextMenuAssemblyInfo;
private System.Windows.Forms.ToolStripButton toolStripExplorerButton;
private System.Windows.Forms.ToolStripButton toolStripInfoButton;
private System.Windows.Forms.ToolStripButton toolStripInstallButton;
private System.Windows.Forms.ToolStripButton toolStripConnectButton;
private System.Windows.Forms.ToolStripTextBox toolStripConnectToTextBox;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.DataGridViewImageColumn dataGridStatusIcon;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridName;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridStatus;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridStatupType;
private System.Windows.Forms.StatusStrip statusStrip;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel;
}
}
| 60.460094 | 164 | 0.674846 | [
"Apache-2.0"
] | 304NotModified/ServiceBouncer | src/ServiceBouncer/MainForm.Designer.cs | 38,636 | C# |
using System;
using Iviz.Msgs.IvizCommonMsgs;
using Iviz.Controllers;
using Iviz.Resources;
using JetBrains.Annotations;
namespace Iviz.App
{
public sealed class ModuleDataConstructor
{
public ModuleType ModuleType { get; }
[NotNull] public string Topic { get; }
[NotNull] public string Type { get; }
[CanBeNull] public IConfiguration Configuration { get; }
[CanBeNull] public T GetConfiguration<T>() where T : class, IConfiguration => Configuration as T;
public ModuleDataConstructor(ModuleType moduleType,
[NotNull] string topic,
[NotNull] string type,
[CanBeNull] IConfiguration configuration)
{
ModuleType = moduleType;
Topic = topic ?? throw new ArgumentNullException(nameof(topic));
Type = type ?? throw new ArgumentNullException(nameof(type));
Configuration = configuration;
}
}
}
| 34.233333 | 105 | 0.600779 | [
"MIT"
] | KIT-ISAS/iviz | iviz/Assets/Application/POCOs/ModuleDataConstructor.cs | 1,029 | C# |
using System.Threading.Tasks;
using AggregateRoot = Commander.Common.AggregateRoot;
namespace Commander
{
internal interface ICommandAsync<out TRequest, TModel> where TModel : AggregateRoot
{
TRequest Request { get; }
Task InitAsync();
Task<TModel> HandleAsync();
}
} | 25.416667 | 87 | 0.695082 | [
"MIT"
] | ayayalar/Commander | Commander/Commander/ICommandAsync.cs | 307 | C# |
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Text;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json.Linq;
namespace Twitter.Reader
{
public class BearerTokenProvider
{
private IConfigurationRoot _config;
private string _bearerToken;
public BearerTokenProvider(IConfigurationRoot config)
{
_config = config ?? throw new ArgumentNullException(nameof(config));
_bearerToken = _config["TwitterBearerToken"];
}
public async Task<string> GetBearerToken()
{
if (string.IsNullOrEmpty(_bearerToken))
{
_bearerToken = await CreateBearerToken();
_config["TwitterBearerToken"] = _bearerToken;
}
return _bearerToken;
}
private async Task<string> CreateBearerToken()
{
var credential = GetConsumerCredential();
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Clear();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credential);
var content = new FormUrlEncodedContent(new [] {
new KeyValuePair<string, string>("grant_type", "client_credentials")
});
var response = await client.PostAsync(_config["TwitterAuthApi"], content);
if (response.StatusCode == HttpStatusCode.OK)
{
var responseContent = await response.Content.ReadAsStringAsync();
return JObject.Parse(responseContent)["access_token"].ToString();
}
else
{
throw new TwitterAuthenticationException($"Unable to retrieve bearer token: {(await response.Content.ReadAsStringAsync())}");
}
}
}
private string GetConsumerCredential()
{
var consumerKey = WebUtility.UrlEncode(_config["TwitterConsumerKey"]);
var consumerSecret = WebUtility.UrlEncode(_config["TwitterConsumerSecret"]);
var bearerTokenCredential = $"{consumerKey}:{consumerSecret}";
var credentialBytes = Encoding.UTF8.GetBytes(bearerTokenCredential);
var base64Credential = Convert.ToBase64String(credentialBytes);
return base64Credential;
}
}
} | 33.802632 | 145 | 0.60724 | [
"MIT"
] | dazfuller/nottinghamtrams-functions | Twitter.Reader/BearerTokenProvider.cs | 2,571 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Nest.Resolvers;
using Newtonsoft.Json;
namespace Nest
{
public class Ip4RangeAggregationDescriptor<T> : BucketAggregationBaseDescriptor<Ip4RangeAggregationDescriptor<T>, T>
where T : class
{
[JsonProperty("field")]
internal PropertyPathMarker _Field { get; set; }
public Ip4RangeAggregationDescriptor<T> Field(string field)
{
this._Field = field;
return this;
}
public Ip4RangeAggregationDescriptor<T> Field(Expression<Func<T, object>> field)
{
this._Field = field;
return this;
}
[JsonProperty(PropertyName = "ranges")]
internal IEnumerable<Ip4Range> _Ranges { get; set; }
public Ip4RangeAggregationDescriptor<T> Ranges(params string[] ranges)
{
var newRanges = from range in ranges let r = new Ip4Range().Mask(range) select r;
this._Ranges = newRanges;
return this;
}
}
} | 23.974359 | 117 | 0.736898 | [
"Apache-2.0"
] | NickCraver/NEST | src/Nest/DSL/Aggregations/Ip4RangeAggregationDescriptor.cs | 935 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
[System.Serializable] public class IntUnityEvent : UnityEvent<int> { }
public class IntEventListener : EventListener<int, IntEvent, IntUnityEvent>
{
}
| 22 | 75 | 0.787879 | [
"CC0-1.0"
] | caioguedesam/wildfire_rescue | Assets/Scripts/Events/Listeners/IntEventListener.cs | 266 | C# |
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using Abp.Authorization;
using ChatApplication.Authorization.Roles;
using ChatApplication.Authorization.Users;
using ChatApplication.MultiTenancy;
using Microsoft.Extensions.Logging;
namespace ChatApplication.Identity
{
public class SecurityStampValidator : AbpSecurityStampValidator<Tenant, Role, User>
{
public SecurityStampValidator(
IOptions<SecurityStampValidatorOptions> options,
SignInManager signInManager,
ISystemClock systemClock,
ILoggerFactory loggerFactory)
: base(options, signInManager, systemClock, loggerFactory)
{
}
}
}
| 31.375 | 87 | 0.74502 | [
"MIT"
] | priyanka091088/ChatApplication | aspnet-core/src/ChatApplication.Core/Identity/SecurityStampValidator.cs | 755 | C# |
using AKCCore;
using AKCWebCore.Extensions;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace AKCWebCore.Models {
public class ParserWebHelper {
public string language { get; set; }
public bool reset { get; set; }
public string content { get; set; }
public string preview { get; set; }
public List<Clipping> clippingData;
public const string helperKey = "ParserHelper";
//Sync
public ParserWebHelper() {
InitHelper();
}
public void InitHelper() {
this.preview = "A preview of your text will appear here.";
this.language = "English";
this.reset = false;
this.clippingData = new List<Clipping>();
//Avoids serialization circular reference issue in CultureInfo
Newtonsoft.Json.JsonConvert.DefaultSettings = () => new Newtonsoft.Json.JsonSerializerSettings() {
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
};
}
//Session-aware helper
public static ParserWebHelper GetHelper(IServiceProvider services) {
ISession session = services.GetRequiredService<IHttpContextAccessor>()?
.HttpContext.Session;
ParserWebHelper helper = session?.GetJson<ParserWebHelper>(helperKey)
?? new ParserWebHelper();
helper.Session = session;
return helper;
}
public void Save() {
Session.SetJson(helperKey, this);
}
public void Reset() {
Session.Remove(helperKey);
InitHelper();
}
[JsonIgnore]
public ISession Session { get; set; }
}
} | 30.966102 | 110 | 0.611385 | [
"Unlicense"
] | DazEdword/AK-Clipper | AKCWebCore/Models/ParserWebHelper.cs | 1,829 | C# |
/*
* Copyright 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace ZXing
{
/// <summary>
/// Represents some type of metadata about the result of the decoding that the decoder
/// wishes to communicate back to the caller.
/// </summary>
/// <author>Sean Owen</author>
public enum ResultMetadataType
{
/// <summary>
/// Unspecified, application-specific metadata. Maps to an unspecified {@link Object}.
/// </summary>
OTHER,
/// <summary>
/// Denotes the likely approximate orientation of the barcode in the image. This value
/// is given as degrees rotated clockwise from the normal, upright orientation.
/// For example a 1D barcode which was found by reading top-to-bottom would be
/// said to have orientation "90". This key maps to an {@link Integer} whose
/// value is in the range [0,360).
/// </summary>
ORIENTATION,
/// <summary>
/// <p>2D barcode formats typically encode text, but allow for a sort of 'byte mode'
/// which is sometimes used to encode binary data. While {@link Result} makes available
/// the complete raw bytes in the barcode for these formats, it does not offer the bytes
/// from the byte segments alone.</p>
/// <p>This maps to a {@link java.util.List} of byte arrays corresponding to the
/// raw bytes in the byte segments in the barcode, in order.</p>
/// </summary>
BYTE_SEGMENTS,
/// <summary>
/// Error correction level used, if applicable. The value type depends on the
/// format, but is typically a String.
/// </summary>
ERROR_CORRECTION_LEVEL,
/// <summary>
/// For some periodicals, indicates the issue number as an {@link Integer}.
/// </summary>
ISSUE_NUMBER,
/// <summary>
/// For some products, indicates the suggested retail price in the barcode as a
/// formatted {@link String}.
/// </summary>
SUGGESTED_PRICE,
/// <summary>
/// For some products, the possible country of manufacture as a {@link String} denoting the
/// ISO country code. Some map to multiple possible countries, like "US/CA".
/// </summary>
POSSIBLE_COUNTRY,
/// <summary>
/// For some products, the extension text
/// </summary>
UPC_EAN_EXTENSION,
/// <summary>
/// If the code format supports structured append and
/// the current scanned code is part of one then the
/// sequence number is given with it.
/// </summary>
STRUCTURED_APPEND_SEQUENCE,
/// <summary>
/// If the code format supports structured append and
/// the current scanned code is part of one then the
/// parity is given with it.
/// </summary>
STRUCTURED_APPEND_PARITY,
/// <summary>
/// PDF417-specific metadata
/// </summary>
PDF417_EXTRA_METADATA,
/// <summary>
/// Aztec-specific metadata
/// </summary>
AZTEC_EXTRA_METADATA,
/// <summary>
/// Barcode Symbology Identifier.
/// Note: According to the GS1 specification the identifier may have to replace a leading FNC1/GS character when prepending to the barcode content.
/// </summary>
SYMBOLOGY_IDENTIFIER
}
} | 36.953704 | 155 | 0.616387 | [
"MIT"
] | CAnorbo/WalletWasabi | WalletWasabi.Fluent/ZXing/ResultMetadataType.cs | 3,991 | C# |
using Lessons.Tools;
namespace Lessons.Practice.ClassesRelationship
{
class Storage
{
private int _yellowBallCount;
private int _greenBallCount;
private int _blueBallCount;
private int _redBallCount;
public void SaveBalls(int count, Ball[] balls )
{
if (count > balls.Length)
{
CT.ErrorMsg("Вы пытаетесь сохранить в хранилище больше мячей, чем у вас есть!!!");
return;
}
for (int indx = 0; indx < count; indx++)
{
Colors currentBoxColor = balls[indx].Color;
switch (currentBoxColor)
{
case Colors.Yellow:
_yellowBallCount++;
break;
case Colors.Green:
_greenBallCount++;
break;
case Colors.Blue:
_blueBallCount++;
break;
case Colors.Red:
_redBallCount++;
break;
default:
CT.ErrorMsg("Вы пытаетесь сохранить шарик с неизвестным цветом!!!");
break;
}
balls[indx] = null;
}
}
public Ball[] GiveBalls(int count, Colors color)
{
return null;
}
}
}
| 26.428571 | 98 | 0.428378 | [
"MIT"
] | dmitriy-bredun/learnCSH | LearnCSH/Lessons/Practice/ClassesRelationship/Storage.cs | 1,577 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace Microsoft.EntityFrameworkCore.Infrastructure;
/// <summary>
/// Allows relational database specific configuration to be performed on <see cref="DbContextOptions" />.
/// </summary>
/// <remarks>
/// <para>
/// Instances of this class are typically returned from methods that configure the context to use a
/// particular relational database provider.
/// </para>
/// <para>
/// See <see href="https://aka.ms/efcore-docs-dbcontext-options">Using DbContextOptions</see> for more information and examples.
/// </para>
/// </remarks>
public abstract class RelationalDbContextOptionsBuilder<TBuilder, TExtension> : IRelationalDbContextOptionsBuilderInfrastructure
where TBuilder : RelationalDbContextOptionsBuilder<TBuilder, TExtension>
where TExtension : RelationalOptionsExtension, new()
{
/// <summary>
/// Initializes a new instance of the <see cref="RelationalDbContextOptionsBuilder{TBuilder, TExtension}" /> class.
/// </summary>
/// <param name="optionsBuilder">The core options builder.</param>
protected RelationalDbContextOptionsBuilder(DbContextOptionsBuilder optionsBuilder)
{
OptionsBuilder = optionsBuilder;
}
/// <summary>
/// Gets the core options builder.
/// </summary>
protected virtual DbContextOptionsBuilder OptionsBuilder { get; }
/// <inheritdoc />
DbContextOptionsBuilder IRelationalDbContextOptionsBuilderInfrastructure.OptionsBuilder
=> OptionsBuilder;
/// <summary>
/// Configures the maximum number of statements that will be included in commands sent to the database
/// during <see cref="DbContext.SaveChanges()" />.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-saving-data">Saving data with EF Core</see> for more information and examples.
/// </remarks>
/// <param name="maxBatchSize">The maximum number of statements.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder MaxBatchSize(int maxBatchSize)
=> WithOption(e => (TExtension)e.WithMaxBatchSize(maxBatchSize));
/// <summary>
/// Configures the minimum number of statements that are needed for a multi-statement command sent to the database
/// during <see cref="DbContext.SaveChanges()" />.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-saving-data">Saving data with EF Core</see> for more information and examples.
/// </remarks>
/// <param name="minBatchSize">The minimum number of statements.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder MinBatchSize(int minBatchSize)
=> WithOption(e => (TExtension)e.WithMinBatchSize(minBatchSize));
/// <summary>
/// Configures the wait time (in seconds) before terminating the attempt to execute a command and generating an error.
/// </summary>
/// <remarks>
/// <para>
/// This sets the <see cref="DbCommand.CommandTimeout" /> property on the ADO.NET provider being used.
/// </para>
/// <para>
/// An <see cref="ArgumentException" /> is generated if <paramref name="commandTimeout" /> value is less than 0.
/// </para>
/// <para>
/// Zero (0) typically means no timeout will be applied, consult your ADO.NET provider documentation.
/// </para>
/// <para>
/// See <see href="https://aka.ms/efcore-docs-connections">Connections and connection strings</see> for more information and examples.
/// </para>
/// </remarks>
/// <param name="commandTimeout">The time in seconds to wait for the command to execute.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder CommandTimeout(int? commandTimeout)
=> WithOption(e => (TExtension)e.WithCommandTimeout(commandTimeout));
/// <summary>
/// Configures the assembly where migrations are maintained for this context.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-migrations">Database migrations</see> for more information and examples.
/// </remarks>
/// <param name="assemblyName">The name of the assembly.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder MigrationsAssembly(string? assemblyName)
=> WithOption(e => (TExtension)e.WithMigrationsAssembly(Check.NullButNotEmpty(assemblyName, nameof(assemblyName))));
/// <summary>
/// Configures the name of the table used to record which migrations have been applied to the database.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-migrations">Database migrations</see> for more information and examples.
/// </remarks>
/// <param name="tableName">The name of the table.</param>
/// <param name="schema">The schema of the table.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder MigrationsHistoryTable(string tableName, string? schema = null)
{
Check.NotEmpty(tableName, nameof(tableName));
Check.NullButNotEmpty(schema, nameof(schema));
return WithOption(e => (TExtension)e.WithMigrationsHistoryTableName(tableName).WithMigrationsHistoryTableSchema(schema));
}
/// <summary>
/// Configures the context to use relational database semantics when comparing null values. By default,
/// Entity Framework will use C# semantics for null values, and generate SQL to compensate for differences
/// in how the database handles nulls.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-relational-nulls">Relational database null semantics</see> for more information and examples.
/// </remarks>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder UseRelationalNulls(bool useRelationalNulls = true)
=> WithOption(e => (TExtension)e.WithUseRelationalNulls(useRelationalNulls));
/// <summary>
/// Configures the <see cref="QuerySplittingBehavior" /> to use when loading related collections in a query.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-split-queries">EF Core split queries</see> for more information and examples.
/// </remarks>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
public virtual TBuilder UseQuerySplittingBehavior(QuerySplittingBehavior querySplittingBehavior)
=> WithOption(e => (TExtension)e.WithUseQuerySplittingBehavior(querySplittingBehavior));
/// <summary>
/// Configures the context to use the provided <see cref="IExecutionStrategy" />.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-connection-resiliency">Connection resiliency and database retries</see>
/// for more information and examples.
/// </remarks>
/// <param name="getExecutionStrategy">A function that returns a new instance of an execution strategy.</param>
public virtual TBuilder ExecutionStrategy(
Func<ExecutionStrategyDependencies, IExecutionStrategy> getExecutionStrategy)
=> WithOption(
e => (TExtension)e.WithExecutionStrategyFactory(Check.NotNull(getExecutionStrategy, nameof(getExecutionStrategy))));
/// <summary>
/// Sets an option by cloning the extension used to store the settings. This ensures the builder
/// does not modify options that are already in use elsewhere.
/// </summary>
/// <param name="setAction">An action to set the option.</param>
/// <returns>The same builder instance so that multiple calls can be chained.</returns>
protected virtual TBuilder WithOption(Func<TExtension, TExtension> setAction)
{
((IDbContextOptionsBuilderInfrastructure)OptionsBuilder).AddOrUpdateExtension(
setAction(OptionsBuilder.Options.FindExtension<TExtension>() ?? new TExtension()));
return (TBuilder)this;
}
#region Hidden System.Object members
/// <summary>
/// Returns a string that represents the current object.
/// </summary>
/// <returns>A string that represents the current object.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string? ToString()
=> base.ToString();
/// <summary>
/// Determines whether the specified object is equal to the current object.
/// </summary>
/// <param name="obj">The object to compare with the current object.</param>
/// <returns><see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" />.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj)
=> base.Equals(obj);
/// <summary>
/// Serves as the default hash function.
/// </summary>
/// <returns>A hash code for the current object.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode()
=> base.GetHashCode();
#endregion
}
| 49.752577 | 147 | 0.681517 | [
"MIT"
] | Applesauce314/efcore | src/EFCore.Relational/Infrastructure/RelationalDbContextOptionsBuilder.cs | 9,652 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace AutoDumper.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AutoDumper.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
| 43.484375 | 176 | 0.613008 | [
"MIT"
] | rohits79/CaliburnMicroSkeletonWithAutofac | CMSkeleton/Properties/Resources.Designer.cs | 2,785 | C# |
// Project: aguacongas/Identity.Firebase
// Copyright (c) 2020 @Olivier Lefebvre
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace IdentitySample.Models.AccountViewModels
{
public class ForgotPasswordViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
}
}
| 23.111111 | 49 | 0.733173 | [
"Apache-2.0"
] | Aguafrommars/Identity.Redis | samples/IdentitySample.Mvc/Models/AccountViewModels/ForgotPasswordViewModel.cs | 418 | C# |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Blog.Core.Common.DB
{
public class BaseDBConfig
{
/* 之前的单库操作已经删除,如果想要之前的代码,可以查看我的GitHub的历史记录
* 目前是多库操作,默认加载的是appsettings.json设置为true的第一个db连接。
*/
public static (List<MutiDBOperate>, List<MutiDBOperate>) MutiConnectionString => MutiInitConn();
private static string DifDBConnOfSecurity(params string[] conn)
{
foreach (var item in conn)
{
try
{
if (File.Exists(item))
{
return File.ReadAllText(item).Trim();
}
}
catch (System.Exception) { }
}
return conn[conn.Length - 1];
}
public static (List<MutiDBOperate>, List<MutiDBOperate>) MutiInitConn()
{
List<MutiDBOperate> listdatabase = Appsettings.app<MutiDBOperate>("DBS")
.Where(i => i.Enabled).ToList();
foreach (var i in listdatabase)
{
SpecialDbString(i);
}
List<MutiDBOperate> listdatabaseSimpleDB = new List<MutiDBOperate>();//单库
List<MutiDBOperate> listdatabaseSlaveDB = new List<MutiDBOperate>();//从库
// 单库,且不开启读写分离,只保留一个
if (!Appsettings.app(new string[] { "CQRSEnabled" }).ObjToBool() && !Appsettings.app(new string[] { "MutiDBEnabled" }).ObjToBool())
{
if (listdatabase.Count == 1)
{
return (listdatabase, listdatabaseSlaveDB);
}
else
{
var dbFirst = listdatabase.FirstOrDefault(d => d.ConnId == Appsettings.app(new string[] { "MainDB" }).ObjToString());
if (dbFirst == null)
{
dbFirst = listdatabase.FirstOrDefault();
}
listdatabaseSimpleDB.Add(dbFirst);
return (listdatabaseSimpleDB, listdatabaseSlaveDB);
}
}
// 读写分离,且必须是单库模式,获取从库
if (Appsettings.app(new string[] { "CQRSEnabled" }).ObjToBool() && !Appsettings.app(new string[] { "MutiDBEnabled" }).ObjToBool())
{
if (listdatabase.Count > 1)
{
listdatabaseSlaveDB = listdatabase.Where(d => d.ConnId != Appsettings.app(new string[] { "MainDB" }).ObjToString()).ToList();
}
}
return (listdatabase, listdatabaseSlaveDB);
//}
}
private static MutiDBOperate SpecialDbString(MutiDBOperate mutiDBOperate)
{
if (mutiDBOperate.DbType == DataBaseType.Sqlite)
{
mutiDBOperate.Connection = $"DataSource=" + Path.Combine(Environment.CurrentDirectory, mutiDBOperate.Connection);
}
//else if (mutiDBOperate.DbType == DataBaseType.SqlServer)
//{
// mutiDBOperate.Conn = DifDBConnOfSecurity(@"D:\my-file\dbCountPsw1.txt", @"c:\my-file\dbCountPsw1.txt", mutiDBOperate.Conn);
//}
else if (mutiDBOperate.DbType == DataBaseType.MySql)
{
mutiDBOperate.Connection = DifDBConnOfSecurity(@"D:\my-file\dbCountPsw1_MySqlConn.txt", @"c:\my-file\dbCountPsw1_MySqlConn.txt", mutiDBOperate.Connection);
}
else if (mutiDBOperate.DbType == DataBaseType.Oracle)
{
mutiDBOperate.Connection = DifDBConnOfSecurity(@"D:\my-file\dbCountPsw1_OracleConn.txt", @"c:\my-file\dbCountPsw1_OracleConn.txt", mutiDBOperate.Connection);
}
return mutiDBOperate;
}
}
public enum DataBaseType
{
MySql = 0,
SqlServer = 1,
Sqlite = 2,
Oracle = 3,
PostgreSQL = 4
}
public class MutiDBOperate
{
/// <summary>
/// 连接启用开关
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 连接ID
/// </summary>
public string ConnId { get; set; }
/// <summary>
/// 从库执行级别,越大越先执行
/// </summary>
public int HitRate { get; set; }
/// <summary>
/// 连接字符串
/// </summary>
public string Connection { get; set; }
/// <summary>
/// 数据库类型
/// </summary>
public DataBaseType DbType { get; set; }
}
} | 34.125926 | 173 | 0.524202 | [
"MIT"
] | charelyzhao/AspnetDemo | Blog.Core.Common/DB/BaseDBConfig.cs | 4,863 | C# |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Stores;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace IdentityServer4.Services
{
/// <summary>
/// Default token service
/// </summary>
public class DefaultTokenService : ITokenService
{
/// <summary>
/// The logger
/// </summary>
protected readonly ILogger Logger;
/// <summary>
/// The HTTP context accessor
/// </summary>
protected readonly IHttpContextAccessor Context;
/// <summary>
/// The claims provider
/// </summary>
protected readonly IClaimsService ClaimsProvider;
/// <summary>
/// The reference token store
/// </summary>
protected readonly IReferenceTokenStore ReferenceTokenStore;
/// <summary>
/// The signing service
/// </summary>
protected readonly ITokenCreationService CreationService;
/// <summary>
/// The events service
/// </summary>
protected readonly IEventService Events;
/// <summary>
/// Initializes a new instance of the <see cref="DefaultTokenService" /> class. This overloaded constructor is deprecated and will be removed in 3.0.0.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="claimsProvider">The claims provider.</param>
/// <param name="referenceTokenStore">The reference token store.</param>
/// <param name="creationService">The signing service.</param>
/// <param name="events">The events service.</param>
/// <param name="logger">The logger.</param>
public DefaultTokenService(IHttpContextAccessor context, IClaimsService claimsProvider, IReferenceTokenStore referenceTokenStore, ITokenCreationService creationService, IEventService events, ILogger<DefaultTokenService> logger)
{
Logger = logger;
Context = context;
ClaimsProvider = claimsProvider;
ReferenceTokenStore = referenceTokenStore;
CreationService = creationService;
Events = events;
}
/// <summary>
/// Creates an identity token.
/// </summary>
/// <param name="request">The token creation request.</param>
/// <returns>
/// An identity token
/// </returns>
public virtual async Task<Token> CreateIdentityTokenAsync(TokenCreationRequest request)
{
Logger.LogTrace("Creating identity token");
request.Validate();
// host provided claims
var claims = new List<Claim>();
// if nonce was sent, must be mirrored in id token
if (request.Nonce.IsPresent())
{
claims.Add(new Claim(JwtClaimTypes.Nonce, request.Nonce));
}
// add iat claim
claims.Add(new Claim(JwtClaimTypes.IssuedAt, IdentityServerDateTime.UtcNow.ToEpochTime().ToString(), ClaimValueTypes.Integer));
// add at_hash claim
if (request.AccessTokenToHash.IsPresent())
{
claims.Add(new Claim(JwtClaimTypes.AccessTokenHash, HashAdditionalData(request.AccessTokenToHash)));
}
// add c_hash claim
if (request.AuthorizationCodeToHash.IsPresent())
{
claims.Add(new Claim(JwtClaimTypes.AuthorizationCodeHash, HashAdditionalData(request.AuthorizationCodeToHash)));
}
// add sid if present
if (request.ValidatedRequest.SessionId.IsPresent())
{
claims.Add(new Claim(JwtClaimTypes.SessionId, request.ValidatedRequest.SessionId));
}
claims.AddRange(await ClaimsProvider.GetIdentityTokenClaimsAsync(
request.Subject,
request.ValidatedRequest.Client,
request.Resources,
request.IncludeAllIdentityClaims,
request.ValidatedRequest));
var issuer = Context.HttpContext.GetIdentityServerIssuerUri();
var token = new Token(OidcConstants.TokenTypes.IdentityToken)
{
Audiences = { request.ValidatedRequest.Client.ClientId },
Issuer = issuer,
Lifetime = request.ValidatedRequest.Client.IdentityTokenLifetime,
Claims = claims.Distinct(new ClaimComparer()).ToList(),
ClientId = request.ValidatedRequest.Client.ClientId,
AccessTokenType = request.ValidatedRequest.AccessTokenType
};
return token;
}
/// <summary>
/// Creates an access token.
/// </summary>
/// <param name="request">The token creation request.</param>
/// <returns>
/// An access token
/// </returns>
public virtual async Task<Token> CreateAccessTokenAsync(TokenCreationRequest request)
{
Logger.LogTrace("Creating access token");
request.Validate();
var claims = new List<Claim>();
claims.AddRange(await ClaimsProvider.GetAccessTokenClaimsAsync(
request.Subject,
request.ValidatedRequest.Client,
request.Resources,
request.ValidatedRequest));
if (request.ValidatedRequest.Client.IncludeJwtId)
{
claims.Add(new Claim(JwtClaimTypes.JwtId, CryptoRandom.CreateUniqueId(16)));
}
var issuer = Context.HttpContext.GetIdentityServerIssuerUri();
var token = new Token(OidcConstants.TokenTypes.AccessToken)
{
Audiences = { string.Format(Constants.AccessTokenAudience, issuer.EnsureTrailingSlash()) },
Issuer = issuer,
Lifetime = request.ValidatedRequest.AccessTokenLifetime,
Claims = claims,
ClientId = request.ValidatedRequest.Client.ClientId,
AccessTokenType = request.ValidatedRequest.AccessTokenType
};
foreach(var api in request.Resources.ApiResources)
{
if (api.Name.IsPresent())
{
token.Audiences.Add(api.Name);
}
}
return token;
}
/// <summary>
/// Creates a serialized and protected security token.
/// </summary>
/// <param name="token">The token.</param>
/// <returns>
/// A security token in serialized form
/// </returns>
/// <exception cref="System.InvalidOperationException">Invalid token type.</exception>
public virtual async Task<string> CreateSecurityTokenAsync(Token token)
{
string tokenResult;
if (token.Type == OidcConstants.TokenTypes.AccessToken)
{
if (token.AccessTokenType == AccessTokenType.Jwt)
{
Logger.LogTrace("Creating JWT access token");
tokenResult = await CreationService.CreateTokenAsync(token);
}
else
{
Logger.LogTrace("Creating reference access token");
var handle = await ReferenceTokenStore.StoreReferenceTokenAsync(token);
tokenResult = handle;
}
}
else if (token.Type == OidcConstants.TokenTypes.IdentityToken)
{
Logger.LogTrace("Creating JWT identity token");
tokenResult = await CreationService.CreateTokenAsync(token);
}
else
{
throw new InvalidOperationException("Invalid token type.");
}
return tokenResult;
}
/// <summary>
/// Hashes an additional data (e.g. for c_hash or at_hash).
/// </summary>
/// <param name="tokenToHash">The token to hash.</param>
/// <returns></returns>
protected virtual string HashAdditionalData(string tokenToHash)
{
using (var sha = SHA256.Create())
{
var hash = sha.ComputeHash(Encoding.ASCII.GetBytes(tokenToHash));
var leftPart = new byte[16];
Array.Copy(hash, leftPart, 16);
return Base64Url.Encode(leftPart);
}
}
}
} | 36.296748 | 235 | 0.584948 | [
"Apache-2.0"
] | SpoonySeedLSP/IdentityServer4 | src/IdentityServer4/Services/DefaultTokenService.cs | 8,931 | C# |
using System;
using UnityEngine;
namespace TFClassify
{
public class TextureTools
{
// Based on https://gist.github.com/natsupy/e129936543f9b4663a37ea0762172b3b
public enum Options
{
Crop = 0,
Resize = 1
}
public enum RectOptions
{
Center = 0,
BottomRight = 1,
TopRight = 2,
BottomLeft = 3,
TopLeft = 4,
//Top = 5,
//Left = 6,
//Right = 7,
//Bottom = 8,
Custom = 9
}
public static Texture2D CropWithRect(
Texture2D texture, Rect rect, RectOptions rectOptions, int xMod, int yMod)
{
if(rect.height < 0 || rect.width < 0)
{
throw new System.ArgumentException("Invalid texture size");
}
Texture2D result = new Texture2D((int)rect.width, (int)rect.height);
if(rect.width != 0 && rect.height != 0)
{
float xRect = rect.x;
float yRect = rect.y;
float widthRect = rect.width;
float heightRect = rect.height;
switch(rectOptions)
{
case RectOptions.Center:
xRect = (texture.width - rect.width) / 2;
yRect = (texture.height - rect.height) / 2;
break;
case RectOptions.BottomRight:
xRect = texture.width - rect.width;
break;
case RectOptions.BottomLeft:
break;
case RectOptions.TopLeft:
yRect = texture.height - rect.height;
break;
case RectOptions.TopRight:
xRect = texture.width - rect.width;
yRect = texture.height - rect.height;
break;
case RectOptions.Custom:
float tempWidth = texture.width - rect.width - xMod;
float tempHeight = texture.height - rect.height - yMod;
xRect = tempWidth > texture.width ? 0 : tempWidth;
yRect = tempHeight > texture.height ? 0 : tempHeight;
break;
}
if (texture.width < rect.x + rect.width || texture.height < rect.y + rect.height ||
xRect > rect.x + texture.width || yRect > rect.y + texture.height ||
xRect < 0 || yRect < 0 || rect.width < 0 || rect.height < 0)
{
throw new System.ArgumentException("Set value crop less than origin texture size");
}
result.SetPixels(texture.GetPixels(Mathf.FloorToInt(xRect), Mathf.FloorToInt(yRect),
Mathf.FloorToInt(widthRect), Mathf.FloorToInt(heightRect)));
result.Apply();
}
return result;
}
/// <summary>
/// Returns a scaled copy of given texture.
/// </summary>
/// <param name="tex">Source texure to scale</param>
/// <param name="width">Destination texture width</param>
/// <param name="height">Destination texture height</param>
/// <param name="mode">Filtering mode</param>
public static Texture2D scaled(Texture2D src, int width, int height, FilterMode mode = FilterMode.Trilinear)
{
Rect texR = new Rect(0,0,width,height);
_gpu_scale(src,width,height,mode);
//Get rendered data back to a new texture
Texture2D result = new Texture2D(width, height, TextureFormat.ARGB32, true);
result.Resize(width, height);
result.ReadPixels(texR,0,0,true);
return result;
}
/// <summary>
/// Scales the texture data of the given texture.
/// </summary>
/// <param name="tex">Texure to scale</param>
/// <param name="width">New width</param>
/// <param name="height">New height</param>
/// <param name="mode">Filtering mode</param>
public static void scale(Texture2D tex, int width, int height, FilterMode mode = FilterMode.Trilinear)
{
Rect texR = new Rect(0,0,width,height);
_gpu_scale(tex,width,height,mode);
// Update new texture
tex.Resize(width, height);
tex.ReadPixels(texR,0,0,true);
tex.Apply(true); //Remove this if you hate us applying textures for you :)
}
// Internal unility that renders the source texture into the RTT - the scaling method itself.
static void _gpu_scale(Texture2D src, int width, int height, FilterMode fmode)
{
//We need the source texture in VRAM because we render with it
src.filterMode = fmode;
src.Apply(true);
//Using RTT for best quality and performance. Thanks, Unity 5
RenderTexture rtt = new RenderTexture(width, height, 32);
//Set the RTT in order to render to it
Graphics.SetRenderTarget(rtt);
//Setup 2D matrix in range 0..1, so nobody needs to care about sized
GL.LoadPixelMatrix(0,1,1,0);
//Then clear & draw the texture to fill the entire RTT.
GL.Clear(true,true,new Color(0,0,0,0));
Graphics.DrawTexture(new Rect(0,0,1,1),src);
}
public static Texture2D RotateTexture(Texture2D originTexture, int angle) {
var result = RotateImageMatrix(
originTexture.GetPixels32(), originTexture.width, originTexture.height, angle);
var resultTexture = new Texture2D(originTexture.width, originTexture.height);
resultTexture.SetPixels32(result);
resultTexture.Apply();
return resultTexture;
}
public static Color32[] RotateImageMatrix(Color32[] matrix, int width, int height, int angle)
{
Color32[] pix1 = new Color32[matrix.Length];
int x = 0;
int y = 0;
Color32[] pix3 = rotateSquare(
matrix, width, height, (Math.PI/180*(double)angle));
for (int j = 0; j < height; j++){
for (var i = 0; i < width; i++) {
pix1[x + i + width*(j+y)] = pix3[i + j*width];
}
}
return pix3;
}
static Color32[] rotateSquare(Color32[] arr, int width, int height, double phi) {
int x;
int y;
int i;
int j;
double sn = Math.Sin(phi);
double cs = Math.Cos(phi);
Color32[] arr2 = new Color32[arr.Length];
int xc = width/2;
int yc = height/2;
for (j=0; j<height; j++){
for (i=0; i<width; i++){
arr2[j*width+i] = new Color32(0,0,0,0);
x = (int)(cs*(i-xc)+sn*(j-yc)+xc);
y = (int)(-sn*(i-xc)+cs*(j-yc)+yc);
if ((x>-1) && (x<width) &&(y>-1) && (y<height)){
arr2[j*width+i]=arr[y*width+x];
}
}
}
return arr2;
}
}
}
| 36.914692 | 116 | 0.476441 | [
"Apache-2.0"
] | Akazz-L/food-analyzer-AR | Assets/FoodAnalyzerAR/Scripts/TextureTools.cs | 7,789 | C# |
using Microsoft.EntityFrameworkCore.Migrations;
namespace AssignmentManager.Data.Migrations
{
public partial class AddUniqueContstraintOnClassName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Classes",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100);
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Assignments",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100);
migrationBuilder.CreateIndex(
name: "IX_Classes_Name",
table: "Classes",
column: "Name",
unique: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Classes_Name",
table: "Classes");
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Classes",
type: "nvarchar(100)",
maxLength: 100,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Assignments",
type: "nvarchar(100)",
maxLength: 100,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50);
}
}
}
| 31.59375 | 71 | 0.484174 | [
"MIT"
] | Iceto04/assignment-manager | src/AssignmentManager.Data/Migrations/20220319205711_AddUniqueContstraintOnClassName.cs | 2,024 | C# |
namespace WalletWasabi.WabiSabi.Backend.Models;
public enum WabiSabiProtocolErrorCode
{
RoundNotFound,
WrongPhase,
InputSpent,
InputUnconfirmed,
InputImmature,
WrongOwnershipProof,
TooManyInputs,
NotEnoughFunds,
TooMuchFunds,
NonUniqueInputs,
InputBanned,
InputNotWhitelisted,
AliceNotFound,
IncorrectRequestedVsizeCredentials,
TooMuchVsize,
ScriptNotAllowed,
IncorrectRequestedAmountCredentials,
WrongCoinjoinSignature,
SignatureTooLong,
AliceAlreadyRegistered,
NonStandardInput,
NonStandardOutput,
WitnessAlreadyProvided,
InsufficientFees,
SizeLimitExceeded,
DustOutput,
UneconomicalInput,
VsizeQuotaExceeded,
DeltaNotZero,
WrongNumberOfCreds,
CryptoException,
AliceAlreadySignalled,
AliceAlreadyConfirmedConnection,
AlreadyRegisteredScript
}
public static class WabiSabiProtocolErrorCodeExtension
{
public static bool IsEvidencingClearMisbehavior(this WabiSabiProtocolErrorCode errorCode) =>
errorCode
is WabiSabiProtocolErrorCode.InputSpent
or WabiSabiProtocolErrorCode.WrongOwnershipProof
or WabiSabiProtocolErrorCode.ScriptNotAllowed
or WabiSabiProtocolErrorCode.NonStandardInput
or WabiSabiProtocolErrorCode.NonStandardOutput
or WabiSabiProtocolErrorCode.DeltaNotZero
or WabiSabiProtocolErrorCode.WrongNumberOfCreds
or WabiSabiProtocolErrorCode.NonUniqueInputs
or WabiSabiProtocolErrorCode.CryptoException;
}
| 25.127273 | 93 | 0.859624 | [
"MIT"
] | meinmunzen/WalletWasabi | WalletWasabi/WabiSabi/Backend/Models/WabiSabiProtocolErrorCode.cs | 1,382 | C# |
namespace AzureStorageClient
{
using System;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
public interface IAzureTableClient
{
Task<bool> IsAccessible<TStorable>(CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task UpsertAsync<TStorable>(TStorable objectToUpsert, Guid? azureTablePartitionKey = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task<TStorable> GetAsync<TStorable>(Guid azureTableRowId, Guid? azureTablePartitionId = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task<ImmutableList<TStorable>> GetListAsync<TStorable>(Guid? azureTablePartitionId = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task SoftDeleteAsync<TStorable>(Guid azureTableRowId, Guid? azureTablePartitionId = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task RevertSoftDeleteAsync<TStorable>(Guid azureTableRowId, Guid? azureTablePartitionId = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
Task DeleteAsync<TStorable>(Guid azureTableRowId, Guid? azureTablePartitionId = null, CancellationToken cancellationToken = default)
where TStorable : class, ITableStorable, new();
}
}
| 50 | 150 | 0.734375 | [
"MIT"
] | TomaszSynak/AzureStorageClient | Projects/AzureStorageClient.Table/Interfaces/IAzureTableClient.cs | 1,602 | C# |
using System.Linq;
using Verse;
namespace AnimalArmourFix
{
[StaticConstructorOnStartup]
public static class AnimalArmourFix
{
static AnimalArmourFix()
{
var animalsInGame = (from animal in DefDatabase<ThingDef>.AllDefsListForReading
where animal.race is {Animal: true}
select animal).ToList();
foreach (var animalDef in animalsInGame)
{
switch (animalDef.race.baseBodySize)
{
case >= 2.4f:
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallMakeshiftAnimalArmorHuge",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallStandardAnimalArmorHuge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallHeavyAnimalArmorHuge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveMakeshiftAnimalArmorHuge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveStandardAnimalArmorHuge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveHeavyAnimalArmorHuge", false));
break;
case >= 1.3f:
animalDef.recipes.Add(
DefDatabase<RecipeDef>.GetNamed("InstallMakeshiftAnimalArmorLarge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallStandardAnimalArmorLarge",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallHeavyAnimalArmorLarge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveMakeshiftAnimalArmorLarge",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveStandardAnimalArmorLarge", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveHeavyAnimalArmorLarge", false));
break;
case >= 0.7f:
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallMakeshiftAnimalArmorMedium",
false));
animalDef.recipes.Add(
DefDatabase<RecipeDef>.GetNamed("InstallStandardAnimalArmorMedium", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallHeavyAnimalArmorMedium", false));
animalDef.recipes.Add(
DefDatabase<RecipeDef>.GetNamed("RemoveMakeshiftAnimalArmorMedium", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveStandardAnimalArmorMedium",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveHeavyAnimalArmorMedium", false));
break;
case >= 0.3f:
animalDef.recipes.Add(
DefDatabase<RecipeDef>.GetNamed("InstallMakeshiftAnimalArmorSmall", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallStandardAnimalArmorSmall",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallHeavyAnimalArmorSmall", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveMakeshiftAnimalArmorSmall",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveStandardAnimalArmorSmall", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveHeavyAnimalArmorSmall", false));
break;
default:
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallMakeshiftAnimalArmorTiny",
false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallStandardAnimalArmorTiny", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("InstallHeavyAnimalArmorTiny", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveMakeshiftAnimalArmorTiny", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveStandardAnimalArmorTiny", false));
animalDef.recipes.Add(DefDatabase<RecipeDef>.GetNamed("RemoveHeavyAnimalArmorTiny", false));
break;
}
}
if (Prefs.DevMode)
{
Log.Message($"XND Animal Armour: Added armour recipies to {animalsInGame.Count} animal-spieces");
}
}
}
} | 63.405063 | 120 | 0.580156 | [
"MIT"
] | emipa606/XNDAnimalArmor | Source/AnimalArmourCrowbar/AnimalArmourFix.cs | 5,011 | C# |
using System;
namespace aula10 {
class Program {
static void Main(string[] args) {
//Data: 24/04/2021
/*
//1)
int cont = 1;
while (cont <= 10)
{
Console.WriteLine($"{cont} Gustavo");
cont ++;
}
//--------------
//2)
int cont = 11;
do
{
Console.WriteLine($"{cont} Gustavo");
cont ++;
}
while (cont <= 10);
//-------------
//3)
for (int i = 1; i <= 10; i--)
{
Console.WriteLine($"{i} Gustavo");
}
*/
/*
4) Faça um programa que escreva os números ímpares entre 100 e 200
for (int i = 100; i <= 200; i++)
{
if (i % 2 != 0){
Console.WriteLine(i);
}
}
//ou
int cont = 101;
while (cont < 200)
{
Console.WriteLine(cont);
cont += 2;
}
*/
/*
5) Faça um programa que efetue a soma de números entre 1 a 50.
int num = 1, soma = 0;
while (num <= 50)
{
soma += num;
num++;
}
Console.WriteLine(soma);
*/
/*
6) Desenvolva um programa que efetue a soma de todos os números ímpares que são múltiplos de três e que se encontram no conjunto dos números de 1 até 500.
int num = 1, soma = 0;
while (num <= 500)
{
soma += num;
if(soma % 2 != 0)
{
if (soma % 3 == 0)
{
Console.WriteLine(soma);
}
}
num++;
}
*/
}
}
} | 24.329412 | 166 | 0.312379 | [
"MIT"
] | Gust4voMoreira/Aulas-Csharp | aula10/Program.cs | 2,082 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Svg
{
public class SvgFontDefn : IFontDefn
{
private SvgFont _font;
private float _emScale;
private float _ppi;
private float _size;
private Dictionary<string, SvgGlyph> _glyphs;
private Dictionary<string, SvgKern> _kerning;
public float Size
{
get { return _size; }
}
public float SizeInPoints
{
get { return _size * 72.0f / _ppi; }
}
public SvgFontDefn (SvgFont font, float size, float ppi)
{
_font = font;
_size = size;
_ppi = ppi;
var face = _font.Children.OfType<SvgFontFace>().First();
_emScale = _size / face.UnitsPerEm;
}
public float Ascent(ISvgRenderer renderer)
{
float ascent = _font.Descendants().OfType<SvgFontFace>().First().Ascent;
float baselineOffset = this.SizeInPoints * (_emScale / _size) * ascent;
return renderer.DpiY / 72f * baselineOffset;
}
public IList<RectangleF> MeasureCharacters(ISvgRenderer renderer, string text)
{
throw new NotImplementedException();
//var result = new List<RectangleF>();
//using (var path = GetPath(renderer, text, result, false)) { }
//return result;
}
public SizeF MeasureString(ISvgRenderer renderer, string text)
{
throw new NotImplementedException();
//var result = new List<RectangleF>();
//using (var path = GetPath(renderer, text, result, true)) { }
//var nonEmpty = result.Where(r => r != RectangleF.Empty);
//if (!nonEmpty.Any()) return SizeF.Empty;
//return new SizeF(nonEmpty.Last().Right - nonEmpty.First().Left, Ascent(renderer));
}
//public void AddStringToPath(ISvgRenderer renderer, GraphicsPath path, string text, PointF location)
//{
// var textPath = GetPath(renderer, text, null, false);
// if (textPath.PointCount > 0)
// {
// using (var translate = new Matrix())
// {
// translate.Translate(location.X, location.Y);
// textPath.Transform(translate);
// path.AddPath(textPath, false);
// }
// }
//}
//private GraphicsPath GetPath(ISvgRenderer renderer, string text, IList<RectangleF> ranges, bool measureSpaces)
//{
// EnsureDictionaries();
// RectangleF bounds;
// SvgGlyph glyph;
// SvgKern kern;
// GraphicsPath path;
// SvgGlyph prevGlyph = null;
// Matrix scaleMatrix;
// float xPos = 0;
// var ascent = Ascent(renderer);
// var result = new GraphicsPath();
// if (string.IsNullOrEmpty(text)) return result;
// for (int i = 0; i < text.Length; i++)
// {
// if (!_glyphs.TryGetValue(text.Substring(i, 1), out glyph)) glyph = _font.Descendants().OfType<SvgMissingGlyph>().First();
// if (prevGlyph != null && _kerning.TryGetValue(prevGlyph.GlyphName + "|" + glyph.GlyphName, out kern))
// {
// xPos -= kern.Kerning * _emScale;
// }
// path = (GraphicsPath)glyph.Path(renderer).Clone();
// scaleMatrix = new Matrix();
// scaleMatrix.Scale(_emScale, -1 * _emScale, MatrixOrder.Append);
// scaleMatrix.Translate(xPos, ascent, MatrixOrder.Append);
// path.Transform(scaleMatrix);
// scaleMatrix.Dispose();
// bounds = path.GetBounds();
// if (ranges != null)
// {
// if (measureSpaces && bounds == RectangleF.Empty)
// {
// ranges.Add(new RectangleF(xPos, 0, glyph.HorizAdvX * _emScale, ascent));
// }
// else
// {
// ranges.Add(bounds);
// }
// }
// if (path.PointCount > 0) result.AddPath(path, false);
// xPos += glyph.HorizAdvX * _emScale;
// prevGlyph = glyph;
// }
// return result;
//}
private void EnsureDictionaries()
{
if (_glyphs == null) _glyphs = _font.Descendants().OfType<SvgGlyph>().ToDictionary(g => g.Unicode ?? g.GlyphName ?? g.ID);
if (_kerning == null) _kerning = _font.Descendants().OfType<SvgKern>().ToDictionary(k => k.Glyph1 + "|" + k.Glyph2);
}
public void Dispose()
{
_glyphs = null;
_kerning = null;
}
}
}
| 35.4 | 139 | 0.512308 | [
"ECL-2.0",
"Apache-2.0"
] | tocsoft/SvgSharp | src/SvgSharp/Text/SvgFontDefn.cs | 4,958 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Task 2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Task 2")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("0b52f13f-78bf-4780-b3f2-7dd6d844aa17")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 37.432432 | 84 | 0.741516 | [
"MIT"
] | 6e3veR6k/codewars-csharp | resources/csharp-essential-materials/HomeWork Answers/Lesson 13/Task 2/Properties/AssemblyInfo.cs | 1,388 | C# |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Mono.Linker
{
public enum MethodAction
{
Nothing,
Parse,
ForceParse,
ConvertToStub,
ConvertToThrow,
}
} | 21.571429 | 101 | 0.748344 | [
"MIT"
] | AlexanderSemenyak/linker | src/linker/ref/Linker/MethodAction.cs | 304 | C# |
// ReSharper disable InconsistentNaming
using System;
using System.Threading;
using EasyNetQ.Topology;
using EasyNetQ.Consumer;
using Xunit;
namespace EasyNetQ.Tests.Integration
{
[Explicit("Required a RabbitMQ instance on localhost")]
public class MultipleHandlerPerConsumerTests : IDisposable
{
private IBus bus;
public MultipleHandlerPerConsumerTests()
{
bus = RabbitHutch.CreateBus("host=localhost");
}
public void Dispose()
{
bus.Dispose();
}
[Fact]
public void Should_cosume_multiple_message_types()
{
var countdownEvent = new CountdownEvent(3);
var queue = bus.Advanced.QueueDeclare("multiple_types");
bus.Advanced.Consume(queue, x => x
.Add<MyMessage>((message, info) =>
{
Console.WriteLine("Got MyMessage {0}", message.Body.Text);
countdownEvent.Signal();
})
.Add<MyOtherMessage>((message, info) =>
{
Console.WriteLine("Got MyOtherMessage {0}", message.Body.Text);
countdownEvent.Signal();
})
.Add<IAnimal>((message, info) =>
{
Console.WriteLine("Got IAnimal of type {0}", message.Body.GetType().Name);
countdownEvent.Signal();
})
);
bus.Advanced.Publish(Exchange.GetDefault(), queue.Name, false, new Message<MyMessage>(new MyMessage { Text = "Hello" }));
bus.Advanced.Publish(Exchange.GetDefault(), queue.Name, false, new Message<MyOtherMessage>(new MyOtherMessage { Text = "Hi" }));
bus.Advanced.Publish(Exchange.GetDefault(), queue.Name, false, new Message<Dog>(new Dog()));
countdownEvent.Wait(1000);
}
}
}
// ReSharper restore InconsistentNaming | 34.533333 | 140 | 0.534749 | [
"MIT"
] | Eu-JinOoi/EasyNetQ | Source/EasyNetQ.Tests/Integration/MultipleHandlerPerConsumerTests.cs | 2,074 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace WpfRunBasics.Extensions
{
public static class HttpClientExtensions
{
public static async Task<T> ReadContentAs<T>(this HttpResponseMessage response)
{
if (!response.IsSuccessStatusCode)
throw new ApplicationException($"Something went wrong calling the API: {response.ReasonPhrase}");
var dataAsString = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
return JsonSerializer.Deserialize<T>(dataAsString, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
}
public static Task<HttpResponseMessage> PostAsJson<T>(this HttpClient httpClient, string url, T data)
{
var dataAsString = JsonSerializer.Serialize(data);
var content = new StringContent(dataAsString);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
return httpClient.PostAsync(url, content);
}
public static Task<HttpResponseMessage> PutAsJson<T>(this HttpClient httpClient, string url, T data)
{
var dataAsString = JsonSerializer.Serialize(data);
var content = new StringContent(dataAsString);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
return httpClient.PutAsync(url, content);
}
}
}
| 36.767442 | 129 | 0.690702 | [
"MIT"
] | Raddmou/AspnetMicroservices | src/DesktopApps/WpfRunBasics/Extensions/HttpClientExtensions.cs | 1,583 | C# |
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
//SOFTWARE.
using Autodesk.Revit.DB;
using GCRevit.Exceptions;
using System;
using System.Collections.Generic;
namespace GCRevit.Elements {
public class GCWallCurtain : AGCWallBase {
#region constructors
protected GCWallCurtain(CurtainSystem elem)
: base(elem) { }
public static GCWallCurtain CreateGCWallCurtain(Element elem) {
return new GCWallCurtain(elem as CurtainSystem);
}
public static bool IsWallCurtain(Element elem) {
return
AGCWallBase.IsWallBase(elem) &&
elem is CurtainSystem;
}
#endregion
#region properties
public CurtainSystem RevitWallCurtain {
get { return this.elem as CurtainSystem; }
}
#endregion
}
}
| 31.75 | 79 | 0.681102 | [
"MIT"
] | geometrycoder/GCRevit | GCRevit/Elements/GCWallCurtain.cs | 1,272 | C# |
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
using Hl7.Fhir.Introspection;
using Hl7.Fhir.Specification;
using Hl7.Fhir.Validation;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Hl7.Fhir.Model
{
/// <summary>
/// Optional Extensions Element
/// </summary>
[Serializable]
[System.Diagnostics.DebuggerDisplay(@"\{Value={Value} Url={_Url}}")]
[FhirType("Extension")]
[DataContract]
public class Extension : DataType
{
public Extension()
{
}
public Extension(string url, DataType value)
{
this.Url = url;
this.Value = value;
}
public override string TypeName { get { return "Extension"; } }
/// <summary>
/// identifies the meaning of the extension
/// </summary>
[FhirElement("url", XmlSerialization = XmlRepresentation.XmlAttr, InSummary = true, Order = 30)]
[DeclaredType(Type = typeof(FhirUri))]
[Cardinality(Min = 1, Max = 1)]
[UriPattern]
[DataMember]
public string Url
{
get { return _Url; }
set { _Url = value; OnPropertyChanged("Url"); }
}
private string _Url;
/// <summary>
/// Value of extension
/// </summary>
[FhirElement("value", InSummary = true, Order = 40, Choice = ChoiceType.DatatypeChoice)]
[DataMember]
public Hl7.Fhir.Model.DataType Value
{
get { return _Value; }
set { _Value = value; OnPropertyChanged("Value"); }
}
private Hl7.Fhir.Model.DataType _Value;
public override IDeepCopyable CopyTo(IDeepCopyable other)
{
var dest = other as Extension;
if (dest != null)
{
base.CopyTo(dest);
if (Url != null) dest.Url = Url;
if (Value != null) dest.Value = (Hl7.Fhir.Model.DataType)Value.DeepCopy();
return dest;
}
else
throw new ArgumentException("Can only copy to an object of the same type", "other");
}
public override IDeepCopyable DeepCopy()
{
return CopyTo(new Extension());
}
public override bool Matches(IDeepComparable other)
{
var otherT = other as Extension;
if (otherT == null) return false;
if (!base.Matches(otherT)) return false;
if (Url != otherT.Url) return false;
if (!DeepComparable.Matches(Value, otherT.Value)) return false;
return true;
}
public override bool IsExactly(IDeepComparable other)
{
var otherT = other as Extension;
if (otherT == null) return false;
if (!base.IsExactly(otherT)) return false;
if (Url != otherT.Url) return false;
if (!DeepComparable.IsExactly(Value, otherT.Value)) return false;
return true;
}
public override IEnumerable<Base> Children
{
get
{
foreach (var item in base.Children) yield return item;
if (Url != null) yield return new FhirUri(Url);
if (Value != null) yield return Value;
}
}
public override IEnumerable<ElementValue> NamedChildren
{
get
{
// Extension elements
foreach (var item in base.NamedChildren) yield return item;
if (Url != null) yield return new ElementValue("url", new FhirUri(Url));
if (Value != null) yield return new ElementValue("value", Value);
}
}
}
}
| 33.675159 | 104 | 0.606771 | [
"BSD-3-Clause"
] | Ivanidzo4ka/firely-net-common | src/Hl7.Fhir.Support.Poco/Model/Extension.cs | 5,289 | C# |
namespace Reductech.Sequence.Connectors.Sql;
/// <summary>
/// The type of database to connect to
/// </summary>
public enum DatabaseType
{
/// <summary>
/// SQLite
/// </summary>
SQLite,
/// <summary>
/// MsSql
/// </summary>
MsSql,
/// <summary>
/// Postgres
/// </summary>
Postgres,
/// <summary>
/// MySql
/// </summary>
MySql,
/// <summary>
/// MariaDb
/// </summary>
MariaDb
}
| 14.212121 | 45 | 0.501066 | [
"Apache-2.0"
] | reductech/SqlConnector | Sql/DatabaseType.cs | 471 | C# |
/*
#########
############
#############
## ###########
### ###### #####
### ####### ####
### ########## ####
#### ########### ####
#### ########### #####
##### ### ######## #####
##### ### ######## ######
###### ### ########### ######
###### #### ############## ######
####### ##################### ######
####### ###################### ######
####### ###### ################# ######
####### ###### ###### ######### ######
####### ## ###### ###### ######
####### ###### ##### #####
###### ##### ##### ####
##### #### ##### ###
##### ### ### #
### ### ###
## ### ###
__________#_______####_______####______________
我们的未来没有BUG
* ==============================================================================
* Filename: ObjectPool
* Created: 2018/7/13 14:29:22
* Author: エル・プサイ・コングリィ
* Purpose:
* ==============================================================================
*/
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
namespace MikuLuaProfiler
{
public class ObjectPool<T> where T : class, new()
{
public delegate T CreateFunc();
public ObjectPool()
{
}
public ObjectPool(int poolSize)
{
Init(poolSize);
}
public T GetObject()
{
lock (this)
{
if (m_objStack.Count > 0)
{
T t = m_objStack.Pop();
return t;
}
}
return new T();
}
public void Init(int poolSize, CreateFunc createFunc = null, Action<T> resetAction = null)
{
m_objStack = new Stack<T>();
for (int i = 0; i < poolSize; i++)
{
T item = new T();
m_objStack.Push(item);
}
}
public void Store(T obj)
{
if (obj == null)
return;
lock (this)
{
m_objStack.Push(obj);
}
}
// 少用,调用这个池的作用就没有了
public void Clear()
{
if (m_objStack != null)
m_objStack.Clear();
}
public int Count
{
get
{
if (m_objStack == null)
return 0;
return m_objStack.Count;
}
}
public Stack<T>.Enumerator GetIter()
{
if (m_objStack == null)
return new Stack<T>.Enumerator();
return m_objStack.GetEnumerator();
}
private Stack<T> m_objStack = null;
}
public class ListObjectPool<T> where T : class
{
public delegate T CreateFunc();
public ListObjectPool(int poolSize, CreateFunc createFunc, Action<T> resetAction = null)
{
Init(poolSize, createFunc, resetAction);
}
public T GetObject()
{
T t;
if (m_topIndex >= 0)
{
t = m_objStack[m_topIndex];
m_topIndex--;
if (m_resetAction != null)
{
m_resetAction(t);
}
}
else
{
t = m_createFunc();
m_objStack.Add(t);
}
return t;
}
public void Init(int poolSize, CreateFunc createFunc = null, Action<T> resetAction = null)
{
m_objStack = new List<T>();
m_resetAction = resetAction;
m_createFunc = createFunc;
for (int i = 0; i < poolSize; i++)
{
T item = m_createFunc();
m_objStack.Add(item);
}
m_topIndex = poolSize - 1;
}
public void Store()
{
for (int i = Math.Max(0, m_topIndex); i < m_objStack.Count; i++)
{
if (m_resetAction != null)
{
m_resetAction(m_objStack[i]);
}
}
m_topIndex = m_objStack.Count - 1;
}
// 少用,调用这个池的作用就没有了
public void Clear()
{
if (m_objStack != null)
m_objStack.Clear();
}
public int Count
{
get
{
if (m_objStack == null)
return 0;
return m_objStack.Count;
}
}
public List<T>.Enumerator GetIter()
{
if (m_objStack == null)
return new List<T>.Enumerator();
return m_objStack.GetEnumerator();
}
private int m_topIndex = 0;
private List<T> m_objStack = null;
private Action<T> m_resetAction = null;
private CreateFunc m_createFunc = null;
}
}
#endif | 27.741117 | 98 | 0.329552 | [
"Apache-2.0"
] | Light0457/LuaProfiler-For-Unity | LuaProfiler/LuaProfilerServer/Assets/Editor/Common/ObjectPool.cs | 5,565 | C# |
using System;
using System.Collections.ObjectModel;
using MagicLockScreen_Helper;
using MagicLockScreen_Helper.Models;
using NoteOne_Core;
using NoteOne_Core.Command;
using NoteOne_Core.Common;
using NoteOne_Core.Common.Models;
using Windows.System;
namespace MagicLockScreen_Service_RecommendationService.Models
{
public class RecommendedAppsServiceChannelModel : MagicLockScreenServiceChannelModel
{
public RecommendedAppsServiceChannelModel(ServiceChannel channel)
: base(channel)
{
Index = 10;
Title = string.Empty;
SubTitle = string.Empty;
GroupID = ServiceChannelGroupID.RecommendedApps;
ShowOverlay = false;
PrimaryViewType = null;
}
public override bool IsEnabled
{
get { return (bool) AppSettings.Instance[AppSettings.SERVICE_CHANNEL_STATUS_RALASC]; }
set
{
base.IsEnabled = value;
AppSettings.Instance[AppSettings.SERVICE_CHANNEL_STATUS_RALASC] = value;
OnPropertyChanged("IsEnabled");
}
}
#region Commands
public RelayCommand<object[]> ItemClickCommand
{
get
{
return new RelayCommand<object[]>(async p =>
{
if (Channel is RecommendedAppsServiceChannel)
{
var uri = new Uri((Channel as RecommendedAppsServiceChannel).URL);
await Launcher.LaunchUriAsync(uri);
}
});
}
}
#endregion
}
} | 30.357143 | 98 | 0.575294 | [
"MIT"
] | Jarrey/MagicLockScreen | src/MagicLockScreen.Service.RecommendationService/Models/RecommendedAppsServiceChannelModel.cs | 1,702 | C# |
namespace AutoMapper
{
/// <summary>
/// Extension point to provide custom resolution for a destination value
/// </summary>
public interface IValueResolver<in TSource, in TDestination, TDestMember>
{
/// <summary>
/// Implementors use source object to provide a destination object.
/// </summary>
/// <param name="source">Source object</param>
/// <param name="destination">Destination object, if exists</param>
/// <param name="destMember">Destination member</param>
/// <param name="context">The context of the mapping</param>
/// <returns>Result, typically build from the source resolution result</returns>
TDestMember Resolve(TSource source, TDestination destination, TDestMember destMember, ResolutionContext context);
}
/// <summary>
/// Extension point to provide custom resolution for a destination value
/// </summary>
public interface IMemberValueResolver<in TSource, in TDestination, in TSourceMember, TDestMember>
{
/// <summary>
/// Implementors use source object to provide a destination object.
/// </summary>
/// <param name="source">Source object</param>
/// <param name="destination">Destination object, if exists</param>
/// <param name="sourceMember">Source member</param>
/// <param name="destMember">Destination member</param>
/// <param name="context">The context of the mapping</param>
/// <returns>Result, typically build from the source resolution result</returns>
TDestMember Resolve(TSource source, TDestination destination, TSourceMember sourceMember, TDestMember destMember, ResolutionContext context);
}
}
| 48.305556 | 149 | 0.671075 | [
"MIT"
] | BlaiseD/AutoMapper | src/AutoMapper/IValueResolver.cs | 1,739 | C# |
using Microsoft.AspNetCore.Mvc;
namespace StrawberrySass.UI.Home.App.ContactUs
{
public class ContactUsController : Controller
{
[HttpGet]
[Route("templates/home/contact-us")]
public IActionResult ContactUsComponent() => PartialView("~/UI/Home/App/ContactUs/ContactUsComponent.cshtml");
}
} | 29.818182 | 118 | 0.707317 | [
"MIT"
] | maximegelinas-cegepsth/GEC-strawberry-sass | StrawberrySass/src/StrawberrySass/UI/Home/App/ContactUs/ContactUsController.cs | 330 | C# |
using System.IO;
using System.Runtime.Serialization;
using GameEstate.Red.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Red.Formats.Red.Records.Enums;
namespace GameEstate.Red.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class SSbDescCamera : CVariable
{
[Ordinal(1)] [RED("uId")] public CString UId { get; set;}
[Ordinal(2)] [RED("repoCamId")] public CString RepoCamId { get; set;}
[Ordinal(3)] [RED("pos")] public Vector Pos { get; set;}
[Ordinal(4)] [RED("rot")] public EulerAngles Rot { get; set;}
[Ordinal(5)] [RED("fov")] public CFloat Fov { get; set;}
[Ordinal(6)] [RED("dof")] public SStoryBoardCameraDofSettings Dof { get; set;}
public SSbDescCamera(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ }
public static CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new SSbDescCamera(cr2w, parent, name);
public override void Read(BinaryReader file, uint size) => base.Read(file, size);
public override void Write(BinaryWriter file) => base.Write(file);
}
} | 32.485714 | 121 | 0.684257 | [
"MIT"
] | bclnet/GameEstate | src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/SSbDescCamera.cs | 1,137 | C# |
using Force.Cqrs;
using HightechAngular.Core.Entities;
using Mapster;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HightechAngular.Shop.Areas.Index.GetSales
{
public class GetSalesQueryHandler : IQueryHandler<GetSalesQuery, IEnumerable<SaleListItem>>
{
private IQueryable<Product> _products;
public GetSalesQueryHandler(IQueryable<Product> products)
{
_products = products;
}
public IEnumerable<SaleListItem> Handle(GetSalesQuery input)
{
return _products
.Where(x => x.DiscountPercent > 0)
.ProjectToType<SaleListItem>()
.ToList();
}
}
}
| 25.166667 | 95 | 0.645033 | [
"MIT"
] | User8956/DotNext-Moscow-2020 | HightechAngular.Shop/Areas/Index/GetSales/GetSalesQueryHandler.cs | 757 | C# |
/*
* Copyright (c) Tomas Johansson , http://www.programmerare.com
* The code in this library is licensed with MIT.
* The library is based on the library 'MightyLittleGeodesy' (https://github.com/bjornsallarp/MightyLittleGeodesy/)
* which is also released with MIT.
* License information about 'sweden_crs_transformations_4net' and 'MightyLittleGeodesy':
* https://github.com/TomasJohansson/sweden_crs_transformations_4net/blob/csharpe_SwedenCrsTransformations/LICENSE
* For more information see the webpage below.
* https://github.com/TomasJohansson/sweden_crs_transformations_4net
*/
using SwedenCrsTransformations.Transformation;
using System;
using System.Collections.Generic;
namespace SwedenCrsTransformations {
/// <summary>
/// Coordinate, defined by the three parameters for the factory methods.
/// </summary>
public class CrsCoordinate : IEquatable<CrsCoordinate> {
/// <summary>
/// The coordinate reference system that defines the location together with the other two properties (LongitudeX and LatitudeY).
/// </summary>
public CrsProjection CrsProjection { get; private set; }
/// <summary>
/// The coordinate value representing the longitude or X or Easting.
/// </summary>
public double LongitudeX { get; private set; }
/// <summary>
/// The coordinate value representing the latitude or Y or Northing.
/// </summary>
public double LatitudeY { get; private set; }
/// <summary>
/// Private constructor. Client code must instead use the public factory methods.
/// </summary>
private CrsCoordinate(
CrsProjection crsProjection,
double yLatitude,
double xLongitude
) {
this.CrsProjection = crsProjection;
this.LatitudeY = yLatitude;
this.LongitudeX = xLongitude;
}
/// <summary>
/// Transforms the coordinate to another coordinate reference system
/// </summary>
/// <param name="targetCrsProjection">the coordinate reference system that you want to transform to</param>
public CrsCoordinate Transform(CrsProjection targetCrsProjection) {
return Transformer.Transform(this, targetCrsProjection);
}
/// <summary>
/// Transforms the coordinate to another coordinate reference system
/// </summary>
/// <param name="targetEpsgNumber">the coordinate reference system that you want to transform to</param>
public CrsCoordinate Transform(int targetEpsgNumber) {
CrsProjection targetCrsProjection = CrsProjectionFactory.GetCrsProjectionByEpsgNumber(targetEpsgNumber);
return this.Transform(targetCrsProjection);
}
/// <summary>
/// Factory method for creating an instance.
/// </summary>
/// <param name="epsgNumber">represents the coordinate reference system that defines the location together with the other two parameters</param>
/// <param name="xLongitude">the coordinate position value representing the longitude or X or Easting</param>
/// <param name="yLatitude">the coordinate position value representing the latitude or Y or Northing</param>
public static CrsCoordinate CreateCoordinate(
int epsgNumber,
double yLatitude,
double xLongitude
) {
CrsProjection crsProjection = CrsProjectionFactory.GetCrsProjectionByEpsgNumber(epsgNumber);
return CreateCoordinate(crsProjection, yLatitude, xLongitude);
}
/// <summary>
/// Factory method for creating an instance.
/// See also <see cref="CrsProjection"/>
/// </summary>
/// <param name="crsProjection">represents the coordinate reference system that defines the location together with the other two parameters</param>
/// <param name="xLongitude">the coordinate position value representing the longitude or X or Easting</param>
/// <param name="yLatitude">the coordinate position value representing the latitude or Y or Northing</param>
public static CrsCoordinate CreateCoordinate(
CrsProjection crsProjection,
double yLatitude,
double xLongitude
) {
return new CrsCoordinate(crsProjection, yLatitude, xLongitude);
}
// ----------------------------------------------------------------------------------------------------------------------
// These five methods below was generated with Visual Studio 2019
public override bool Equals(object obj) {
return Equals(obj as CrsCoordinate);
}
public bool Equals(CrsCoordinate other) {
return other != null &&
CrsProjection == other.CrsProjection &&
LongitudeX == other.LongitudeX &&
LatitudeY == other.LatitudeY;
}
public override int GetHashCode() {
int hashCode = 1147467376;
hashCode = hashCode * -1521134295 + CrsProjection.GetHashCode();
hashCode = hashCode * -1521134295 + LongitudeX.GetHashCode();
hashCode = hashCode * -1521134295 + LatitudeY.GetHashCode();
return hashCode;
}
public static bool operator ==(CrsCoordinate left, CrsCoordinate right) {
return EqualityComparer<CrsCoordinate>.Default.Equals(left, right);
}
public static bool operator !=(CrsCoordinate left, CrsCoordinate right) {
return !(left == right);
}
// These five methods above was generated with Visual Studio 2019
// ----------------------------------------------------------------------------------------------------------------------
/// <summary>
/// Two examples of the string that can be returned:
/// "CrsCoordinate [ Y: 6579457.649 , X: 153369.673 , CRS: SWEREF_99_18_00(EPSG:3011) ]"
/// "CrsCoordinate [ Latitude: 59.330231 , Longitude: 18.059196 , CRS: WGS84(EPSG:4326) ]"
/// </summary>
public override string ToString() {
return _toStringImplementation(this);
}
private static Func<CrsCoordinate, string> _toStringImplementation = defaultToStringImplementation;
private static string defaultToStringImplementation(CrsCoordinate coordinate) {
string crs = coordinate.CrsProjection.GetAsString();
bool isWgs84 = coordinate.CrsProjection.IsWgs84();
string yOrLatitude = isWgs84 ? "Latitude" : "Y";
string xOrLongitude = isWgs84 ? "Longitude" : "X";
return string.Format(
"{0} [ {1}: {2} , {3}: {4} , CRS: {5} ]",
nameof(CrsCoordinate), // 0
yOrLatitude, // 1
coordinate.LatitudeY, // 2
xOrLongitude, // 3
coordinate.LongitudeX, // 4
crs // 5
);
}
/// <summary>
/// Sets a custom method to be used for rendering an instance when the 'ToString' method is used.
/// </summary>
public static void SetToStringImplementation(Func<CrsCoordinate, string> toStringImplementation) {
_toStringImplementation = toStringImplementation;
}
/// <summary>
/// Sets the default method to be used for rendering an instance when the 'ToString' method is used.
/// </summary>
public static void SetToStringImplementationDefault() {
_toStringImplementation = defaultToStringImplementation;
}
}
} | 45.54386 | 155 | 0.610426 | [
"MIT"
] | TomasJohansson/sweden_crs_transformations_4net | SwedenCrsTransformations/CrsCoordinate.cs | 7,790 | C# |
using System;
using System.Collections.Generic;
using EPiServer.Data.Dynamic;
namespace ElasticEpiserver.Module.Business.Data.Entities
{
[EPiServerDataStore(StoreName = "ElasticEpiserverBestBetDDS", AutomaticallyCreateStore = true, AutomaticallyRemapStore = true)]
public class BestBet : DynamicDataBase
{
public string Keyword { get; set; }
public string Language { get; set; }
public IList<BestBetContent> Contents { get; set; }
public BestBet()
{
Initialize();
}
public BestBet(string keyword, string language)
{
Initialize();
Keyword = keyword;
Language = language;
}
private void Initialize()
{
Contents = new List<BestBetContent>();
}
}
public class BestBetContent
{
public Guid ContentGuid { get; set; }
public int Order { get; set; }
}
} | 25.702703 | 131 | 0.601472 | [
"MIT"
] | Altinn/Elastic-Episerver | ElasticEpiserver.Module/Business/Data/Entities/BestBet.cs | 953 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
using WebApp.Core.Helpers;
namespace WebApp.Service.Users
{
internal sealed class ApproveUserCommandHandler : CommandHandler<ApproveUserCommand>
{
public override async Task HandleAsync(ApproveUserCommand command, CommandContext context, CancellationToken cancellationToken)
{
await using (context.CreateDbContext().AsAsyncDisposable(out var dbContext).ConfigureAwait(false))
{
var user = await dbContext.Users.GetByNameAsync(command.UserName, cancellationToken).ConfigureAwait(false);
RequireExisting(user, c => c.UserName);
if (user.IsApproved)
return;
if (command.Verify)
RequireValid(string.Equals(user.ConfirmationToken, command.VerificationToken, StringComparison.Ordinal), m => m.VerificationToken);
user.ConfirmationToken = null;
user.IsApproved = true;
await dbContext.SaveChangesAsync(cancellationToken).ConfigureAwait(false);
}
}
}
}
| 36.870968 | 151 | 0.660542 | [
"MIT"
] | adams85/aspnetskeleton2 | src/Service/Users/ApproveUserCommandHandler.cs | 1,145 | C# |
namespace TF.Models;
public sealed class AccountListContainer : IReadOnlyCollection<AccountList>
{
private readonly IImmutableSet<AccountList> _lists;
internal AccountListContainer()
: this(ImmutableHashSet<AccountList>.Empty)
{
}
internal AccountListContainer(IImmutableSet<AccountList> lists)
=> _lists = lists;
public static AccountListContainer Empty { get; } = new();
public int Count => _lists.Count;
public IEnumerator<AccountList> GetEnumerator()
=> _lists.GetEnumerator();
IEnumerator IEnumerable.GetEnumerator()
=> GetEnumerator();
public override string? ToString()
=> $"[{string.Join(',', _lists)}]";
}
| 25.142857 | 75 | 0.683239 | [
"MIT"
] | gritcsenko/transactional-finances | src/TF.Models/AccountListContainer.cs | 706 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking;
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal
{
public class LibuvAwaitable<TRequest> : ICriticalNotifyCompletion where TRequest : UvRequest
{
private readonly static Action _callbackCompleted = () => { };
private Action _callback;
private UvException _exception;
private int _status;
public static readonly Action<TRequest, int, UvException, object> Callback = (req, status, error, state) =>
{
var awaitable = (LibuvAwaitable<TRequest>)state;
awaitable._exception = error;
awaitable._status = status;
var continuation = Interlocked.Exchange(ref awaitable._callback, _callbackCompleted);
continuation?.Invoke();
};
public LibuvAwaitable<TRequest> GetAwaiter() => this;
public bool IsCompleted => _callback == _callbackCompleted;
public UvWriteResult GetResult()
{
Debug.Assert(_callback == _callbackCompleted);
var exception = _exception;
var status = _status;
// Reset the awaitable state
_exception = null;
_status = 0;
_callback = null;
return new UvWriteResult(status, exception);
}
public void OnCompleted(Action continuation)
{
// There should never be a race between IsCompleted and OnCompleted since both operations
// should always be on the libuv thread
if (_callback == _callbackCompleted ||
Interlocked.CompareExchange(ref _callback, continuation, null) == _callbackCompleted)
{
Debug.Fail($"{typeof(LibuvAwaitable<TRequest>)}.{nameof(OnCompleted)} raced with {nameof(IsCompleted)}, running callback inline.");
// Just run it inline
continuation();
}
}
public void UnsafeOnCompleted(Action continuation)
{
OnCompleted(continuation);
}
}
public struct UvWriteResult
{
public int Status { get; }
public UvException Error { get; }
public UvWriteResult(int status, UvException error)
{
Status = status;
Error = error;
}
}
}
| 30.988235 | 147 | 0.625285 | [
"Apache-2.0"
] | Redouane64/KestrelHttpServer | src/Kestrel.Transport.Libuv/Internal/LibuvAwaitable.cs | 2,634 | C# |
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
namespace XenAPI
{
public partial class JsonRpcClient
{
public Event event_get_record(string session, string _event)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Event>("event.get_record", new JArray(session, _event ?? ""), serializer);
}
public string event_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("event.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public long event_get_id(string session, string _event)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("event.get_id", new JArray(session, _event ?? ""), serializer);
}
public void event_set_id(string session, string _event, long _id)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("event.set_id", new JArray(session, _event ?? "", _id), serializer);
}
public void event_register(string session, string[] _classes)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("event.register", new JArray(session, JArray.FromObject(_classes ?? new string[] {})), serializer);
}
public void event_unregister(string session, string[] _classes)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("event.unregister", new JArray(session, JArray.FromObject(_classes ?? new string[] {})), serializer);
}
public EventBatch event_from(string session, string[] _classes, string _token, double _timeout)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<EventBatch>("event.from", new JArray(session, JArray.FromObject(_classes ?? new string[] {}), _token ?? "", _timeout), serializer);
}
public Session session_get_record(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Session>("session.get_record", new JArray(session, _session ?? ""), serializer);
}
public XenRef<Session> session_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string session_get_uuid(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("session.get_uuid", new JArray(session, _session ?? ""), serializer);
}
public XenRef<Host> session_get_this_host(string session, string _session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("session.get_this_host", new JArray(session, _session ?? ""), serializer);
}
public XenRef<User> session_get_this_user(string session, string _session)
{
var converters = new List<JsonConverter> {new XenRefConverter<User>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<User>>("session.get_this_user", new JArray(session, _session ?? ""), serializer);
}
public DateTime session_get_last_active(string session, string _session)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("session.get_last_active", new JArray(session, _session ?? ""), serializer);
}
public bool session_get_pool(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("session.get_pool", new JArray(session, _session ?? ""), serializer);
}
public Dictionary<string, string> session_get_other_config(string session, string _session)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("session.get_other_config", new JArray(session, _session ?? ""), serializer);
}
public bool session_get_is_local_superuser(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("session.get_is_local_superuser", new JArray(session, _session ?? ""), serializer);
}
public XenRef<Subject> session_get_subject(string session, string _session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Subject>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Subject>>("session.get_subject", new JArray(session, _session ?? ""), serializer);
}
public DateTime session_get_validation_time(string session, string _session)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("session.get_validation_time", new JArray(session, _session ?? ""), serializer);
}
public string session_get_auth_user_sid(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("session.get_auth_user_sid", new JArray(session, _session ?? ""), serializer);
}
public string session_get_auth_user_name(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("session.get_auth_user_name", new JArray(session, _session ?? ""), serializer);
}
public string[] session_get_rbac_permissions(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("session.get_rbac_permissions", new JArray(session, _session ?? ""), serializer);
}
public List<XenRef<Task>> session_get_tasks(string session, string _session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Task>>>("session.get_tasks", new JArray(session, _session ?? ""), serializer);
}
public XenRef<Session> session_get_parent(string session, string _session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.get_parent", new JArray(session, _session ?? ""), serializer);
}
public string session_get_originator(string session, string _session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("session.get_originator", new JArray(session, _session ?? ""), serializer);
}
public void session_set_other_config(string session, string _session, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("session.set_other_config", new JArray(session, _session ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void session_add_to_other_config(string session, string _session, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.add_to_other_config", new JArray(session, _session ?? "", _key ?? "", _value ?? ""), serializer);
}
public void session_remove_from_other_config(string session, string _session, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.remove_from_other_config", new JArray(session, _session ?? "", _key ?? ""), serializer);
}
public XenRef<Session> session_login_with_password(string _uname, string _pwd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.login_with_password", new JArray(_uname ?? "", _pwd ?? ""), serializer);
}
public XenRef<Session> session_login_with_password(string _uname, string _pwd, string _version)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.login_with_password", new JArray(_uname ?? "", _pwd ?? "", _version ?? ""), serializer);
}
public XenRef<Session> session_login_with_password(string _uname, string _pwd, string _version, string _originator)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.login_with_password", new JArray(_uname ?? "", _pwd ?? "", _version ?? "", _originator ?? ""), serializer);
}
public void session_logout(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.logout", new JArray(session), serializer);
}
public void session_change_password(string session, string _old_pwd, string _new_pwd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.change_password", new JArray(session, _old_pwd ?? "", _new_pwd ?? ""), serializer);
}
public XenRef<Session> session_slave_local_login_with_password(string _uname, string _pwd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.slave_local_login_with_password", new JArray(_uname ?? "", _pwd ?? ""), serializer);
}
public XenRef<Session> session_create_from_db_file(string session, string _filename)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("session.create_from_db_file", new JArray(session, _filename ?? ""), serializer);
}
public XenRef<Task> async_session_create_from_db_file(string session, string _filename)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.session.create_from_db_file", new JArray(session, _filename ?? ""), serializer);
}
public void session_local_logout(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.local_logout", new JArray(session), serializer);
}
public string[] session_get_all_subject_identifiers(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("session.get_all_subject_identifiers", new JArray(session), serializer);
}
public XenRef<Task> async_session_get_all_subject_identifiers(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.session.get_all_subject_identifiers", new JArray(session), serializer);
}
public void session_logout_subject_identifier(string session, string _subject_identifier)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("session.logout_subject_identifier", new JArray(session, _subject_identifier ?? ""), serializer);
}
public XenRef<Task> async_session_logout_subject_identifier(string session, string _subject_identifier)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.session.logout_subject_identifier", new JArray(session, _subject_identifier ?? ""), serializer);
}
public Dictionary<XenRef<Session>, Session> session_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Session>, Session>>("session.get_all_records", new JArray(session), serializer);
}
public string auth_get_subject_identifier(string session, string _subject_name)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("auth.get_subject_identifier", new JArray(session, _subject_name ?? ""), serializer);
}
public Dictionary<string, string> auth_get_subject_information_from_identifier(string session, string _subject_identifier)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("auth.get_subject_information_from_identifier", new JArray(session, _subject_identifier ?? ""), serializer);
}
public string[] auth_get_group_membership(string session, string _subject_identifier)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("auth.get_group_membership", new JArray(session, _subject_identifier ?? ""), serializer);
}
public Dictionary<XenRef<Auth>, Auth> auth_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Auth>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Auth>, Auth>>("auth.get_all_records", new JArray(session), serializer);
}
public Subject subject_get_record(string session, string _subject)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Subject>("subject.get_record", new JArray(session, _subject ?? ""), serializer);
}
public XenRef<Subject> subject_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Subject>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Subject>>("subject.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<Subject> subject_create(string session, Subject _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Subject>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Subject>>("subject.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_subject_create(string session, Subject _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.subject.create", new JArray(session, _record.ToJObject()), serializer);
}
public void subject_destroy(string session, string _subject)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("subject.destroy", new JArray(session, _subject ?? ""), serializer);
}
public XenRef<Task> async_subject_destroy(string session, string _subject)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.subject.destroy", new JArray(session, _subject ?? ""), serializer);
}
public string subject_get_uuid(string session, string _subject)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("subject.get_uuid", new JArray(session, _subject ?? ""), serializer);
}
public string subject_get_subject_identifier(string session, string _subject)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("subject.get_subject_identifier", new JArray(session, _subject ?? ""), serializer);
}
public Dictionary<string, string> subject_get_other_config(string session, string _subject)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("subject.get_other_config", new JArray(session, _subject ?? ""), serializer);
}
public List<XenRef<Role>> subject_get_roles(string session, string _subject)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("subject.get_roles", new JArray(session, _subject ?? ""), serializer);
}
public void subject_add_to_roles(string session, string _subject, string _role)
{
var converters = new List<JsonConverter> {new XenRefConverter<Role>()};
var serializer = CreateSerializer(converters);
Rpc("subject.add_to_roles", new JArray(session, _subject ?? "", _role ?? ""), serializer);
}
public void subject_remove_from_roles(string session, string _subject, string _role)
{
var converters = new List<JsonConverter> {new XenRefConverter<Role>()};
var serializer = CreateSerializer(converters);
Rpc("subject.remove_from_roles", new JArray(session, _subject ?? "", _role ?? ""), serializer);
}
public string[] subject_get_permissions_name_label(string session, string _subject)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("subject.get_permissions_name_label", new JArray(session, _subject ?? ""), serializer);
}
public List<XenRef<Subject>> subject_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Subject>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Subject>>>("subject.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Subject>, Subject> subject_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Subject>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Subject>, Subject>>("subject.get_all_records", new JArray(session), serializer);
}
public Role role_get_record(string session, string _role)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Role>("role.get_record", new JArray(session, _role ?? ""), serializer);
}
public XenRef<Role> role_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Role>>("role.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Role>> role_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string role_get_uuid(string session, string _role)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("role.get_uuid", new JArray(session, _role ?? ""), serializer);
}
public string role_get_name_label(string session, string _role)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("role.get_name_label", new JArray(session, _role ?? ""), serializer);
}
public string role_get_name_description(string session, string _role)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("role.get_name_description", new JArray(session, _role ?? ""), serializer);
}
public List<XenRef<Role>> role_get_subroles(string session, string _role)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_subroles", new JArray(session, _role ?? ""), serializer);
}
public List<XenRef<Role>> role_get_permissions(string session, string _role)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_permissions", new JArray(session, _role ?? ""), serializer);
}
public string[] role_get_permissions_name_label(string session, string _role)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("role.get_permissions_name_label", new JArray(session, _role ?? ""), serializer);
}
public List<XenRef<Role>> role_get_by_permission(string session, string _role)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_by_permission", new JArray(session, _role ?? ""), serializer);
}
public List<XenRef<Role>> role_get_by_permission_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_by_permission_name_label", new JArray(session, _label ?? ""), serializer);
}
public List<XenRef<Role>> role_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Role>>>("role.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Role>, Role> role_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Role>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Role>, Role>>("role.get_all_records", new JArray(session), serializer);
}
public Task task_get_record(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Task>("task.get_record", new JArray(session, _task ?? ""), serializer);
}
public XenRef<Task> task_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("task.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Task>> task_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Task>>>("task.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string task_get_uuid(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_uuid", new JArray(session, _task ?? ""), serializer);
}
public string task_get_name_label(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_name_label", new JArray(session, _task ?? ""), serializer);
}
public string task_get_name_description(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_name_description", new JArray(session, _task ?? ""), serializer);
}
public List<task_allowed_operations> task_get_allowed_operations(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<task_allowed_operations>>("task.get_allowed_operations", new JArray(session, _task ?? ""), serializer);
}
public Dictionary<string, task_allowed_operations> task_get_current_operations(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, task_allowed_operations>>("task.get_current_operations", new JArray(session, _task ?? ""), serializer);
}
public DateTime task_get_created(string session, string _task)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("task.get_created", new JArray(session, _task ?? ""), serializer);
}
public DateTime task_get_finished(string session, string _task)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("task.get_finished", new JArray(session, _task ?? ""), serializer);
}
public task_status_type task_get_status(string session, string _task)
{
var converters = new List<JsonConverter> {new task_status_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<task_status_type>("task.get_status", new JArray(session, _task ?? ""), serializer);
}
public XenRef<Host> task_get_resident_on(string session, string _task)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("task.get_resident_on", new JArray(session, _task ?? ""), serializer);
}
public double task_get_progress(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("task.get_progress", new JArray(session, _task ?? ""), serializer);
}
public string task_get_type(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_type", new JArray(session, _task ?? ""), serializer);
}
public string task_get_result(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_result", new JArray(session, _task ?? ""), serializer);
}
public string[] task_get_error_info(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("task.get_error_info", new JArray(session, _task ?? ""), serializer);
}
public Dictionary<string, string> task_get_other_config(string session, string _task)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("task.get_other_config", new JArray(session, _task ?? ""), serializer);
}
public XenRef<Task> task_get_subtask_of(string session, string _task)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("task.get_subtask_of", new JArray(session, _task ?? ""), serializer);
}
public List<XenRef<Task>> task_get_subtasks(string session, string _task)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Task>>>("task.get_subtasks", new JArray(session, _task ?? ""), serializer);
}
public string task_get_backtrace(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("task.get_backtrace", new JArray(session, _task ?? ""), serializer);
}
public void task_set_other_config(string session, string _task, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("task.set_other_config", new JArray(session, _task ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void task_add_to_other_config(string session, string _task, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("task.add_to_other_config", new JArray(session, _task ?? "", _key ?? "", _value ?? ""), serializer);
}
public void task_remove_from_other_config(string session, string _task, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("task.remove_from_other_config", new JArray(session, _task ?? "", _key ?? ""), serializer);
}
public XenRef<Task> task_create(string session, string _label, string _description)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("task.create", new JArray(session, _label ?? "", _description ?? ""), serializer);
}
public void task_destroy(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("task.destroy", new JArray(session, _task ?? ""), serializer);
}
public void task_cancel(string session, string _task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("task.cancel", new JArray(session, _task ?? ""), serializer);
}
public XenRef<Task> async_task_cancel(string session, string _task)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.task.cancel", new JArray(session, _task ?? ""), serializer);
}
public void task_set_status(string session, string _task, task_status_type _value)
{
var converters = new List<JsonConverter> {new task_status_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("task.set_status", new JArray(session, _task ?? "", _value.StringOf()), serializer);
}
public List<XenRef<Task>> task_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Task>>>("task.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Task>, Task> task_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Task>, Task>>("task.get_all_records", new JArray(session), serializer);
}
public Pool pool_get_record(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Pool>("pool.get_record", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Pool> pool_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool>>("pool.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pool_get_uuid(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_uuid", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_name_label(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_name_label", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_name_description(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_name_description", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Host> pool_get_master(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("pool.get_master", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<SR> pool_get_default_sr(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("pool.get_default_SR", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<SR> pool_get_suspend_image_sr(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("pool.get_suspend_image_SR", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<SR> pool_get_crash_dump_sr(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("pool.get_crash_dump_SR", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_other_config(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_other_config", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_ha_enabled(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_ha_enabled", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_ha_configuration(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_ha_configuration", new JArray(session, _pool ?? ""), serializer);
}
public string[] pool_get_ha_statefiles(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("pool.get_ha_statefiles", new JArray(session, _pool ?? ""), serializer);
}
public long pool_get_ha_host_failures_to_tolerate(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool.get_ha_host_failures_to_tolerate", new JArray(session, _pool ?? ""), serializer);
}
public long pool_get_ha_plan_exists_for(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool.get_ha_plan_exists_for", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_ha_allow_overcommit(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_ha_allow_overcommit", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_ha_overcommitted(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_ha_overcommitted", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, XenRef<Blob>> pool_get_blobs(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringXenRefMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, XenRef<Blob>>>("pool.get_blobs", new JArray(session, _pool ?? ""), serializer);
}
public string[] pool_get_tags(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("pool.get_tags", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_gui_config(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_gui_config", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_health_check_config(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_health_check_config", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_wlb_url(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_wlb_url", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_wlb_username(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_wlb_username", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_wlb_enabled(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_wlb_enabled", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_wlb_verify_cert(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_wlb_verify_cert", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_redo_log_enabled(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_redo_log_enabled", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<VDI> pool_get_redo_log_vdi(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("pool.get_redo_log_vdi", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_vswitch_controller(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_vswitch_controller", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_restrictions(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_restrictions", new JArray(session, _pool ?? ""), serializer);
}
public List<XenRef<VDI>> pool_get_metadata_vdis(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VDI>>>("pool.get_metadata_VDIs", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_ha_cluster_stack(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_ha_cluster_stack", new JArray(session, _pool ?? ""), serializer);
}
public List<pool_allowed_operations> pool_get_allowed_operations(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<pool_allowed_operations>>("pool.get_allowed_operations", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, pool_allowed_operations> pool_get_current_operations(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, pool_allowed_operations>>("pool.get_current_operations", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_guest_agent_config(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_guest_agent_config", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_cpu_info(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_cpu_info", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_policy_no_vendor_device(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_policy_no_vendor_device", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_live_patching_disabled(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_live_patching_disabled", new JArray(session, _pool ?? ""), serializer);
}
public bool pool_get_igmp_snooping_enabled(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.get_igmp_snooping_enabled", new JArray(session, _pool ?? ""), serializer);
}
public string pool_get_uefi_certificates(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.get_uefi_certificates", new JArray(session, _pool ?? ""), serializer);
}
public void pool_set_name_label(string session, string _pool, string _name_label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_name_label", new JArray(session, _pool ?? "", _name_label ?? ""), serializer);
}
public void pool_set_name_description(string session, string _pool, string _name_description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_name_description", new JArray(session, _pool ?? "", _name_description ?? ""), serializer);
}
public void pool_set_default_sr(string session, string _pool, string _default_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_default_SR", new JArray(session, _pool ?? "", _default_sr ?? ""), serializer);
}
public void pool_set_suspend_image_sr(string session, string _pool, string _suspend_image_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_suspend_image_SR", new JArray(session, _pool ?? "", _suspend_image_sr ?? ""), serializer);
}
public void pool_set_crash_dump_sr(string session, string _pool, string _crash_dump_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_crash_dump_SR", new JArray(session, _pool ?? "", _crash_dump_sr ?? ""), serializer);
}
public void pool_set_other_config(string session, string _pool, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_other_config", new JArray(session, _pool ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pool_add_to_other_config(string session, string _pool, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.add_to_other_config", new JArray(session, _pool ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_remove_from_other_config(string session, string _pool, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.remove_from_other_config", new JArray(session, _pool ?? "", _key ?? ""), serializer);
}
public void pool_set_ha_allow_overcommit(string session, string _pool, bool _ha_allow_overcommit)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_ha_allow_overcommit", new JArray(session, _pool ?? "", _ha_allow_overcommit), serializer);
}
public void pool_set_tags(string session, string _pool, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_tags", new JArray(session, _pool ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void pool_add_tags(string session, string _pool, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.add_tags", new JArray(session, _pool ?? "", _value ?? ""), serializer);
}
public void pool_remove_tags(string session, string _pool, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.remove_tags", new JArray(session, _pool ?? "", _value ?? ""), serializer);
}
public void pool_set_gui_config(string session, string _pool, Dictionary<string, string> _gui_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_gui_config", new JArray(session, _pool ?? "", _gui_config == null ? new JObject() : JObject.FromObject(_gui_config, serializer)), serializer);
}
public void pool_add_to_gui_config(string session, string _pool, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.add_to_gui_config", new JArray(session, _pool ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_remove_from_gui_config(string session, string _pool, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.remove_from_gui_config", new JArray(session, _pool ?? "", _key ?? ""), serializer);
}
public void pool_set_health_check_config(string session, string _pool, Dictionary<string, string> _health_check_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.set_health_check_config", new JArray(session, _pool ?? "", _health_check_config == null ? new JObject() : JObject.FromObject(_health_check_config, serializer)), serializer);
}
public void pool_add_to_health_check_config(string session, string _pool, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.add_to_health_check_config", new JArray(session, _pool ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_remove_from_health_check_config(string session, string _pool, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.remove_from_health_check_config", new JArray(session, _pool ?? "", _key ?? ""), serializer);
}
public void pool_set_wlb_enabled(string session, string _pool, bool _wlb_enabled)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_wlb_enabled", new JArray(session, _pool ?? "", _wlb_enabled), serializer);
}
public void pool_set_wlb_verify_cert(string session, string _pool, bool _wlb_verify_cert)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_wlb_verify_cert", new JArray(session, _pool ?? "", _wlb_verify_cert), serializer);
}
public void pool_set_policy_no_vendor_device(string session, string _pool, bool _policy_no_vendor_device)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_policy_no_vendor_device", new JArray(session, _pool ?? "", _policy_no_vendor_device), serializer);
}
public void pool_set_live_patching_disabled(string session, string _pool, bool _live_patching_disabled)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_live_patching_disabled", new JArray(session, _pool ?? "", _live_patching_disabled), serializer);
}
public void pool_set_uefi_certificates(string session, string _pool, string _uefi_certificates)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_uefi_certificates", new JArray(session, _pool ?? "", _uefi_certificates ?? ""), serializer);
}
public void pool_join(string session, string _master_address, string _master_username, string _master_password)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.join", new JArray(session, _master_address ?? "", _master_username ?? "", _master_password ?? ""), serializer);
}
public XenRef<Task> async_pool_join(string session, string _master_address, string _master_username, string _master_password)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.join", new JArray(session, _master_address ?? "", _master_username ?? "", _master_password ?? ""), serializer);
}
public void pool_join_force(string session, string _master_address, string _master_username, string _master_password)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.join_force", new JArray(session, _master_address ?? "", _master_username ?? "", _master_password ?? ""), serializer);
}
public XenRef<Task> async_pool_join_force(string session, string _master_address, string _master_username, string _master_password)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.join_force", new JArray(session, _master_address ?? "", _master_username ?? "", _master_password ?? ""), serializer);
}
public void pool_eject(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("pool.eject", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_pool_eject(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.eject", new JArray(session, _host ?? ""), serializer);
}
public void pool_emergency_transition_to_master(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.emergency_transition_to_master", new JArray(session), serializer);
}
public void pool_emergency_reset_master(string session, string _master_address)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.emergency_reset_master", new JArray(session, _master_address ?? ""), serializer);
}
public List<XenRef<Host>> pool_recover_slaves(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host>>>("pool.recover_slaves", new JArray(session), serializer);
}
public XenRef<Task> async_pool_recover_slaves(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.recover_slaves", new JArray(session), serializer);
}
public List<XenRef<PIF>> pool_create_vlan(string session, string _device, string _network, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("pool.create_VLAN", new JArray(session, _device ?? "", _network ?? "", _vlan), serializer);
}
public XenRef<Task> async_pool_create_vlan(string session, string _device, string _network, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.create_VLAN", new JArray(session, _device ?? "", _network ?? "", _vlan), serializer);
}
public void pool_management_reconfigure(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
Rpc("pool.management_reconfigure", new JArray(session, _network ?? ""), serializer);
}
public XenRef<Task> async_pool_management_reconfigure(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.management_reconfigure", new JArray(session, _network ?? ""), serializer);
}
public List<XenRef<PIF>> pool_create_vlan_from_pif(string session, string _pif, string _network, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("pool.create_VLAN_from_PIF", new JArray(session, _pif ?? "", _network ?? "", _vlan), serializer);
}
public XenRef<Task> async_pool_create_vlan_from_pif(string session, string _pif, string _network, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.create_VLAN_from_PIF", new JArray(session, _pif ?? "", _network ?? "", _vlan), serializer);
}
public void pool_enable_ha(string session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.enable_ha", new JArray(session, _heartbeat_srs == null ? new JArray() : JArray.FromObject(_heartbeat_srs, serializer), _configuration == null ? new JObject() : JObject.FromObject(_configuration, serializer)), serializer);
}
public XenRef<Task> async_pool_enable_ha(string session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefListConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.enable_ha", new JArray(session, _heartbeat_srs == null ? new JArray() : JArray.FromObject(_heartbeat_srs, serializer), _configuration == null ? new JObject() : JObject.FromObject(_configuration, serializer)), serializer);
}
public void pool_disable_ha(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.disable_ha", new JArray(session), serializer);
}
public XenRef<Task> async_pool_disable_ha(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.disable_ha", new JArray(session), serializer);
}
public void pool_sync_database(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.sync_database", new JArray(session), serializer);
}
public XenRef<Task> async_pool_sync_database(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.sync_database", new JArray(session), serializer);
}
public void pool_designate_new_master(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("pool.designate_new_master", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_pool_designate_new_master(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.designate_new_master", new JArray(session, _host ?? ""), serializer);
}
public void pool_ha_prevent_restarts_for(string session, long _seconds)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.ha_prevent_restarts_for", new JArray(session, _seconds), serializer);
}
public bool pool_ha_failover_plan_exists(string session, long _n)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.ha_failover_plan_exists", new JArray(session, _n), serializer);
}
public long pool_ha_compute_max_host_failures_to_tolerate(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool.ha_compute_max_host_failures_to_tolerate", new JArray(session), serializer);
}
public long pool_ha_compute_hypothetical_max_host_failures_to_tolerate(string session, Dictionary<XenRef<VM>, string> _configuration)
{
var converters = new List<JsonConverter> {new XenRefStringMapConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool.ha_compute_hypothetical_max_host_failures_to_tolerate", new JArray(session, _configuration == null ? new JObject() : JObject.FromObject(_configuration, serializer)), serializer);
}
public Dictionary<XenRef<VM>, Dictionary<string, string>> pool_ha_compute_vm_failover_plan(string session, List<XenRef<Host>> _failed_hosts, List<XenRef<VM>> _failed_vms)
{
var converters = new List<JsonConverter> {new XenRefStringStringMapMapConverter<VM>(), new XenRefListConverter<Host>(), new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM>, Dictionary<string, string>>>("pool.ha_compute_vm_failover_plan", new JArray(session, _failed_hosts == null ? new JArray() : JArray.FromObject(_failed_hosts, serializer), _failed_vms == null ? new JArray() : JArray.FromObject(_failed_vms, serializer)), serializer);
}
public void pool_set_ha_host_failures_to_tolerate(string session, string _pool, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_ha_host_failures_to_tolerate", new JArray(session, _pool ?? "", _value), serializer);
}
public XenRef<Task> async_pool_set_ha_host_failures_to_tolerate(string session, string _pool, long _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.set_ha_host_failures_to_tolerate", new JArray(session, _pool ?? "", _value), serializer);
}
public XenRef<Blob> pool_create_new_blob(string session, string _pool, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("pool.create_new_blob", new JArray(session, _pool ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Task> async_pool_create_new_blob(string session, string _pool, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.create_new_blob", new JArray(session, _pool ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Blob> pool_create_new_blob(string session, string _pool, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("pool.create_new_blob", new JArray(session, _pool ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public XenRef<Task> async_pool_create_new_blob(string session, string _pool, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.create_new_blob", new JArray(session, _pool ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public void pool_enable_external_auth(string session, string _pool, Dictionary<string, string> _config, string _service_name, string _auth_type)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.enable_external_auth", new JArray(session, _pool ?? "", _config == null ? new JObject() : JObject.FromObject(_config, serializer), _service_name ?? "", _auth_type ?? ""), serializer);
}
public void pool_disable_external_auth(string session, string _pool, Dictionary<string, string> _config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.disable_external_auth", new JArray(session, _pool ?? "", _config == null ? new JObject() : JObject.FromObject(_config, serializer)), serializer);
}
public void pool_detect_nonhomogeneous_external_auth(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.detect_nonhomogeneous_external_auth", new JArray(session, _pool ?? ""), serializer);
}
public void pool_initialize_wlb(string session, string _wlb_url, string _wlb_username, string _wlb_password, string _xenserver_username, string _xenserver_password)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.initialize_wlb", new JArray(session, _wlb_url ?? "", _wlb_username ?? "", _wlb_password ?? "", _xenserver_username ?? "", _xenserver_password ?? ""), serializer);
}
public XenRef<Task> async_pool_initialize_wlb(string session, string _wlb_url, string _wlb_username, string _wlb_password, string _xenserver_username, string _xenserver_password)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.initialize_wlb", new JArray(session, _wlb_url ?? "", _wlb_username ?? "", _wlb_password ?? "", _xenserver_username ?? "", _xenserver_password ?? ""), serializer);
}
public void pool_deconfigure_wlb(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.deconfigure_wlb", new JArray(session), serializer);
}
public XenRef<Task> async_pool_deconfigure_wlb(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.deconfigure_wlb", new JArray(session), serializer);
}
public void pool_send_wlb_configuration(string session, Dictionary<string, string> _config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool.send_wlb_configuration", new JArray(session, _config == null ? new JObject() : JObject.FromObject(_config, serializer)), serializer);
}
public XenRef<Task> async_pool_send_wlb_configuration(string session, Dictionary<string, string> _config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.send_wlb_configuration", new JArray(session, _config == null ? new JObject() : JObject.FromObject(_config, serializer)), serializer);
}
public Dictionary<string, string> pool_retrieve_wlb_configuration(string session)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.retrieve_wlb_configuration", new JArray(session), serializer);
}
public XenRef<Task> async_pool_retrieve_wlb_configuration(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.retrieve_wlb_configuration", new JArray(session), serializer);
}
public Dictionary<XenRef<VM>, string[]> pool_retrieve_wlb_recommendations(string session)
{
var converters = new List<JsonConverter> {new XenRefStringSetMapConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM>, string[]>>("pool.retrieve_wlb_recommendations", new JArray(session), serializer);
}
public XenRef<Task> async_pool_retrieve_wlb_recommendations(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.retrieve_wlb_recommendations", new JArray(session), serializer);
}
public string pool_send_test_post(string session, string _host, long _port, string _body)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.send_test_post", new JArray(session, _host ?? "", _port, _body ?? ""), serializer);
}
public XenRef<Task> async_pool_send_test_post(string session, string _host, long _port, string _body)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.send_test_post", new JArray(session, _host ?? "", _port, _body ?? ""), serializer);
}
public void pool_certificate_install(string session, string _name, string _cert)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.certificate_install", new JArray(session, _name ?? "", _cert ?? ""), serializer);
}
public XenRef<Task> async_pool_certificate_install(string session, string _name, string _cert)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.certificate_install", new JArray(session, _name ?? "", _cert ?? ""), serializer);
}
public void pool_certificate_uninstall(string session, string _name)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.certificate_uninstall", new JArray(session, _name ?? ""), serializer);
}
public XenRef<Task> async_pool_certificate_uninstall(string session, string _name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.certificate_uninstall", new JArray(session, _name ?? ""), serializer);
}
public string[] pool_certificate_list(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("pool.certificate_list", new JArray(session), serializer);
}
public XenRef<Task> async_pool_certificate_list(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.certificate_list", new JArray(session), serializer);
}
public void pool_crl_install(string session, string _name, string _cert)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.crl_install", new JArray(session, _name ?? "", _cert ?? ""), serializer);
}
public XenRef<Task> async_pool_crl_install(string session, string _name, string _cert)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.crl_install", new JArray(session, _name ?? "", _cert ?? ""), serializer);
}
public void pool_crl_uninstall(string session, string _name)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.crl_uninstall", new JArray(session, _name ?? ""), serializer);
}
public XenRef<Task> async_pool_crl_uninstall(string session, string _name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.crl_uninstall", new JArray(session, _name ?? ""), serializer);
}
public string[] pool_crl_list(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("pool.crl_list", new JArray(session), serializer);
}
public XenRef<Task> async_pool_crl_list(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.crl_list", new JArray(session), serializer);
}
public void pool_certificate_sync(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.certificate_sync", new JArray(session), serializer);
}
public XenRef<Task> async_pool_certificate_sync(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.certificate_sync", new JArray(session), serializer);
}
public void pool_enable_redo_log(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("pool.enable_redo_log", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_pool_enable_redo_log(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.enable_redo_log", new JArray(session, _sr ?? ""), serializer);
}
public void pool_disable_redo_log(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.disable_redo_log", new JArray(session), serializer);
}
public XenRef<Task> async_pool_disable_redo_log(string session)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.disable_redo_log", new JArray(session), serializer);
}
public void pool_set_vswitch_controller(string session, string _address)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_vswitch_controller", new JArray(session, _address ?? ""), serializer);
}
public XenRef<Task> async_pool_set_vswitch_controller(string session, string _address)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.set_vswitch_controller", new JArray(session, _address ?? ""), serializer);
}
public string pool_test_archive_target(string session, string _pool, Dictionary<string, string> _config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool.test_archive_target", new JArray(session, _pool ?? "", _config == null ? new JObject() : JObject.FromObject(_config, serializer)), serializer);
}
public void pool_enable_local_storage_caching(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.enable_local_storage_caching", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Task> async_pool_enable_local_storage_caching(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.enable_local_storage_caching", new JArray(session, _pool ?? ""), serializer);
}
public void pool_disable_local_storage_caching(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.disable_local_storage_caching", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Task> async_pool_disable_local_storage_caching(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.disable_local_storage_caching", new JArray(session, _pool ?? ""), serializer);
}
public Dictionary<string, string> pool_get_license_state(string session, string _pool)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool.get_license_state", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Task> async_pool_get_license_state(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.get_license_state", new JArray(session, _pool ?? ""), serializer);
}
public void pool_apply_edition(string session, string _pool, string _edition)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.apply_edition", new JArray(session, _pool ?? "", _edition ?? ""), serializer);
}
public XenRef<Task> async_pool_apply_edition(string session, string _pool, string _edition)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.apply_edition", new JArray(session, _pool ?? "", _edition ?? ""), serializer);
}
public void pool_enable_ssl_legacy(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.enable_ssl_legacy", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Task> async_pool_enable_ssl_legacy(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.enable_ssl_legacy", new JArray(session, _pool ?? ""), serializer);
}
public void pool_disable_ssl_legacy(string session, string _pool)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.disable_ssl_legacy", new JArray(session, _pool ?? ""), serializer);
}
public XenRef<Task> async_pool_disable_ssl_legacy(string session, string _pool)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.disable_ssl_legacy", new JArray(session, _pool ?? ""), serializer);
}
public void pool_set_igmp_snooping_enabled(string session, string _pool, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.set_igmp_snooping_enabled", new JArray(session, _pool ?? "", _value), serializer);
}
public XenRef<Task> async_pool_set_igmp_snooping_enabled(string session, string _pool, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.set_igmp_snooping_enabled", new JArray(session, _pool ?? "", _value), serializer);
}
public bool pool_has_extension(string session, string _pool, string _name)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool.has_extension", new JArray(session, _pool ?? "", _name ?? ""), serializer);
}
public XenRef<Task> async_pool_has_extension(string session, string _pool, string _name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.has_extension", new JArray(session, _pool ?? "", _name ?? ""), serializer);
}
public void pool_add_to_guest_agent_config(string session, string _pool, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.add_to_guest_agent_config", new JArray(session, _pool ?? "", _key ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pool_add_to_guest_agent_config(string session, string _pool, string _key, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.add_to_guest_agent_config", new JArray(session, _pool ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_remove_from_guest_agent_config(string session, string _pool, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool.remove_from_guest_agent_config", new JArray(session, _pool ?? "", _key ?? ""), serializer);
}
public XenRef<Task> async_pool_remove_from_guest_agent_config(string session, string _pool, string _key)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool.remove_from_guest_agent_config", new JArray(session, _pool ?? "", _key ?? ""), serializer);
}
public List<XenRef<Pool>> pool_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool>>>("pool.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Pool>, Pool> pool_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Pool>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Pool>, Pool>>("pool.get_all_records", new JArray(session), serializer);
}
public Pool_patch pool_patch_get_record(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Pool_patch>("pool_patch.get_record", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Pool_patch> pool_patch_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool_patch>>("pool_patch.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Pool_patch>> pool_patch_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_patch>>>("pool_patch.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string pool_patch_get_uuid(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.get_uuid", new JArray(session, _pool_patch ?? ""), serializer);
}
public string pool_patch_get_name_label(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.get_name_label", new JArray(session, _pool_patch ?? ""), serializer);
}
public string pool_patch_get_name_description(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.get_name_description", new JArray(session, _pool_patch ?? ""), serializer);
}
public string pool_patch_get_version(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.get_version", new JArray(session, _pool_patch ?? ""), serializer);
}
public long pool_patch_get_size(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool_patch.get_size", new JArray(session, _pool_patch ?? ""), serializer);
}
public bool pool_patch_get_pool_applied(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool_patch.get_pool_applied", new JArray(session, _pool_patch ?? ""), serializer);
}
public List<XenRef<Host_patch>> pool_patch_get_host_patches(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_patch>>>("pool_patch.get_host_patches", new JArray(session, _pool_patch ?? ""), serializer);
}
public List<after_apply_guidance> pool_patch_get_after_apply_guidance(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<after_apply_guidance>>("pool_patch.get_after_apply_guidance", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Pool_update> pool_patch_get_pool_update(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool_update>>("pool_patch.get_pool_update", new JArray(session, _pool_patch ?? ""), serializer);
}
public Dictionary<string, string> pool_patch_get_other_config(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool_patch.get_other_config", new JArray(session, _pool_patch ?? ""), serializer);
}
public void pool_patch_set_other_config(string session, string _pool_patch, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.set_other_config", new JArray(session, _pool_patch ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pool_patch_add_to_other_config(string session, string _pool_patch, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.add_to_other_config", new JArray(session, _pool_patch ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_patch_remove_from_other_config(string session, string _pool_patch, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.remove_from_other_config", new JArray(session, _pool_patch ?? "", _key ?? ""), serializer);
}
public string pool_patch_apply(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.apply", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_apply(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.apply", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public void pool_patch_pool_apply(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.pool_apply", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_pool_apply(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.pool_apply", new JArray(session, _pool_patch ?? ""), serializer);
}
public string pool_patch_precheck(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_patch.precheck", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_precheck(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.precheck", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public void pool_patch_clean(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.clean", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_clean(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.clean", new JArray(session, _pool_patch ?? ""), serializer);
}
public void pool_patch_pool_clean(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.pool_clean", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_pool_clean(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.pool_clean", new JArray(session, _pool_patch ?? ""), serializer);
}
public void pool_patch_destroy(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.destroy", new JArray(session, _pool_patch ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_destroy(string session, string _pool_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.destroy", new JArray(session, _pool_patch ?? ""), serializer);
}
public void pool_patch_clean_on_host(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("pool_patch.clean_on_host", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_pool_patch_clean_on_host(string session, string _pool_patch, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_patch.clean_on_host", new JArray(session, _pool_patch ?? "", _host ?? ""), serializer);
}
public List<XenRef<Pool_patch>> pool_patch_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_patch>>>("pool_patch.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Pool_patch>, Pool_patch> pool_patch_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Pool_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Pool_patch>, Pool_patch>>("pool_patch.get_all_records", new JArray(session), serializer);
}
public Pool_update pool_update_get_record(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Pool_update>("pool_update.get_record", new JArray(session, _pool_update ?? ""), serializer);
}
public XenRef<Pool_update> pool_update_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool_update>>("pool_update.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Pool_update>> pool_update_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_update>>>("pool_update.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string pool_update_get_uuid(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_update.get_uuid", new JArray(session, _pool_update ?? ""), serializer);
}
public string pool_update_get_name_label(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_update.get_name_label", new JArray(session, _pool_update ?? ""), serializer);
}
public string pool_update_get_name_description(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_update.get_name_description", new JArray(session, _pool_update ?? ""), serializer);
}
public string pool_update_get_version(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_update.get_version", new JArray(session, _pool_update ?? ""), serializer);
}
public long pool_update_get_installation_size(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("pool_update.get_installation_size", new JArray(session, _pool_update ?? ""), serializer);
}
public string pool_update_get_key(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("pool_update.get_key", new JArray(session, _pool_update ?? ""), serializer);
}
public List<update_after_apply_guidance> pool_update_get_after_apply_guidance(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<update_after_apply_guidance>>("pool_update.get_after_apply_guidance", new JArray(session, _pool_update ?? ""), serializer);
}
public XenRef<VDI> pool_update_get_vdi(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("pool_update.get_vdi", new JArray(session, _pool_update ?? ""), serializer);
}
public List<XenRef<Host>> pool_update_get_hosts(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host>>>("pool_update.get_hosts", new JArray(session, _pool_update ?? ""), serializer);
}
public Dictionary<string, string> pool_update_get_other_config(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("pool_update.get_other_config", new JArray(session, _pool_update ?? ""), serializer);
}
public bool pool_update_get_enforce_homogeneity(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("pool_update.get_enforce_homogeneity", new JArray(session, _pool_update ?? ""), serializer);
}
public void pool_update_set_other_config(string session, string _pool_update, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("pool_update.set_other_config", new JArray(session, _pool_update ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pool_update_add_to_other_config(string session, string _pool_update, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_update.add_to_other_config", new JArray(session, _pool_update ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pool_update_remove_from_other_config(string session, string _pool_update, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_update.remove_from_other_config", new JArray(session, _pool_update ?? "", _key ?? ""), serializer);
}
public XenRef<Pool_update> pool_update_introduce(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool_update>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool_update>>("pool_update.introduce", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_pool_update_introduce(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.introduce", new JArray(session, _vdi ?? ""), serializer);
}
public livepatch_status pool_update_precheck(string session, string _pool_update, string _host)
{
var converters = new List<JsonConverter> {new livepatch_statusConverter(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<livepatch_status>("pool_update.precheck", new JArray(session, _pool_update ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_pool_update_precheck(string session, string _pool_update, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.precheck", new JArray(session, _pool_update ?? "", _host ?? ""), serializer);
}
public void pool_update_apply(string session, string _pool_update, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("pool_update.apply", new JArray(session, _pool_update ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_pool_update_apply(string session, string _pool_update, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.apply", new JArray(session, _pool_update ?? "", _host ?? ""), serializer);
}
public void pool_update_pool_apply(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_update.pool_apply", new JArray(session, _pool_update ?? ""), serializer);
}
public XenRef<Task> async_pool_update_pool_apply(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.pool_apply", new JArray(session, _pool_update ?? ""), serializer);
}
public void pool_update_pool_clean(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_update.pool_clean", new JArray(session, _pool_update ?? ""), serializer);
}
public XenRef<Task> async_pool_update_pool_clean(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.pool_clean", new JArray(session, _pool_update ?? ""), serializer);
}
public void pool_update_destroy(string session, string _pool_update)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("pool_update.destroy", new JArray(session, _pool_update ?? ""), serializer);
}
public XenRef<Task> async_pool_update_destroy(string session, string _pool_update)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.pool_update.destroy", new JArray(session, _pool_update ?? ""), serializer);
}
public List<XenRef<Pool_update>> pool_update_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_update>>>("pool_update.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Pool_update>, Pool_update> pool_update_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Pool_update>, Pool_update>>("pool_update.get_all_records", new JArray(session), serializer);
}
public VM vm_get_record(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VM>("VM.get_record", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM> vm_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VM> vm_create(string session, VM _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vm_create(string session, VM _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vm_destroy(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.destroy", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_destroy(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.destroy", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VM>> vm_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string vm_get_uuid(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_uuid", new JArray(session, _vm ?? ""), serializer);
}
public List<vm_operations> vm_get_allowed_operations(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vm_operations>>("VM.get_allowed_operations", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, vm_operations> vm_get_current_operations(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vm_operations>>("VM.get_current_operations", new JArray(session, _vm ?? ""), serializer);
}
public vm_power_state vm_get_power_state(string session, string _vm)
{
var converters = new List<JsonConverter> {new vm_power_stateConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vm_power_state>("VM.get_power_state", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_name_label(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_name_label", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_name_description(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_name_description", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_user_version(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_user_version", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_a_template(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_a_template", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_default_template(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_default_template", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VDI> vm_get_suspend_vdi(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VM.get_suspend_VDI", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Host> vm_get_resident_on(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("VM.get_resident_on", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Host> vm_get_affinity(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("VM.get_affinity", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_overhead(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_overhead", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_target(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_target", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_static_max(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_static_max", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_dynamic_max(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_dynamic_max", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_dynamic_min(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_dynamic_min", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_memory_static_min(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_memory_static_min", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_vcpus_params(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_VCPUs_params", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_vcpus_max(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_VCPUs_max", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_vcpus_at_startup(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_VCPUs_at_startup", new JArray(session, _vm ?? ""), serializer);
}
public on_normal_exit vm_get_actions_after_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {new on_normal_exitConverter()};
var serializer = CreateSerializer(converters);
return Rpc<on_normal_exit>("VM.get_actions_after_shutdown", new JArray(session, _vm ?? ""), serializer);
}
public on_normal_exit vm_get_actions_after_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {new on_normal_exitConverter()};
var serializer = CreateSerializer(converters);
return Rpc<on_normal_exit>("VM.get_actions_after_reboot", new JArray(session, _vm ?? ""), serializer);
}
public on_crash_behaviour vm_get_actions_after_crash(string session, string _vm)
{
var converters = new List<JsonConverter> {new on_crash_behaviourConverter()};
var serializer = CreateSerializer(converters);
return Rpc<on_crash_behaviour>("VM.get_actions_after_crash", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<Console>> vm_get_consoles(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Console>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Console>>>("VM.get_consoles", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VIF>> vm_get_vifs(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VIF>>>("VM.get_VIFs", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VBD>> vm_get_vbds(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VBD>>>("VM.get_VBDs", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VUSB>> vm_get_vusbs(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VUSB>>>("VM.get_VUSBs", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<Crashdump>> vm_get_crash_dumps(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Crashdump>>>("VM.get_crash_dumps", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VTPM>> vm_get_vtpms(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VTPM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VTPM>>>("VM.get_VTPMs", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_bootloader(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_bootloader", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_kernel(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_kernel", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_ramdisk(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_ramdisk", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_args(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_args", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_bootloader_args(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_bootloader_args", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pv_legacy_args(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PV_legacy_args", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_hvm_boot_policy(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_HVM_boot_policy", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_hvm_boot_params(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_HVM_boot_params", new JArray(session, _vm ?? ""), serializer);
}
public double vm_get_hvm_shadow_multiplier(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VM.get_HVM_shadow_multiplier", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_platform(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_platform", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_pci_bus(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_PCI_bus", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_other_config(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_other_config", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_domid(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_domid", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_domarch(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_domarch", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_last_boot_cpu_flags(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_last_boot_CPU_flags", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_control_domain(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_control_domain", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM_metrics> vm_get_metrics(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_metrics>>("VM.get_metrics", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM_guest_metrics> vm_get_guest_metrics(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_guest_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_guest_metrics>>("VM.get_guest_metrics", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_last_booted_record(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_last_booted_record", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_recommendations(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_recommendations", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_xenstore_data(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_xenstore_data", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_ha_always_run(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_ha_always_run", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_ha_restart_priority(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_ha_restart_priority", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_a_snapshot(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_a_snapshot", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM> vm_get_snapshot_of(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.get_snapshot_of", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VM>> vm_get_snapshots(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM.get_snapshots", new JArray(session, _vm ?? ""), serializer);
}
public DateTime vm_get_snapshot_time(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VM.get_snapshot_time", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_transportable_snapshot_id(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_transportable_snapshot_id", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, XenRef<Blob>> vm_get_blobs(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringXenRefMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, XenRef<Blob>>>("VM.get_blobs", new JArray(session, _vm ?? ""), serializer);
}
public string[] vm_get_tags(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VM.get_tags", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<vm_operations, string> vm_get_blocked_operations(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<vm_operations, string>>("VM.get_blocked_operations", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_snapshot_info(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_snapshot_info", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_snapshot_metadata(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_snapshot_metadata", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM> vm_get_parent(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.get_parent", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VM>> vm_get_children(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM.get_children", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_bios_strings(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_bios_strings", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VMPP> vm_get_protection_policy(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMPP>>("VM.get_protection_policy", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_snapshot_from_vmpp(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_snapshot_from_vmpp", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VMSS> vm_get_snapshot_schedule(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMSS>>("VM.get_snapshot_schedule", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_is_vmss_snapshot(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_is_vmss_snapshot", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM_appliance> vm_get_appliance(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_appliance>>("VM.get_appliance", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_start_delay(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_start_delay", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_shutdown_delay(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_shutdown_delay", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_order(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_order", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<VGPU>> vm_get_vgpus(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU>>>("VM.get_VGPUs", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<PCI>> vm_get_attached_pcis(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PCI>>>("VM.get_attached_PCIs", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<SR> vm_get_suspend_sr(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("VM.get_suspend_SR", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_version(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_version", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_generation_id(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_generation_id", new JArray(session, _vm ?? ""), serializer);
}
public long vm_get_hardware_platform_version(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.get_hardware_platform_version", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_has_vendor_device(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_has_vendor_device", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_requires_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_requires_reboot", new JArray(session, _vm ?? ""), serializer);
}
public string vm_get_reference_label(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.get_reference_label", new JArray(session, _vm ?? ""), serializer);
}
public domain_type vm_get_domain_type(string session, string _vm)
{
var converters = new List<JsonConverter> {new domain_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<domain_type>("VM.get_domain_type", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<string, string> vm_get_nvram(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.get_NVRAM", new JArray(session, _vm ?? ""), serializer);
}
public void vm_set_name_label(string session, string _vm, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_name_label", new JArray(session, _vm ?? "", _label ?? ""), serializer);
}
public void vm_set_name_description(string session, string _vm, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_name_description", new JArray(session, _vm ?? "", _description ?? ""), serializer);
}
public void vm_set_user_version(string session, string _vm, long _user_version)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_user_version", new JArray(session, _vm ?? "", _user_version), serializer);
}
public void vm_set_is_a_template(string session, string _vm, bool _is_a_template)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_is_a_template", new JArray(session, _vm ?? "", _is_a_template), serializer);
}
public void vm_set_affinity(string session, string _vm, string _affinity)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_affinity", new JArray(session, _vm ?? "", _affinity ?? ""), serializer);
}
public void vm_set_vcpus_params(string session, string _vm, Dictionary<string, string> _params)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_VCPUs_params", new JArray(session, _vm ?? "", _params == null ? new JObject() : JObject.FromObject(_params, serializer)), serializer);
}
public void vm_add_to_vcpus_params(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_VCPUs_params", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_vcpus_params(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_VCPUs_params", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_actions_after_shutdown(string session, string _vm, on_normal_exit _after_shutdown)
{
var converters = new List<JsonConverter> {new on_normal_exitConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_actions_after_shutdown", new JArray(session, _vm ?? "", _after_shutdown.StringOf()), serializer);
}
public void vm_set_actions_after_reboot(string session, string _vm, on_normal_exit _after_reboot)
{
var converters = new List<JsonConverter> {new on_normal_exitConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_actions_after_reboot", new JArray(session, _vm ?? "", _after_reboot.StringOf()), serializer);
}
public void vm_set_pv_bootloader(string session, string _vm, string _bootloader)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_bootloader", new JArray(session, _vm ?? "", _bootloader ?? ""), serializer);
}
public void vm_set_pv_kernel(string session, string _vm, string _kernel)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_kernel", new JArray(session, _vm ?? "", _kernel ?? ""), serializer);
}
public void vm_set_pv_ramdisk(string session, string _vm, string _ramdisk)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_ramdisk", new JArray(session, _vm ?? "", _ramdisk ?? ""), serializer);
}
public void vm_set_pv_args(string session, string _vm, string _args)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_args", new JArray(session, _vm ?? "", _args ?? ""), serializer);
}
public void vm_set_pv_bootloader_args(string session, string _vm, string _bootloader_args)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_bootloader_args", new JArray(session, _vm ?? "", _bootloader_args ?? ""), serializer);
}
public void vm_set_pv_legacy_args(string session, string _vm, string _legacy_args)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PV_legacy_args", new JArray(session, _vm ?? "", _legacy_args ?? ""), serializer);
}
public void vm_set_hvm_boot_params(string session, string _vm, Dictionary<string, string> _boot_params)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_HVM_boot_params", new JArray(session, _vm ?? "", _boot_params == null ? new JObject() : JObject.FromObject(_boot_params, serializer)), serializer);
}
public void vm_add_to_hvm_boot_params(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_HVM_boot_params", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_hvm_boot_params(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_HVM_boot_params", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_platform(string session, string _vm, Dictionary<string, string> _platform)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_platform", new JArray(session, _vm ?? "", _platform == null ? new JObject() : JObject.FromObject(_platform, serializer)), serializer);
}
public void vm_add_to_platform(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_platform", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_platform(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_platform", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_pci_bus(string session, string _vm, string _pci_bus)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_PCI_bus", new JArray(session, _vm ?? "", _pci_bus ?? ""), serializer);
}
public void vm_set_other_config(string session, string _vm, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_other_config", new JArray(session, _vm ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vm_add_to_other_config(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_other_config", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_other_config(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_other_config", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_recommendations(string session, string _vm, string _recommendations)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_recommendations", new JArray(session, _vm ?? "", _recommendations ?? ""), serializer);
}
public void vm_set_xenstore_data(string session, string _vm, Dictionary<string, string> _xenstore_data)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_xenstore_data", new JArray(session, _vm ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer)), serializer);
}
public void vm_add_to_xenstore_data(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_xenstore_data", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_xenstore_data(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_xenstore_data", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_tags(string session, string _vm, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_tags", new JArray(session, _vm ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void vm_add_tags(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_tags", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_remove_tags(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_tags", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_set_blocked_operations(string session, string _vm, Dictionary<vm_operations, string> _blocked_operations)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_blocked_operations", new JArray(session, _vm ?? "", _blocked_operations == null ? new JObject() : JObject.FromObject(_blocked_operations, serializer)), serializer);
}
public void vm_add_to_blocked_operations(string session, string _vm, vm_operations _key, string _value)
{
var converters = new List<JsonConverter> {new vm_operationsConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_blocked_operations", new JArray(session, _vm ?? "", _key.StringOf(), _value ?? ""), serializer);
}
public void vm_remove_from_blocked_operations(string session, string _vm, vm_operations _key)
{
var converters = new List<JsonConverter> {new vm_operationsConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_blocked_operations", new JArray(session, _vm ?? "", _key.StringOf()), serializer);
}
public void vm_set_suspend_sr(string session, string _vm, string _suspend_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_suspend_SR", new JArray(session, _vm ?? "", _suspend_sr ?? ""), serializer);
}
public void vm_set_hardware_platform_version(string session, string _vm, long _hardware_platform_version)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_hardware_platform_version", new JArray(session, _vm ?? "", _hardware_platform_version), serializer);
}
public XenRef<VM> vm_snapshot(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.snapshot", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<Task> async_vm_snapshot(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.snapshot", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<VM> vm_snapshot_with_quiesce(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.snapshot_with_quiesce", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<Task> async_vm_snapshot_with_quiesce(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.snapshot_with_quiesce", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<VM> vm_clone(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.clone", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<Task> async_vm_clone(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.clone", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<VM> vm_copy(string session, string _vm, string _new_name, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.copy", new JArray(session, _vm ?? "", _new_name ?? "", _sr ?? ""), serializer);
}
public XenRef<Task> async_vm_copy(string session, string _vm, string _new_name, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.copy", new JArray(session, _vm ?? "", _new_name ?? "", _sr ?? ""), serializer);
}
public void vm_revert(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.revert", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_revert(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.revert", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<VM> vm_checkpoint(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.checkpoint", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public XenRef<Task> async_vm_checkpoint(string session, string _vm, string _new_name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.checkpoint", new JArray(session, _vm ?? "", _new_name ?? ""), serializer);
}
public void vm_provision(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.provision", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_provision(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.provision", new JArray(session, _vm ?? ""), serializer);
}
public void vm_start(string session, string _vm, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.start", new JArray(session, _vm ?? "", _start_paused, _force), serializer);
}
public XenRef<Task> async_vm_start(string session, string _vm, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.start", new JArray(session, _vm ?? "", _start_paused, _force), serializer);
}
public void vm_start_on(string session, string _vm, string _host, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("VM.start_on", new JArray(session, _vm ?? "", _host ?? "", _start_paused, _force), serializer);
}
public XenRef<Task> async_vm_start_on(string session, string _vm, string _host, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.start_on", new JArray(session, _vm ?? "", _host ?? "", _start_paused, _force), serializer);
}
public void vm_pause(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.pause", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_pause(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.pause", new JArray(session, _vm ?? ""), serializer);
}
public void vm_unpause(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.unpause", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_unpause(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.unpause", new JArray(session, _vm ?? ""), serializer);
}
public void vm_clean_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.clean_shutdown", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_clean_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.clean_shutdown", new JArray(session, _vm ?? ""), serializer);
}
public void vm_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.shutdown", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.shutdown", new JArray(session, _vm ?? ""), serializer);
}
public void vm_clean_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.clean_reboot", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_clean_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.clean_reboot", new JArray(session, _vm ?? ""), serializer);
}
public void vm_hard_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.hard_shutdown", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_hard_shutdown(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.hard_shutdown", new JArray(session, _vm ?? ""), serializer);
}
public void vm_power_state_reset(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.power_state_reset", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_power_state_reset(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.power_state_reset", new JArray(session, _vm ?? ""), serializer);
}
public void vm_hard_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.hard_reboot", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_hard_reboot(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.hard_reboot", new JArray(session, _vm ?? ""), serializer);
}
public void vm_suspend(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.suspend", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_suspend(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.suspend", new JArray(session, _vm ?? ""), serializer);
}
public void vm_resume(string session, string _vm, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.resume", new JArray(session, _vm ?? "", _start_paused, _force), serializer);
}
public XenRef<Task> async_vm_resume(string session, string _vm, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.resume", new JArray(session, _vm ?? "", _start_paused, _force), serializer);
}
public void vm_resume_on(string session, string _vm, string _host, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("VM.resume_on", new JArray(session, _vm ?? "", _host ?? "", _start_paused, _force), serializer);
}
public XenRef<Task> async_vm_resume_on(string session, string _vm, string _host, bool _start_paused, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.resume_on", new JArray(session, _vm ?? "", _host ?? "", _start_paused, _force), serializer);
}
public void vm_pool_migrate(string session, string _vm, string _host, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.pool_migrate", new JArray(session, _vm ?? "", _host ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_vm_pool_migrate(string session, string _vm, string _host, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.pool_migrate", new JArray(session, _vm ?? "", _host ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public void vm_set_vcpus_number_live(string session, string _vm, long _nvcpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_VCPUs_number_live", new JArray(session, _vm ?? "", _nvcpu), serializer);
}
public XenRef<Task> async_vm_set_vcpus_number_live(string session, string _vm, long _nvcpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_VCPUs_number_live", new JArray(session, _vm ?? "", _nvcpu), serializer);
}
public void vm_add_to_vcpus_params_live(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_VCPUs_params_live", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vm_add_to_vcpus_params_live(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.add_to_VCPUs_params_live", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_set_nvram(string session, string _vm, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_NVRAM", new JArray(session, _vm ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vm_add_to_nvram(string session, string _vm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.add_to_NVRAM", new JArray(session, _vm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_remove_from_nvram(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.remove_from_NVRAM", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_set_ha_restart_priority(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_ha_restart_priority", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_set_ha_always_run(string session, string _vm, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_ha_always_run", new JArray(session, _vm ?? "", _value), serializer);
}
public long vm_compute_memory_overhead(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.compute_memory_overhead", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_compute_memory_overhead(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.compute_memory_overhead", new JArray(session, _vm ?? ""), serializer);
}
public void vm_set_memory_dynamic_max(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_dynamic_max", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_memory_dynamic_min(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_dynamic_min", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_memory_dynamic_range(string session, string _vm, long _min, long _max)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_dynamic_range", new JArray(session, _vm ?? "", _min, _max), serializer);
}
public XenRef<Task> async_vm_set_memory_dynamic_range(string session, string _vm, long _min, long _max)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_memory_dynamic_range", new JArray(session, _vm ?? "", _min, _max), serializer);
}
public void vm_set_memory_static_max(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_static_max", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_memory_static_min(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_static_min", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_memory_static_range(string session, string _vm, long _min, long _max)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_static_range", new JArray(session, _vm ?? "", _min, _max), serializer);
}
public XenRef<Task> async_vm_set_memory_static_range(string session, string _vm, long _min, long _max)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_memory_static_range", new JArray(session, _vm ?? "", _min, _max), serializer);
}
public void vm_set_memory_limits(string session, string _vm, long _static_min, long _static_max, long _dynamic_min, long _dynamic_max)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_limits", new JArray(session, _vm ?? "", _static_min, _static_max, _dynamic_min, _dynamic_max), serializer);
}
public XenRef<Task> async_vm_set_memory_limits(string session, string _vm, long _static_min, long _static_max, long _dynamic_min, long _dynamic_max)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_memory_limits", new JArray(session, _vm ?? "", _static_min, _static_max, _dynamic_min, _dynamic_max), serializer);
}
public void vm_set_memory(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory", new JArray(session, _vm ?? "", _value), serializer);
}
public XenRef<Task> async_vm_set_memory(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_memory", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_memory_target_live(string session, string _vm, long _target)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_memory_target_live", new JArray(session, _vm ?? "", _target), serializer);
}
public XenRef<Task> async_vm_set_memory_target_live(string session, string _vm, long _target)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_memory_target_live", new JArray(session, _vm ?? "", _target), serializer);
}
public void vm_wait_memory_target_live(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.wait_memory_target_live", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_wait_memory_target_live(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.wait_memory_target_live", new JArray(session, _vm ?? ""), serializer);
}
public bool vm_get_cooperative(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM.get_cooperative", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_get_cooperative(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.get_cooperative", new JArray(session, _vm ?? ""), serializer);
}
public void vm_set_hvm_shadow_multiplier(string session, string _vm, double _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_HVM_shadow_multiplier", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_shadow_multiplier_live(string session, string _vm, double _multiplier)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_shadow_multiplier_live", new JArray(session, _vm ?? "", _multiplier), serializer);
}
public XenRef<Task> async_vm_set_shadow_multiplier_live(string session, string _vm, double _multiplier)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_shadow_multiplier_live", new JArray(session, _vm ?? "", _multiplier), serializer);
}
public void vm_set_vcpus_max(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_VCPUs_max", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_vcpus_at_startup(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_VCPUs_at_startup", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_send_sysrq(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.send_sysrq", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public XenRef<Task> async_vm_send_sysrq(string session, string _vm, string _key)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.send_sysrq", new JArray(session, _vm ?? "", _key ?? ""), serializer);
}
public void vm_send_trigger(string session, string _vm, string _trigger)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.send_trigger", new JArray(session, _vm ?? "", _trigger ?? ""), serializer);
}
public XenRef<Task> async_vm_send_trigger(string session, string _vm, string _trigger)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.send_trigger", new JArray(session, _vm ?? "", _trigger ?? ""), serializer);
}
public long vm_maximise_memory(string session, string _vm, long _total, bool _approximate)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM.maximise_memory", new JArray(session, _vm ?? "", _total, _approximate), serializer);
}
public XenRef<Task> async_vm_maximise_memory(string session, string _vm, long _total, bool _approximate)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.maximise_memory", new JArray(session, _vm ?? "", _total, _approximate), serializer);
}
public XenRef<VM> vm_migrate_send(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.migrate_send", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_vm_migrate_send(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.migrate_send", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<VM> vm_migrate_send(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options, Dictionary<XenRef<VGPU>, XenRef<GPU_group>> _vgpu_map)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VGPU, GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VM.migrate_send", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer), _vgpu_map == null ? new JObject() : JObject.FromObject(_vgpu_map, serializer)), serializer);
}
public XenRef<Task> async_vm_migrate_send(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options, Dictionary<XenRef<VGPU>, XenRef<GPU_group>> _vgpu_map)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VGPU, GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.migrate_send", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer), _vgpu_map == null ? new JObject() : JObject.FromObject(_vgpu_map, serializer)), serializer);
}
public void vm_assert_can_migrate(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_can_migrate", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_vm_assert_can_migrate(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_can_migrate", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public void vm_assert_can_migrate(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options, Dictionary<XenRef<VGPU>, XenRef<GPU_group>> _vgpu_map)
{
var converters = new List<JsonConverter> {new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VGPU, GPU_group>()};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_can_migrate", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer), _vgpu_map == null ? new JObject() : JObject.FromObject(_vgpu_map, serializer)), serializer);
}
public XenRef<Task> async_vm_assert_can_migrate(string session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options, Dictionary<XenRef<VGPU>, XenRef<GPU_group>> _vgpu_map)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VDI, SR>(), new XenRefXenRefMapConverter<VIF, Network>(), new StringStringMapConverter(), new XenRefXenRefMapConverter<VGPU, GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_can_migrate", new JArray(session, _vm ?? "", _dest == null ? new JObject() : JObject.FromObject(_dest, serializer), _live, _vdi_map == null ? new JObject() : JObject.FromObject(_vdi_map, serializer), _vif_map == null ? new JObject() : JObject.FromObject(_vif_map, serializer), _options == null ? new JObject() : JObject.FromObject(_options, serializer), _vgpu_map == null ? new JObject() : JObject.FromObject(_vgpu_map, serializer)), serializer);
}
public VM vm_get_boot_record(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VM>("VM.get_boot_record", new JArray(session, _vm ?? ""), serializer);
}
public List<Data_source> vm_get_data_sources(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<Data_source>>("VM.get_data_sources", new JArray(session, _vm ?? ""), serializer);
}
public void vm_record_data_source(string session, string _vm, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.record_data_source", new JArray(session, _vm ?? "", _data_source ?? ""), serializer);
}
public double vm_query_data_source(string session, string _vm, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VM.query_data_source", new JArray(session, _vm ?? "", _data_source ?? ""), serializer);
}
public void vm_forget_data_source_archives(string session, string _vm, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.forget_data_source_archives", new JArray(session, _vm ?? "", _data_source ?? ""), serializer);
}
public void vm_assert_operation_valid(string session, string _vm, vm_operations _op)
{
var converters = new List<JsonConverter> {new vm_operationsConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_operation_valid", new JArray(session, _vm ?? "", _op.StringOf()), serializer);
}
public XenRef<Task> async_vm_assert_operation_valid(string session, string _vm, vm_operations _op)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new vm_operationsConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_operation_valid", new JArray(session, _vm ?? "", _op.StringOf()), serializer);
}
public void vm_update_allowed_operations(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.update_allowed_operations", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_update_allowed_operations(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.update_allowed_operations", new JArray(session, _vm ?? ""), serializer);
}
public string[] vm_get_allowed_vbd_devices(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VM.get_allowed_VBD_devices", new JArray(session, _vm ?? ""), serializer);
}
public string[] vm_get_allowed_vif_devices(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VM.get_allowed_VIF_devices", new JArray(session, _vm ?? ""), serializer);
}
public List<XenRef<Host>> vm_get_possible_hosts(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host>>>("VM.get_possible_hosts", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_get_possible_hosts(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.get_possible_hosts", new JArray(session, _vm ?? ""), serializer);
}
public void vm_assert_can_boot_here(string session, string _vm, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_can_boot_here", new JArray(session, _vm ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_vm_assert_can_boot_here(string session, string _vm, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_can_boot_here", new JArray(session, _vm ?? "", _host ?? ""), serializer);
}
public XenRef<Blob> vm_create_new_blob(string session, string _vm, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("VM.create_new_blob", new JArray(session, _vm ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Task> async_vm_create_new_blob(string session, string _vm, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.create_new_blob", new JArray(session, _vm ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Blob> vm_create_new_blob(string session, string _vm, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("VM.create_new_blob", new JArray(session, _vm ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public XenRef<Task> async_vm_create_new_blob(string session, string _vm, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.create_new_blob", new JArray(session, _vm ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public void vm_assert_agile(string session, string _vm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_agile", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_assert_agile(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_agile", new JArray(session, _vm ?? ""), serializer);
}
public Dictionary<XenRef<Host>, string[]> vm_retrieve_wlb_recommendations(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefStringSetMapConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host>, string[]>>("VM.retrieve_wlb_recommendations", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_retrieve_wlb_recommendations(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.retrieve_wlb_recommendations", new JArray(session, _vm ?? ""), serializer);
}
public void vm_set_bios_strings(string session, string _vm, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_bios_strings", new JArray(session, _vm ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public XenRef<Task> async_vm_set_bios_strings(string session, string _vm, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_bios_strings", new JArray(session, _vm ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vm_copy_bios_strings(string session, string _vm, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("VM.copy_bios_strings", new JArray(session, _vm ?? "", _host ?? ""), serializer);
}
public XenRef<Task> async_vm_copy_bios_strings(string session, string _vm, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.copy_bios_strings", new JArray(session, _vm ?? "", _host ?? ""), serializer);
}
public void vm_set_protection_policy(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMPP>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_protection_policy", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_set_snapshot_schedule(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMSS>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_snapshot_schedule", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_set_start_delay(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_start_delay", new JArray(session, _vm ?? "", _value), serializer);
}
public XenRef<Task> async_vm_set_start_delay(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_start_delay", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_shutdown_delay(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_shutdown_delay", new JArray(session, _vm ?? "", _value), serializer);
}
public XenRef<Task> async_vm_set_shutdown_delay(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_shutdown_delay", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_order(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_order", new JArray(session, _vm ?? "", _value), serializer);
}
public XenRef<Task> async_vm_set_order(string session, string _vm, long _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_order", new JArray(session, _vm ?? "", _value), serializer);
}
public void vm_set_suspend_vdi(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_suspend_VDI", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vm_set_suspend_vdi(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_suspend_VDI", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public void vm_assert_can_be_recovered(string session, string _vm, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
Rpc("VM.assert_can_be_recovered", new JArray(session, _vm ?? "", _session_to ?? ""), serializer);
}
public XenRef<Task> async_vm_assert_can_be_recovered(string session, string _vm, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.assert_can_be_recovered", new JArray(session, _vm ?? "", _session_to ?? ""), serializer);
}
public List<XenRef<SR>> vm_get_srs_required_for_recovery(string session, string _vm, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SR>>>("VM.get_SRs_required_for_recovery", new JArray(session, _vm ?? "", _session_to ?? ""), serializer);
}
public XenRef<Task> async_vm_get_srs_required_for_recovery(string session, string _vm, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.get_SRs_required_for_recovery", new JArray(session, _vm ?? "", _session_to ?? ""), serializer);
}
public void vm_recover(string session, string _vm, string _session_to, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
Rpc("VM.recover", new JArray(session, _vm ?? "", _session_to ?? "", _force), serializer);
}
public XenRef<Task> async_vm_recover(string session, string _vm, string _session_to, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.recover", new JArray(session, _vm ?? "", _session_to ?? "", _force), serializer);
}
public void vm_import_convert(string session, string _type, string _username, string _password, string _sr, Dictionary<string, string> _remote_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.import_convert", new JArray(session, _type ?? "", _username ?? "", _password ?? "", _sr ?? "", _remote_config == null ? new JObject() : JObject.FromObject(_remote_config, serializer)), serializer);
}
public XenRef<Task> async_vm_import_convert(string session, string _type, string _username, string _password, string _sr, Dictionary<string, string> _remote_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.import_convert", new JArray(session, _type ?? "", _username ?? "", _password ?? "", _sr ?? "", _remote_config == null ? new JObject() : JObject.FromObject(_remote_config, serializer)), serializer);
}
public void vm_set_appliance(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_appliance", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vm_set_appliance(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_appliance", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public Dictionary<string, string> vm_query_services(string session, string _vm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM.query_services", new JArray(session, _vm ?? ""), serializer);
}
public XenRef<Task> async_vm_query_services(string session, string _vm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.query_services", new JArray(session, _vm ?? ""), serializer);
}
public string vm_call_plugin(string session, string _vm, string _plugin, string _fn, Dictionary<string, string> _args)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM.call_plugin", new JArray(session, _vm ?? "", _plugin ?? "", _fn ?? "", _args == null ? new JObject() : JObject.FromObject(_args, serializer)), serializer);
}
public XenRef<Task> async_vm_call_plugin(string session, string _vm, string _plugin, string _fn, Dictionary<string, string> _args)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.call_plugin", new JArray(session, _vm ?? "", _plugin ?? "", _fn ?? "", _args == null ? new JObject() : JObject.FromObject(_args, serializer)), serializer);
}
public void vm_set_has_vendor_device(string session, string _vm, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_has_vendor_device", new JArray(session, _vm ?? "", _value), serializer);
}
public XenRef<Task> async_vm_set_has_vendor_device(string session, string _vm, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_has_vendor_device", new JArray(session, _vm ?? "", _value), serializer);
}
public List<XenRef<VM>> vm_import(string session, string _url, string _sr, bool _full_restore, bool _force)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM.import", new JArray(session, _url ?? "", _sr ?? "", _full_restore, _force), serializer);
}
public XenRef<Task> async_vm_import(string session, string _url, string _sr, bool _full_restore, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.import", new JArray(session, _url ?? "", _sr ?? "", _full_restore, _force), serializer);
}
public void vm_set_actions_after_crash(string session, string _vm, on_crash_behaviour _value)
{
var converters = new List<JsonConverter> {new on_crash_behaviourConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_actions_after_crash", new JArray(session, _vm ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_vm_set_actions_after_crash(string session, string _vm, on_crash_behaviour _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new on_crash_behaviourConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM.set_actions_after_crash", new JArray(session, _vm ?? "", _value.StringOf()), serializer);
}
public void vm_set_domain_type(string session, string _vm, domain_type _value)
{
var converters = new List<JsonConverter> {new domain_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM.set_domain_type", new JArray(session, _vm ?? "", _value.StringOf()), serializer);
}
public void vm_set_hvm_boot_policy(string session, string _vm, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM.set_HVM_boot_policy", new JArray(session, _vm ?? "", _value ?? ""), serializer);
}
public List<XenRef<VM>> vm_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VM>, VM> vm_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM>, VM>>("VM.get_all_records", new JArray(session), serializer);
}
public VM_metrics vm_metrics_get_record(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VM_metrics>("VM_metrics.get_record", new JArray(session, _vm_metrics ?? ""), serializer);
}
public XenRef<VM_metrics> vm_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_metrics>>("VM_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vm_metrics_get_uuid(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM_metrics.get_uuid", new JArray(session, _vm_metrics ?? ""), serializer);
}
public long vm_metrics_get_memory_actual(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM_metrics.get_memory_actual", new JArray(session, _vm_metrics ?? ""), serializer);
}
public long vm_metrics_get_vcpus_number(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VM_metrics.get_VCPUs_number", new JArray(session, _vm_metrics ?? ""), serializer);
}
public Dictionary<long, double> vm_metrics_get_vcpus_utilisation(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<long, double>>("VM_metrics.get_VCPUs_utilisation", new JArray(session, _vm_metrics ?? ""), serializer);
}
public Dictionary<long, long> vm_metrics_get_vcpus_cpu(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<long, long>>("VM_metrics.get_VCPUs_CPU", new JArray(session, _vm_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_metrics_get_vcpus_params(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_metrics.get_VCPUs_params", new JArray(session, _vm_metrics ?? ""), serializer);
}
public Dictionary<long, string[]> vm_metrics_get_vcpus_flags(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<long, string[]>>("VM_metrics.get_VCPUs_flags", new JArray(session, _vm_metrics ?? ""), serializer);
}
public string[] vm_metrics_get_state(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VM_metrics.get_state", new JArray(session, _vm_metrics ?? ""), serializer);
}
public DateTime vm_metrics_get_start_time(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VM_metrics.get_start_time", new JArray(session, _vm_metrics ?? ""), serializer);
}
public DateTime vm_metrics_get_install_time(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VM_metrics.get_install_time", new JArray(session, _vm_metrics ?? ""), serializer);
}
public DateTime vm_metrics_get_last_updated(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VM_metrics.get_last_updated", new JArray(session, _vm_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_metrics_get_other_config(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_metrics.get_other_config", new JArray(session, _vm_metrics ?? ""), serializer);
}
public bool vm_metrics_get_hvm(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_metrics.get_hvm", new JArray(session, _vm_metrics ?? ""), serializer);
}
public bool vm_metrics_get_nested_virt(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_metrics.get_nested_virt", new JArray(session, _vm_metrics ?? ""), serializer);
}
public bool vm_metrics_get_nomigrate(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_metrics.get_nomigrate", new JArray(session, _vm_metrics ?? ""), serializer);
}
public domain_type vm_metrics_get_current_domain_type(string session, string _vm_metrics)
{
var converters = new List<JsonConverter> {new domain_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<domain_type>("VM_metrics.get_current_domain_type", new JArray(session, _vm_metrics ?? ""), serializer);
}
public void vm_metrics_set_other_config(string session, string _vm_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM_metrics.set_other_config", new JArray(session, _vm_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vm_metrics_add_to_other_config(string session, string _vm_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_metrics.add_to_other_config", new JArray(session, _vm_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_metrics_remove_from_other_config(string session, string _vm_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_metrics.remove_from_other_config", new JArray(session, _vm_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<VM_metrics>> vm_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM_metrics>>>("VM_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VM_metrics>, VM_metrics> vm_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VM_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM_metrics>, VM_metrics>>("VM_metrics.get_all_records", new JArray(session), serializer);
}
public VM_guest_metrics vm_guest_metrics_get_record(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VM_guest_metrics>("VM_guest_metrics.get_record", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public XenRef<VM_guest_metrics> vm_guest_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_guest_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_guest_metrics>>("VM_guest_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vm_guest_metrics_get_uuid(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM_guest_metrics.get_uuid", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_os_version(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_os_version", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_pv_drivers_version(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_PV_drivers_version", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public bool vm_guest_metrics_get_pv_drivers_up_to_date(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_guest_metrics.get_PV_drivers_up_to_date", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_memory(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_memory", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_disks(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_disks", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_networks(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_networks", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_other(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_other", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public DateTime vm_guest_metrics_get_last_updated(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VM_guest_metrics.get_last_updated", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public Dictionary<string, string> vm_guest_metrics_get_other_config(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VM_guest_metrics.get_other_config", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public bool vm_guest_metrics_get_live(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_guest_metrics.get_live", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public tristate_type vm_guest_metrics_get_can_use_hotplug_vbd(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new tristate_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<tristate_type>("VM_guest_metrics.get_can_use_hotplug_vbd", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public tristate_type vm_guest_metrics_get_can_use_hotplug_vif(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {new tristate_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<tristate_type>("VM_guest_metrics.get_can_use_hotplug_vif", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public bool vm_guest_metrics_get_pv_drivers_detected(string session, string _vm_guest_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VM_guest_metrics.get_PV_drivers_detected", new JArray(session, _vm_guest_metrics ?? ""), serializer);
}
public void vm_guest_metrics_set_other_config(string session, string _vm_guest_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VM_guest_metrics.set_other_config", new JArray(session, _vm_guest_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vm_guest_metrics_add_to_other_config(string session, string _vm_guest_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_guest_metrics.add_to_other_config", new JArray(session, _vm_guest_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vm_guest_metrics_remove_from_other_config(string session, string _vm_guest_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_guest_metrics.remove_from_other_config", new JArray(session, _vm_guest_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<VM_guest_metrics>> vm_guest_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM_guest_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM_guest_metrics>>>("VM_guest_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VM_guest_metrics>, VM_guest_metrics> vm_guest_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VM_guest_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM_guest_metrics>, VM_guest_metrics>>("VM_guest_metrics.get_all_records", new JArray(session), serializer);
}
public VMPP vmpp_get_record(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VMPP>("VMPP.get_record", new JArray(session, _vmpp ?? ""), serializer);
}
public XenRef<VMPP> vmpp_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMPP>>("VMPP.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VMPP> vmpp_create(string session, VMPP _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMPP>>("VMPP.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vmpp_create(string session, VMPP _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VMPP.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vmpp_destroy(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.destroy", new JArray(session, _vmpp ?? ""), serializer);
}
public XenRef<Task> async_vmpp_destroy(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VMPP.destroy", new JArray(session, _vmpp ?? ""), serializer);
}
public List<XenRef<VMPP>> vmpp_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VMPP>>>("VMPP.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string vmpp_get_uuid(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMPP.get_uuid", new JArray(session, _vmpp ?? ""), serializer);
}
public string vmpp_get_name_label(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMPP.get_name_label", new JArray(session, _vmpp ?? ""), serializer);
}
public string vmpp_get_name_description(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMPP.get_name_description", new JArray(session, _vmpp ?? ""), serializer);
}
public bool vmpp_get_is_policy_enabled(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VMPP.get_is_policy_enabled", new JArray(session, _vmpp ?? ""), serializer);
}
public vmpp_backup_type vmpp_get_backup_type(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new vmpp_backup_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmpp_backup_type>("VMPP.get_backup_type", new JArray(session, _vmpp ?? ""), serializer);
}
public long vmpp_get_backup_retention_value(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VMPP.get_backup_retention_value", new JArray(session, _vmpp ?? ""), serializer);
}
public vmpp_backup_frequency vmpp_get_backup_frequency(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new vmpp_backup_frequencyConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmpp_backup_frequency>("VMPP.get_backup_frequency", new JArray(session, _vmpp ?? ""), serializer);
}
public Dictionary<string, string> vmpp_get_backup_schedule(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VMPP.get_backup_schedule", new JArray(session, _vmpp ?? ""), serializer);
}
public bool vmpp_get_is_backup_running(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VMPP.get_is_backup_running", new JArray(session, _vmpp ?? ""), serializer);
}
public DateTime vmpp_get_backup_last_run_time(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VMPP.get_backup_last_run_time", new JArray(session, _vmpp ?? ""), serializer);
}
public vmpp_archive_target_type vmpp_get_archive_target_type(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new vmpp_archive_target_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmpp_archive_target_type>("VMPP.get_archive_target_type", new JArray(session, _vmpp ?? ""), serializer);
}
public Dictionary<string, string> vmpp_get_archive_target_config(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VMPP.get_archive_target_config", new JArray(session, _vmpp ?? ""), serializer);
}
public vmpp_archive_frequency vmpp_get_archive_frequency(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new vmpp_archive_frequencyConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmpp_archive_frequency>("VMPP.get_archive_frequency", new JArray(session, _vmpp ?? ""), serializer);
}
public Dictionary<string, string> vmpp_get_archive_schedule(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VMPP.get_archive_schedule", new JArray(session, _vmpp ?? ""), serializer);
}
public bool vmpp_get_is_archive_running(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VMPP.get_is_archive_running", new JArray(session, _vmpp ?? ""), serializer);
}
public DateTime vmpp_get_archive_last_run_time(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VMPP.get_archive_last_run_time", new JArray(session, _vmpp ?? ""), serializer);
}
public List<XenRef<VM>> vmpp_get_vms(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VMPP.get_VMs", new JArray(session, _vmpp ?? ""), serializer);
}
public bool vmpp_get_is_alarm_enabled(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VMPP.get_is_alarm_enabled", new JArray(session, _vmpp ?? ""), serializer);
}
public Dictionary<string, string> vmpp_get_alarm_config(string session, string _vmpp)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VMPP.get_alarm_config", new JArray(session, _vmpp ?? ""), serializer);
}
public string[] vmpp_get_recent_alerts(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VMPP.get_recent_alerts", new JArray(session, _vmpp ?? ""), serializer);
}
public void vmpp_set_name_label(string session, string _vmpp, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_name_label", new JArray(session, _vmpp ?? "", _label ?? ""), serializer);
}
public void vmpp_set_name_description(string session, string _vmpp, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_name_description", new JArray(session, _vmpp ?? "", _description ?? ""), serializer);
}
public void vmpp_set_is_policy_enabled(string session, string _vmpp, bool _is_policy_enabled)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_is_policy_enabled", new JArray(session, _vmpp ?? "", _is_policy_enabled), serializer);
}
public void vmpp_set_backup_type(string session, string _vmpp, vmpp_backup_type _backup_type)
{
var converters = new List<JsonConverter> {new vmpp_backup_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_backup_type", new JArray(session, _vmpp ?? "", _backup_type.StringOf()), serializer);
}
public string vmpp_protect_now(string session, string _vmpp)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMPP.protect_now", new JArray(session, _vmpp ?? ""), serializer);
}
public string vmpp_archive_now(string session, string _snapshot)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMPP.archive_now", new JArray(session, _snapshot ?? ""), serializer);
}
public string[] vmpp_get_alerts(string session, string _vmpp, long _hours_from_now)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VMPP.get_alerts", new JArray(session, _vmpp ?? "", _hours_from_now), serializer);
}
public void vmpp_set_backup_retention_value(string session, string _vmpp, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_backup_retention_value", new JArray(session, _vmpp ?? "", _value), serializer);
}
public void vmpp_set_backup_frequency(string session, string _vmpp, vmpp_backup_frequency _value)
{
var converters = new List<JsonConverter> {new vmpp_backup_frequencyConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_backup_frequency", new JArray(session, _vmpp ?? "", _value.StringOf()), serializer);
}
public void vmpp_set_backup_schedule(string session, string _vmpp, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_backup_schedule", new JArray(session, _vmpp ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vmpp_set_archive_frequency(string session, string _vmpp, vmpp_archive_frequency _value)
{
var converters = new List<JsonConverter> {new vmpp_archive_frequencyConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_archive_frequency", new JArray(session, _vmpp ?? "", _value.StringOf()), serializer);
}
public void vmpp_set_archive_schedule(string session, string _vmpp, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_archive_schedule", new JArray(session, _vmpp ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vmpp_set_archive_target_type(string session, string _vmpp, vmpp_archive_target_type _value)
{
var converters = new List<JsonConverter> {new vmpp_archive_target_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_archive_target_type", new JArray(session, _vmpp ?? "", _value.StringOf()), serializer);
}
public void vmpp_set_archive_target_config(string session, string _vmpp, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_archive_target_config", new JArray(session, _vmpp ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vmpp_set_is_alarm_enabled(string session, string _vmpp, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_is_alarm_enabled", new JArray(session, _vmpp ?? "", _value), serializer);
}
public void vmpp_set_alarm_config(string session, string _vmpp, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_alarm_config", new JArray(session, _vmpp ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vmpp_add_to_backup_schedule(string session, string _vmpp, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.add_to_backup_schedule", new JArray(session, _vmpp ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vmpp_add_to_archive_target_config(string session, string _vmpp, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.add_to_archive_target_config", new JArray(session, _vmpp ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vmpp_add_to_archive_schedule(string session, string _vmpp, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.add_to_archive_schedule", new JArray(session, _vmpp ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vmpp_add_to_alarm_config(string session, string _vmpp, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.add_to_alarm_config", new JArray(session, _vmpp ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vmpp_remove_from_backup_schedule(string session, string _vmpp, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.remove_from_backup_schedule", new JArray(session, _vmpp ?? "", _key ?? ""), serializer);
}
public void vmpp_remove_from_archive_target_config(string session, string _vmpp, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.remove_from_archive_target_config", new JArray(session, _vmpp ?? "", _key ?? ""), serializer);
}
public void vmpp_remove_from_archive_schedule(string session, string _vmpp, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.remove_from_archive_schedule", new JArray(session, _vmpp ?? "", _key ?? ""), serializer);
}
public void vmpp_remove_from_alarm_config(string session, string _vmpp, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMPP.remove_from_alarm_config", new JArray(session, _vmpp ?? "", _key ?? ""), serializer);
}
public void vmpp_set_backup_last_run_time(string session, string _vmpp, DateTime _value)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_backup_last_run_time", new JArray(session, _vmpp ?? "", _value), serializer);
}
public void vmpp_set_archive_last_run_time(string session, string _vmpp, DateTime _value)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMPP.set_archive_last_run_time", new JArray(session, _vmpp ?? "", _value), serializer);
}
public List<XenRef<VMPP>> vmpp_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VMPP>>>("VMPP.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VMPP>, VMPP> vmpp_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VMPP>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VMPP>, VMPP>>("VMPP.get_all_records", new JArray(session), serializer);
}
public VMSS vmss_get_record(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VMSS>("VMSS.get_record", new JArray(session, _vmss ?? ""), serializer);
}
public XenRef<VMSS> vmss_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMSS>>("VMSS.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VMSS> vmss_create(string session, VMSS _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VMSS>>("VMSS.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vmss_create(string session, VMSS _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VMSS.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vmss_destroy(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.destroy", new JArray(session, _vmss ?? ""), serializer);
}
public XenRef<Task> async_vmss_destroy(string session, string _vmss)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VMSS.destroy", new JArray(session, _vmss ?? ""), serializer);
}
public List<XenRef<VMSS>> vmss_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VMSS>>>("VMSS.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string vmss_get_uuid(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMSS.get_uuid", new JArray(session, _vmss ?? ""), serializer);
}
public string vmss_get_name_label(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMSS.get_name_label", new JArray(session, _vmss ?? ""), serializer);
}
public string vmss_get_name_description(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMSS.get_name_description", new JArray(session, _vmss ?? ""), serializer);
}
public bool vmss_get_enabled(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VMSS.get_enabled", new JArray(session, _vmss ?? ""), serializer);
}
public vmss_type vmss_get_type(string session, string _vmss)
{
var converters = new List<JsonConverter> {new vmss_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmss_type>("VMSS.get_type", new JArray(session, _vmss ?? ""), serializer);
}
public long vmss_get_retained_snapshots(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VMSS.get_retained_snapshots", new JArray(session, _vmss ?? ""), serializer);
}
public vmss_frequency vmss_get_frequency(string session, string _vmss)
{
var converters = new List<JsonConverter> {new vmss_frequencyConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vmss_frequency>("VMSS.get_frequency", new JArray(session, _vmss ?? ""), serializer);
}
public Dictionary<string, string> vmss_get_schedule(string session, string _vmss)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VMSS.get_schedule", new JArray(session, _vmss ?? ""), serializer);
}
public DateTime vmss_get_last_run_time(string session, string _vmss)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VMSS.get_last_run_time", new JArray(session, _vmss ?? ""), serializer);
}
public List<XenRef<VM>> vmss_get_vms(string session, string _vmss)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VMSS.get_VMs", new JArray(session, _vmss ?? ""), serializer);
}
public void vmss_set_name_label(string session, string _vmss, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_name_label", new JArray(session, _vmss ?? "", _label ?? ""), serializer);
}
public void vmss_set_name_description(string session, string _vmss, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_name_description", new JArray(session, _vmss ?? "", _description ?? ""), serializer);
}
public void vmss_set_enabled(string session, string _vmss, bool _enabled)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_enabled", new JArray(session, _vmss ?? "", _enabled), serializer);
}
public string vmss_snapshot_now(string session, string _vmss)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VMSS.snapshot_now", new JArray(session, _vmss ?? ""), serializer);
}
public void vmss_set_retained_snapshots(string session, string _vmss, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_retained_snapshots", new JArray(session, _vmss ?? "", _value), serializer);
}
public void vmss_set_frequency(string session, string _vmss, vmss_frequency _value)
{
var converters = new List<JsonConverter> {new vmss_frequencyConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_frequency", new JArray(session, _vmss ?? "", _value.StringOf()), serializer);
}
public void vmss_set_schedule(string session, string _vmss, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_schedule", new JArray(session, _vmss ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public void vmss_add_to_schedule(string session, string _vmss, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.add_to_schedule", new JArray(session, _vmss ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vmss_remove_from_schedule(string session, string _vmss, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VMSS.remove_from_schedule", new JArray(session, _vmss ?? "", _key ?? ""), serializer);
}
public void vmss_set_last_run_time(string session, string _vmss, DateTime _value)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_last_run_time", new JArray(session, _vmss ?? "", _value), serializer);
}
public void vmss_set_type(string session, string _vmss, vmss_type _value)
{
var converters = new List<JsonConverter> {new vmss_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VMSS.set_type", new JArray(session, _vmss ?? "", _value.StringOf()), serializer);
}
public List<XenRef<VMSS>> vmss_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VMSS>>>("VMSS.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VMSS>, VMSS> vmss_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VMSS>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VMSS>, VMSS>>("VMSS.get_all_records", new JArray(session), serializer);
}
public VM_appliance vm_appliance_get_record(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VM_appliance>("VM_appliance.get_record", new JArray(session, _vm_appliance ?? ""), serializer);
}
public XenRef<VM_appliance> vm_appliance_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_appliance>>("VM_appliance.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VM_appliance> vm_appliance_create(string session, VM_appliance _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM_appliance>>("VM_appliance.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vm_appliance_create(string session, VM_appliance _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vm_appliance_destroy(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.destroy", new JArray(session, _vm_appliance ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_destroy(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.destroy", new JArray(session, _vm_appliance ?? ""), serializer);
}
public List<XenRef<VM_appliance>> vm_appliance_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM_appliance>>>("VM_appliance.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string vm_appliance_get_uuid(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM_appliance.get_uuid", new JArray(session, _vm_appliance ?? ""), serializer);
}
public string vm_appliance_get_name_label(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM_appliance.get_name_label", new JArray(session, _vm_appliance ?? ""), serializer);
}
public string vm_appliance_get_name_description(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VM_appliance.get_name_description", new JArray(session, _vm_appliance ?? ""), serializer);
}
public List<vm_appliance_operation> vm_appliance_get_allowed_operations(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vm_appliance_operation>>("VM_appliance.get_allowed_operations", new JArray(session, _vm_appliance ?? ""), serializer);
}
public Dictionary<string, vm_appliance_operation> vm_appliance_get_current_operations(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vm_appliance_operation>>("VM_appliance.get_current_operations", new JArray(session, _vm_appliance ?? ""), serializer);
}
public List<XenRef<VM>> vm_appliance_get_vms(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("VM_appliance.get_VMs", new JArray(session, _vm_appliance ?? ""), serializer);
}
public void vm_appliance_set_name_label(string session, string _vm_appliance, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.set_name_label", new JArray(session, _vm_appliance ?? "", _label ?? ""), serializer);
}
public void vm_appliance_set_name_description(string session, string _vm_appliance, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.set_name_description", new JArray(session, _vm_appliance ?? "", _description ?? ""), serializer);
}
public void vm_appliance_start(string session, string _vm_appliance, bool _paused)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.start", new JArray(session, _vm_appliance ?? "", _paused), serializer);
}
public XenRef<Task> async_vm_appliance_start(string session, string _vm_appliance, bool _paused)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.start", new JArray(session, _vm_appliance ?? "", _paused), serializer);
}
public void vm_appliance_clean_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.clean_shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_clean_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.clean_shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public void vm_appliance_hard_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.hard_shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_hard_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.hard_shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public void vm_appliance_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_shutdown(string session, string _vm_appliance)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.shutdown", new JArray(session, _vm_appliance ?? ""), serializer);
}
public void vm_appliance_assert_can_be_recovered(string session, string _vm_appliance, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.assert_can_be_recovered", new JArray(session, _vm_appliance ?? "", _session_to ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_assert_can_be_recovered(string session, string _vm_appliance, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.assert_can_be_recovered", new JArray(session, _vm_appliance ?? "", _session_to ?? ""), serializer);
}
public List<XenRef<SR>> vm_appliance_get_srs_required_for_recovery(string session, string _vm_appliance, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SR>>>("VM_appliance.get_SRs_required_for_recovery", new JArray(session, _vm_appliance ?? "", _session_to ?? ""), serializer);
}
public XenRef<Task> async_vm_appliance_get_srs_required_for_recovery(string session, string _vm_appliance, string _session_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.get_SRs_required_for_recovery", new JArray(session, _vm_appliance ?? "", _session_to ?? ""), serializer);
}
public void vm_appliance_recover(string session, string _vm_appliance, string _session_to, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
Rpc("VM_appliance.recover", new JArray(session, _vm_appliance ?? "", _session_to ?? "", _force), serializer);
}
public XenRef<Task> async_vm_appliance_recover(string session, string _vm_appliance, string _session_to, bool _force)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VM_appliance.recover", new JArray(session, _vm_appliance ?? "", _session_to ?? "", _force), serializer);
}
public List<XenRef<VM_appliance>> vm_appliance_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM_appliance>>>("VM_appliance.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VM_appliance>, VM_appliance> vm_appliance_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VM_appliance>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM_appliance>, VM_appliance>>("VM_appliance.get_all_records", new JArray(session), serializer);
}
public DR_task dr_task_get_record(string session, string _dr_task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<DR_task>("DR_task.get_record", new JArray(session, _dr_task ?? ""), serializer);
}
public XenRef<DR_task> dr_task_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<DR_task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<DR_task>>("DR_task.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string dr_task_get_uuid(string session, string _dr_task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("DR_task.get_uuid", new JArray(session, _dr_task ?? ""), serializer);
}
public List<XenRef<SR>> dr_task_get_introduced_srs(string session, string _dr_task)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SR>>>("DR_task.get_introduced_SRs", new JArray(session, _dr_task ?? ""), serializer);
}
public XenRef<DR_task> dr_task_create(string session, string _type, Dictionary<string, string> _device_config, string[] _whitelist)
{
var converters = new List<JsonConverter> {new XenRefConverter<DR_task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<DR_task>>("DR_task.create", new JArray(session, _type ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _whitelist == null ? new JArray() : JArray.FromObject(_whitelist)), serializer);
}
public XenRef<Task> async_dr_task_create(string session, string _type, Dictionary<string, string> _device_config, string[] _whitelist)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.DR_task.create", new JArray(session, _type ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _whitelist == null ? new JArray() : JArray.FromObject(_whitelist)), serializer);
}
public void dr_task_destroy(string session, string _dr_task)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("DR_task.destroy", new JArray(session, _dr_task ?? ""), serializer);
}
public XenRef<Task> async_dr_task_destroy(string session, string _dr_task)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.DR_task.destroy", new JArray(session, _dr_task ?? ""), serializer);
}
public List<XenRef<DR_task>> dr_task_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<DR_task>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<DR_task>>>("DR_task.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<DR_task>, DR_task> dr_task_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<DR_task>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<DR_task>, DR_task>>("DR_task.get_all_records", new JArray(session), serializer);
}
public Host host_get_record(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Host>("host.get_record", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Host> host_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("host.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Host>> host_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host>>>("host.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string host_get_uuid(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_uuid", new JArray(session, _host ?? ""), serializer);
}
public string host_get_name_label(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_name_label", new JArray(session, _host ?? ""), serializer);
}
public string host_get_name_description(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_name_description", new JArray(session, _host ?? ""), serializer);
}
public long host_get_memory_overhead(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host.get_memory_overhead", new JArray(session, _host ?? ""), serializer);
}
public List<host_allowed_operations> host_get_allowed_operations(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<host_allowed_operations>>("host.get_allowed_operations", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, host_allowed_operations> host_get_current_operations(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, host_allowed_operations>>("host.get_current_operations", new JArray(session, _host ?? ""), serializer);
}
public long host_get_api_version_major(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host.get_API_version_major", new JArray(session, _host ?? ""), serializer);
}
public long host_get_api_version_minor(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host.get_API_version_minor", new JArray(session, _host ?? ""), serializer);
}
public string host_get_api_version_vendor(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_API_version_vendor", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_api_version_vendor_implementation(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_API_version_vendor_implementation", new JArray(session, _host ?? ""), serializer);
}
public bool host_get_enabled(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host.get_enabled", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_software_version(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_software_version", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_other_config(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_other_config", new JArray(session, _host ?? ""), serializer);
}
public string[] host_get_capabilities(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.get_capabilities", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_cpu_configuration(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_cpu_configuration", new JArray(session, _host ?? ""), serializer);
}
public string host_get_sched_policy(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_sched_policy", new JArray(session, _host ?? ""), serializer);
}
public string[] host_get_supported_bootloaders(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.get_supported_bootloaders", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<VM>> host_get_resident_vms(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("host.get_resident_VMs", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_logging(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_logging", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<PIF>> host_get_pifs(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("host.get_PIFs", new JArray(session, _host ?? ""), serializer);
}
public XenRef<SR> host_get_suspend_image_sr(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("host.get_suspend_image_sr", new JArray(session, _host ?? ""), serializer);
}
public XenRef<SR> host_get_crash_dump_sr(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("host.get_crash_dump_sr", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Host_crashdump>> host_get_crashdumps(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_crashdump>>>("host.get_crashdumps", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Host_patch>> host_get_patches(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_patch>>>("host.get_patches", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Pool_update>> host_get_updates(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_update>>>("host.get_updates", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<PBD>> host_get_pbds(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PBD>>>("host.get_PBDs", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Host_cpu>> host_get_host_cpus(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_cpu>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_cpu>>>("host.get_host_CPUs", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_cpu_info(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_cpu_info", new JArray(session, _host ?? ""), serializer);
}
public string host_get_hostname(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_hostname", new JArray(session, _host ?? ""), serializer);
}
public string host_get_address(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_address", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Host_metrics> host_get_metrics(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host_metrics>>("host.get_metrics", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_license_params(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_license_params", new JArray(session, _host ?? ""), serializer);
}
public string[] host_get_ha_statefiles(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.get_ha_statefiles", new JArray(session, _host ?? ""), serializer);
}
public string[] host_get_ha_network_peers(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.get_ha_network_peers", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, XenRef<Blob>> host_get_blobs(string session, string _host)
{
var converters = new List<JsonConverter> {new StringXenRefMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, XenRef<Blob>>>("host.get_blobs", new JArray(session, _host ?? ""), serializer);
}
public string[] host_get_tags(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.get_tags", new JArray(session, _host ?? ""), serializer);
}
public string host_get_external_auth_type(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_external_auth_type", new JArray(session, _host ?? ""), serializer);
}
public string host_get_external_auth_service_name(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_external_auth_service_name", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_external_auth_configuration(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_external_auth_configuration", new JArray(session, _host ?? ""), serializer);
}
public string host_get_edition(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_edition", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_license_server(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_license_server", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_bios_strings(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_bios_strings", new JArray(session, _host ?? ""), serializer);
}
public string host_get_power_on_mode(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_power_on_mode", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_power_on_config(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_power_on_config", new JArray(session, _host ?? ""), serializer);
}
public XenRef<SR> host_get_local_cache_sr(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("host.get_local_cache_sr", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_chipset_info(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_chipset_info", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<PCI>> host_get_pcis(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PCI>>>("host.get_PCIs", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<PGPU>> host_get_pgpus(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PGPU>>>("host.get_PGPUs", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<PUSB>> host_get_pusbs(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PUSB>>>("host.get_PUSBs", new JArray(session, _host ?? ""), serializer);
}
public bool host_get_ssl_legacy(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host.get_ssl_legacy", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_get_guest_vcpus_params(string session, string _host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.get_guest_VCPUs_params", new JArray(session, _host ?? ""), serializer);
}
public host_display host_get_display(string session, string _host)
{
var converters = new List<JsonConverter> {new host_displayConverter()};
var serializer = CreateSerializer(converters);
return Rpc<host_display>("host.get_display", new JArray(session, _host ?? ""), serializer);
}
public long[] host_get_virtual_hardware_platform_versions(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long[]>("host.get_virtual_hardware_platform_versions", new JArray(session, _host ?? ""), serializer);
}
public XenRef<VM> host_get_control_domain(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("host.get_control_domain", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Pool_update>> host_get_updates_requiring_reboot(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Pool_update>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Pool_update>>>("host.get_updates_requiring_reboot", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<Feature>> host_get_features(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Feature>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Feature>>>("host.get_features", new JArray(session, _host ?? ""), serializer);
}
public string host_get_iscsi_iqn(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_iscsi_iqn", new JArray(session, _host ?? ""), serializer);
}
public bool host_get_multipathing(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host.get_multipathing", new JArray(session, _host ?? ""), serializer);
}
public string host_get_uefi_certificates(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_uefi_certificates", new JArray(session, _host ?? ""), serializer);
}
public void host_set_name_label(string session, string _host, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_name_label", new JArray(session, _host ?? "", _label ?? ""), serializer);
}
public void host_set_name_description(string session, string _host, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_name_description", new JArray(session, _host ?? "", _description ?? ""), serializer);
}
public void host_set_other_config(string session, string _host, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_other_config", new JArray(session, _host ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void host_add_to_other_config(string session, string _host, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.add_to_other_config", new JArray(session, _host ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_remove_from_other_config(string session, string _host, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.remove_from_other_config", new JArray(session, _host ?? "", _key ?? ""), serializer);
}
public void host_set_logging(string session, string _host, Dictionary<string, string> _logging)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_logging", new JArray(session, _host ?? "", _logging == null ? new JObject() : JObject.FromObject(_logging, serializer)), serializer);
}
public void host_add_to_logging(string session, string _host, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.add_to_logging", new JArray(session, _host ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_remove_from_logging(string session, string _host, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.remove_from_logging", new JArray(session, _host ?? "", _key ?? ""), serializer);
}
public void host_set_suspend_image_sr(string session, string _host, string _suspend_image_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("host.set_suspend_image_sr", new JArray(session, _host ?? "", _suspend_image_sr ?? ""), serializer);
}
public void host_set_crash_dump_sr(string session, string _host, string _crash_dump_sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("host.set_crash_dump_sr", new JArray(session, _host ?? "", _crash_dump_sr ?? ""), serializer);
}
public void host_set_hostname(string session, string _host, string _hostname)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_hostname", new JArray(session, _host ?? "", _hostname ?? ""), serializer);
}
public void host_set_address(string session, string _host, string _address)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_address", new JArray(session, _host ?? "", _address ?? ""), serializer);
}
public void host_set_tags(string session, string _host, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_tags", new JArray(session, _host ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void host_add_tags(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.add_tags", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public void host_remove_tags(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.remove_tags", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public void host_set_license_server(string session, string _host, Dictionary<string, string> _license_server)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_license_server", new JArray(session, _host ?? "", _license_server == null ? new JObject() : JObject.FromObject(_license_server, serializer)), serializer);
}
public void host_add_to_license_server(string session, string _host, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.add_to_license_server", new JArray(session, _host ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_remove_from_license_server(string session, string _host, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.remove_from_license_server", new JArray(session, _host ?? "", _key ?? ""), serializer);
}
public void host_set_guest_vcpus_params(string session, string _host, Dictionary<string, string> _guest_vcpus_params)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_guest_VCPUs_params", new JArray(session, _host ?? "", _guest_vcpus_params == null ? new JObject() : JObject.FromObject(_guest_vcpus_params, serializer)), serializer);
}
public void host_add_to_guest_vcpus_params(string session, string _host, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.add_to_guest_VCPUs_params", new JArray(session, _host ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_remove_from_guest_vcpus_params(string session, string _host, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.remove_from_guest_VCPUs_params", new JArray(session, _host ?? "", _key ?? ""), serializer);
}
public void host_set_display(string session, string _host, host_display _display)
{
var converters = new List<JsonConverter> {new host_displayConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_display", new JArray(session, _host ?? "", _display.StringOf()), serializer);
}
public void host_disable(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.disable", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_disable(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.disable", new JArray(session, _host ?? ""), serializer);
}
public void host_enable(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.enable", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_enable(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.enable", new JArray(session, _host ?? ""), serializer);
}
public void host_shutdown(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.shutdown", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_shutdown(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.shutdown", new JArray(session, _host ?? ""), serializer);
}
public void host_reboot(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.reboot", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_reboot(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.reboot", new JArray(session, _host ?? ""), serializer);
}
public string host_dmesg(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.dmesg", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_dmesg(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.dmesg", new JArray(session, _host ?? ""), serializer);
}
public string host_dmesg_clear(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.dmesg_clear", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_dmesg_clear(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.dmesg_clear", new JArray(session, _host ?? ""), serializer);
}
public string host_get_log(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_log", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_get_log(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.get_log", new JArray(session, _host ?? ""), serializer);
}
public void host_send_debug_keys(string session, string _host, string _keys)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.send_debug_keys", new JArray(session, _host ?? "", _keys ?? ""), serializer);
}
public XenRef<Task> async_host_send_debug_keys(string session, string _host, string _keys)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.send_debug_keys", new JArray(session, _host ?? "", _keys ?? ""), serializer);
}
public void host_bugreport_upload(string session, string _host, string _url, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.bugreport_upload", new JArray(session, _host ?? "", _url ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_host_bugreport_upload(string session, string _host, string _url, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.bugreport_upload", new JArray(session, _host ?? "", _url ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public string[] host_list_methods(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("host.list_methods", new JArray(session), serializer);
}
public void host_license_apply(string session, string _host, string _contents)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.license_apply", new JArray(session, _host ?? "", _contents ?? ""), serializer);
}
public XenRef<Task> async_host_license_apply(string session, string _host, string _contents)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.license_apply", new JArray(session, _host ?? "", _contents ?? ""), serializer);
}
public void host_license_add(string session, string _host, string _contents)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.license_add", new JArray(session, _host ?? "", _contents ?? ""), serializer);
}
public XenRef<Task> async_host_license_add(string session, string _host, string _contents)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.license_add", new JArray(session, _host ?? "", _contents ?? ""), serializer);
}
public void host_license_remove(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.license_remove", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_license_remove(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.license_remove", new JArray(session, _host ?? ""), serializer);
}
public void host_destroy(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.destroy", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_destroy(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.destroy", new JArray(session, _host ?? ""), serializer);
}
public void host_power_on(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.power_on", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_power_on(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.power_on", new JArray(session, _host ?? ""), serializer);
}
public void host_emergency_ha_disable(string session, bool _soft)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.emergency_ha_disable", new JArray(session, _soft), serializer);
}
public List<Data_source> host_get_data_sources(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<Data_source>>("host.get_data_sources", new JArray(session, _host ?? ""), serializer);
}
public void host_record_data_source(string session, string _host, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.record_data_source", new JArray(session, _host ?? "", _data_source ?? ""), serializer);
}
public double host_query_data_source(string session, string _host, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("host.query_data_source", new JArray(session, _host ?? "", _data_source ?? ""), serializer);
}
public void host_forget_data_source_archives(string session, string _host, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.forget_data_source_archives", new JArray(session, _host ?? "", _data_source ?? ""), serializer);
}
public void host_assert_can_evacuate(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.assert_can_evacuate", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_assert_can_evacuate(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.assert_can_evacuate", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<XenRef<VM>, string[]> host_get_vms_which_prevent_evacuation(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefStringSetMapConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM>, string[]>>("host.get_vms_which_prevent_evacuation", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_get_vms_which_prevent_evacuation(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.get_vms_which_prevent_evacuation", new JArray(session, _host ?? ""), serializer);
}
public List<XenRef<VM>> host_get_uncooperative_resident_vms(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VM>>>("host.get_uncooperative_resident_VMs", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_get_uncooperative_resident_vms(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.get_uncooperative_resident_VMs", new JArray(session, _host ?? ""), serializer);
}
public void host_evacuate(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.evacuate", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_evacuate(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.evacuate", new JArray(session, _host ?? ""), serializer);
}
public void host_syslog_reconfigure(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.syslog_reconfigure", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_syslog_reconfigure(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.syslog_reconfigure", new JArray(session, _host ?? ""), serializer);
}
public void host_management_reconfigure(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
Rpc("host.management_reconfigure", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_host_management_reconfigure(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.management_reconfigure", new JArray(session, _pif ?? ""), serializer);
}
public void host_local_management_reconfigure(string session, string _interface)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.local_management_reconfigure", new JArray(session, _interface ?? ""), serializer);
}
public void host_management_disable(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.management_disable", new JArray(session), serializer);
}
public XenRef<PIF> host_get_management_interface(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("host.get_management_interface", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_get_management_interface(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.get_management_interface", new JArray(session, _host ?? ""), serializer);
}
public string host_get_system_status_capabilities(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_system_status_capabilities", new JArray(session, _host ?? ""), serializer);
}
public void host_restart_agent(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.restart_agent", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_restart_agent(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.restart_agent", new JArray(session, _host ?? ""), serializer);
}
public void host_shutdown_agent(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.shutdown_agent", new JArray(session), serializer);
}
public void host_set_hostname_live(string session, string _host, string _hostname)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_hostname_live", new JArray(session, _host ?? "", _hostname ?? ""), serializer);
}
public long host_compute_free_memory(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host.compute_free_memory", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_compute_free_memory(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.compute_free_memory", new JArray(session, _host ?? ""), serializer);
}
public long host_compute_memory_overhead(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host.compute_memory_overhead", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_compute_memory_overhead(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.compute_memory_overhead", new JArray(session, _host ?? ""), serializer);
}
public void host_sync_data(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.sync_data", new JArray(session, _host ?? ""), serializer);
}
public void host_backup_rrds(string session, string _host, double _delay)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.backup_rrds", new JArray(session, _host ?? "", _delay), serializer);
}
public XenRef<Blob> host_create_new_blob(string session, string _host, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("host.create_new_blob", new JArray(session, _host ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Task> async_host_create_new_blob(string session, string _host, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.create_new_blob", new JArray(session, _host ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Blob> host_create_new_blob(string session, string _host, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("host.create_new_blob", new JArray(session, _host ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public XenRef<Task> async_host_create_new_blob(string session, string _host, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.create_new_blob", new JArray(session, _host ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public string host_call_plugin(string session, string _host, string _plugin, string _fn, Dictionary<string, string> _args)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.call_plugin", new JArray(session, _host ?? "", _plugin ?? "", _fn ?? "", _args == null ? new JObject() : JObject.FromObject(_args, serializer)), serializer);
}
public XenRef<Task> async_host_call_plugin(string session, string _host, string _plugin, string _fn, Dictionary<string, string> _args)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.call_plugin", new JArray(session, _host ?? "", _plugin ?? "", _fn ?? "", _args == null ? new JObject() : JObject.FromObject(_args, serializer)), serializer);
}
public bool host_has_extension(string session, string _host, string _name)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host.has_extension", new JArray(session, _host ?? "", _name ?? ""), serializer);
}
public XenRef<Task> async_host_has_extension(string session, string _host, string _name)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.has_extension", new JArray(session, _host ?? "", _name ?? ""), serializer);
}
public string host_call_extension(string session, string _host, string _call)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.call_extension", new JArray(session, _host ?? "", _call ?? ""), serializer);
}
public DateTime host_get_servertime(string session, string _host)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("host.get_servertime", new JArray(session, _host ?? ""), serializer);
}
public DateTime host_get_server_localtime(string session, string _host)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("host.get_server_localtime", new JArray(session, _host ?? ""), serializer);
}
public void host_enable_external_auth(string session, string _host, Dictionary<string, string> _config, string _service_name, string _auth_type)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.enable_external_auth", new JArray(session, _host ?? "", _config == null ? new JObject() : JObject.FromObject(_config, serializer), _service_name ?? "", _auth_type ?? ""), serializer);
}
public void host_disable_external_auth(string session, string _host, Dictionary<string, string> _config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.disable_external_auth", new JArray(session, _host ?? "", _config == null ? new JObject() : JObject.FromObject(_config, serializer)), serializer);
}
public Dictionary<XenRef<VM>, string[]> host_retrieve_wlb_evacuate_recommendations(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefStringSetMapConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VM>, string[]>>("host.retrieve_wlb_evacuate_recommendations", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_retrieve_wlb_evacuate_recommendations(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.retrieve_wlb_evacuate_recommendations", new JArray(session, _host ?? ""), serializer);
}
public string host_get_server_certificate(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host.get_server_certificate", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_get_server_certificate(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.get_server_certificate", new JArray(session, _host ?? ""), serializer);
}
public void host_apply_edition(string session, string _host, string _edition)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.apply_edition", new JArray(session, _host ?? "", _edition ?? ""), serializer);
}
public void host_apply_edition(string session, string _host, string _edition, bool _force)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.apply_edition", new JArray(session, _host ?? "", _edition ?? "", _force), serializer);
}
public void host_refresh_pack_info(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.refresh_pack_info", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_refresh_pack_info(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.refresh_pack_info", new JArray(session, _host ?? ""), serializer);
}
public void host_set_power_on_mode(string session, string _host, string _power_on_mode, Dictionary<string, string> _power_on_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host.set_power_on_mode", new JArray(session, _host ?? "", _power_on_mode ?? "", _power_on_config == null ? new JObject() : JObject.FromObject(_power_on_config, serializer)), serializer);
}
public XenRef<Task> async_host_set_power_on_mode(string session, string _host, string _power_on_mode, Dictionary<string, string> _power_on_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.set_power_on_mode", new JArray(session, _host ?? "", _power_on_mode ?? "", _power_on_config == null ? new JObject() : JObject.FromObject(_power_on_config, serializer)), serializer);
}
public void host_set_cpu_features(string session, string _host, string _features)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_cpu_features", new JArray(session, _host ?? "", _features ?? ""), serializer);
}
public void host_reset_cpu_features(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.reset_cpu_features", new JArray(session, _host ?? ""), serializer);
}
public void host_enable_local_storage_caching(string session, string _host, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
Rpc("host.enable_local_storage_caching", new JArray(session, _host ?? "", _sr ?? ""), serializer);
}
public void host_disable_local_storage_caching(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.disable_local_storage_caching", new JArray(session, _host ?? ""), serializer);
}
public Dictionary<string, string> host_migrate_receive(string session, string _host, string _network, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new StringStringMapConverter(), new XenRefConverter<Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host.migrate_receive", new JArray(session, _host ?? "", _network ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_host_migrate_receive(string session, string _host, string _network, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.migrate_receive", new JArray(session, _host ?? "", _network ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public void host_declare_dead(string session, string _host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.declare_dead", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_declare_dead(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.declare_dead", new JArray(session, _host ?? ""), serializer);
}
public host_display host_enable_display(string session, string _host)
{
var converters = new List<JsonConverter> {new host_displayConverter()};
var serializer = CreateSerializer(converters);
return Rpc<host_display>("host.enable_display", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_enable_display(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.enable_display", new JArray(session, _host ?? ""), serializer);
}
public host_display host_disable_display(string session, string _host)
{
var converters = new List<JsonConverter> {new host_displayConverter()};
var serializer = CreateSerializer(converters);
return Rpc<host_display>("host.disable_display", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_host_disable_display(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.disable_display", new JArray(session, _host ?? ""), serializer);
}
public void host_set_ssl_legacy(string session, string _host, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_ssl_legacy", new JArray(session, _host ?? "", _value), serializer);
}
public XenRef<Task> async_host_set_ssl_legacy(string session, string _host, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.set_ssl_legacy", new JArray(session, _host ?? "", _value), serializer);
}
public void host_set_iscsi_iqn(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_iscsi_iqn", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_host_set_iscsi_iqn(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.set_iscsi_iqn", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public void host_set_multipathing(string session, string _host, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_multipathing", new JArray(session, _host ?? "", _value), serializer);
}
public XenRef<Task> async_host_set_multipathing(string session, string _host, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.set_multipathing", new JArray(session, _host ?? "", _value), serializer);
}
public void host_set_uefi_certificates(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host.set_uefi_certificates", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_host_set_uefi_certificates(string session, string _host, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host.set_uefi_certificates", new JArray(session, _host ?? "", _value ?? ""), serializer);
}
public List<XenRef<Host>> host_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host>>>("host.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Host>, Host> host_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host>, Host>>("host.get_all_records", new JArray(session), serializer);
}
public Host_crashdump host_crashdump_get_record(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Host_crashdump>("host_crashdump.get_record", new JArray(session, _host_crashdump ?? ""), serializer);
}
public XenRef<Host_crashdump> host_crashdump_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host_crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host_crashdump>>("host_crashdump.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string host_crashdump_get_uuid(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_crashdump.get_uuid", new JArray(session, _host_crashdump ?? ""), serializer);
}
public XenRef<Host> host_crashdump_get_host(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("host_crashdump.get_host", new JArray(session, _host_crashdump ?? ""), serializer);
}
public DateTime host_crashdump_get_timestamp(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("host_crashdump.get_timestamp", new JArray(session, _host_crashdump ?? ""), serializer);
}
public long host_crashdump_get_size(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_crashdump.get_size", new JArray(session, _host_crashdump ?? ""), serializer);
}
public Dictionary<string, string> host_crashdump_get_other_config(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host_crashdump.get_other_config", new JArray(session, _host_crashdump ?? ""), serializer);
}
public void host_crashdump_set_other_config(string session, string _host_crashdump, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host_crashdump.set_other_config", new JArray(session, _host_crashdump ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void host_crashdump_add_to_other_config(string session, string _host_crashdump, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_crashdump.add_to_other_config", new JArray(session, _host_crashdump ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_crashdump_remove_from_other_config(string session, string _host_crashdump, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_crashdump.remove_from_other_config", new JArray(session, _host_crashdump ?? "", _key ?? ""), serializer);
}
public void host_crashdump_destroy(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_crashdump.destroy", new JArray(session, _host_crashdump ?? ""), serializer);
}
public XenRef<Task> async_host_crashdump_destroy(string session, string _host_crashdump)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host_crashdump.destroy", new JArray(session, _host_crashdump ?? ""), serializer);
}
public void host_crashdump_upload(string session, string _host_crashdump, string _url, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host_crashdump.upload", new JArray(session, _host_crashdump ?? "", _url ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_host_crashdump_upload(string session, string _host_crashdump, string _url, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host_crashdump.upload", new JArray(session, _host_crashdump ?? "", _url ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public List<XenRef<Host_crashdump>> host_crashdump_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_crashdump>>>("host_crashdump.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Host_crashdump>, Host_crashdump> host_crashdump_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Host_crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host_crashdump>, Host_crashdump>>("host_crashdump.get_all_records", new JArray(session), serializer);
}
public Host_patch host_patch_get_record(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Host_patch>("host_patch.get_record", new JArray(session, _host_patch ?? ""), serializer);
}
public XenRef<Host_patch> host_patch_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host_patch>>("host_patch.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Host_patch>> host_patch_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_patch>>>("host_patch.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string host_patch_get_uuid(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_patch.get_uuid", new JArray(session, _host_patch ?? ""), serializer);
}
public string host_patch_get_name_label(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_patch.get_name_label", new JArray(session, _host_patch ?? ""), serializer);
}
public string host_patch_get_name_description(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_patch.get_name_description", new JArray(session, _host_patch ?? ""), serializer);
}
public string host_patch_get_version(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_patch.get_version", new JArray(session, _host_patch ?? ""), serializer);
}
public XenRef<Host> host_patch_get_host(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("host_patch.get_host", new JArray(session, _host_patch ?? ""), serializer);
}
public bool host_patch_get_applied(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host_patch.get_applied", new JArray(session, _host_patch ?? ""), serializer);
}
public DateTime host_patch_get_timestamp_applied(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("host_patch.get_timestamp_applied", new JArray(session, _host_patch ?? ""), serializer);
}
public long host_patch_get_size(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_patch.get_size", new JArray(session, _host_patch ?? ""), serializer);
}
public XenRef<Pool_patch> host_patch_get_pool_patch(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool_patch>>("host_patch.get_pool_patch", new JArray(session, _host_patch ?? ""), serializer);
}
public Dictionary<string, string> host_patch_get_other_config(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host_patch.get_other_config", new JArray(session, _host_patch ?? ""), serializer);
}
public void host_patch_set_other_config(string session, string _host_patch, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host_patch.set_other_config", new JArray(session, _host_patch ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void host_patch_add_to_other_config(string session, string _host_patch, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_patch.add_to_other_config", new JArray(session, _host_patch ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_patch_remove_from_other_config(string session, string _host_patch, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_patch.remove_from_other_config", new JArray(session, _host_patch ?? "", _key ?? ""), serializer);
}
public void host_patch_destroy(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_patch.destroy", new JArray(session, _host_patch ?? ""), serializer);
}
public XenRef<Task> async_host_patch_destroy(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host_patch.destroy", new JArray(session, _host_patch ?? ""), serializer);
}
public string host_patch_apply(string session, string _host_patch)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_patch.apply", new JArray(session, _host_patch ?? ""), serializer);
}
public XenRef<Task> async_host_patch_apply(string session, string _host_patch)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.host_patch.apply", new JArray(session, _host_patch ?? ""), serializer);
}
public List<XenRef<Host_patch>> host_patch_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_patch>>>("host_patch.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Host_patch>, Host_patch> host_patch_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Host_patch>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host_patch>, Host_patch>>("host_patch.get_all_records", new JArray(session), serializer);
}
public Host_metrics host_metrics_get_record(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Host_metrics>("host_metrics.get_record", new JArray(session, _host_metrics ?? ""), serializer);
}
public XenRef<Host_metrics> host_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host_metrics>>("host_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string host_metrics_get_uuid(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_metrics.get_uuid", new JArray(session, _host_metrics ?? ""), serializer);
}
public long host_metrics_get_memory_total(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_metrics.get_memory_total", new JArray(session, _host_metrics ?? ""), serializer);
}
public long host_metrics_get_memory_free(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_metrics.get_memory_free", new JArray(session, _host_metrics ?? ""), serializer);
}
public bool host_metrics_get_live(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("host_metrics.get_live", new JArray(session, _host_metrics ?? ""), serializer);
}
public DateTime host_metrics_get_last_updated(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("host_metrics.get_last_updated", new JArray(session, _host_metrics ?? ""), serializer);
}
public Dictionary<string, string> host_metrics_get_other_config(string session, string _host_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host_metrics.get_other_config", new JArray(session, _host_metrics ?? ""), serializer);
}
public void host_metrics_set_other_config(string session, string _host_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host_metrics.set_other_config", new JArray(session, _host_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void host_metrics_add_to_other_config(string session, string _host_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_metrics.add_to_other_config", new JArray(session, _host_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_metrics_remove_from_other_config(string session, string _host_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_metrics.remove_from_other_config", new JArray(session, _host_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<Host_metrics>> host_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_metrics>>>("host_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Host_metrics>, Host_metrics> host_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Host_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host_metrics>, Host_metrics>>("host_metrics.get_all_records", new JArray(session), serializer);
}
public Host_cpu host_cpu_get_record(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Host_cpu>("host_cpu.get_record", new JArray(session, _host_cpu ?? ""), serializer);
}
public XenRef<Host_cpu> host_cpu_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host_cpu>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host_cpu>>("host_cpu.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string host_cpu_get_uuid(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_uuid", new JArray(session, _host_cpu ?? ""), serializer);
}
public XenRef<Host> host_cpu_get_host(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("host_cpu.get_host", new JArray(session, _host_cpu ?? ""), serializer);
}
public long host_cpu_get_number(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_cpu.get_number", new JArray(session, _host_cpu ?? ""), serializer);
}
public string host_cpu_get_vendor(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_vendor", new JArray(session, _host_cpu ?? ""), serializer);
}
public long host_cpu_get_speed(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_cpu.get_speed", new JArray(session, _host_cpu ?? ""), serializer);
}
public string host_cpu_get_modelname(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_modelname", new JArray(session, _host_cpu ?? ""), serializer);
}
public long host_cpu_get_family(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_cpu.get_family", new JArray(session, _host_cpu ?? ""), serializer);
}
public long host_cpu_get_model(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("host_cpu.get_model", new JArray(session, _host_cpu ?? ""), serializer);
}
public string host_cpu_get_stepping(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_stepping", new JArray(session, _host_cpu ?? ""), serializer);
}
public string host_cpu_get_flags(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_flags", new JArray(session, _host_cpu ?? ""), serializer);
}
public string host_cpu_get_features(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("host_cpu.get_features", new JArray(session, _host_cpu ?? ""), serializer);
}
public double host_cpu_get_utilisation(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("host_cpu.get_utilisation", new JArray(session, _host_cpu ?? ""), serializer);
}
public Dictionary<string, string> host_cpu_get_other_config(string session, string _host_cpu)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("host_cpu.get_other_config", new JArray(session, _host_cpu ?? ""), serializer);
}
public void host_cpu_set_other_config(string session, string _host_cpu, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("host_cpu.set_other_config", new JArray(session, _host_cpu ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void host_cpu_add_to_other_config(string session, string _host_cpu, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_cpu.add_to_other_config", new JArray(session, _host_cpu ?? "", _key ?? "", _value ?? ""), serializer);
}
public void host_cpu_remove_from_other_config(string session, string _host_cpu, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("host_cpu.remove_from_other_config", new JArray(session, _host_cpu ?? "", _key ?? ""), serializer);
}
public List<XenRef<Host_cpu>> host_cpu_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Host_cpu>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Host_cpu>>>("host_cpu.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Host_cpu>, Host_cpu> host_cpu_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Host_cpu>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Host_cpu>, Host_cpu>>("host_cpu.get_all_records", new JArray(session), serializer);
}
public Network network_get_record(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Network>("network.get_record", new JArray(session, _network ?? ""), serializer);
}
public XenRef<Network> network_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network>>("network.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<Network> network_create(string session, Network _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network>>("network.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_network_create(string session, Network _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.create", new JArray(session, _record.ToJObject()), serializer);
}
public void network_destroy(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.destroy", new JArray(session, _network ?? ""), serializer);
}
public XenRef<Task> async_network_destroy(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.destroy", new JArray(session, _network ?? ""), serializer);
}
public List<XenRef<Network>> network_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Network>>>("network.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string network_get_uuid(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("network.get_uuid", new JArray(session, _network ?? ""), serializer);
}
public string network_get_name_label(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("network.get_name_label", new JArray(session, _network ?? ""), serializer);
}
public string network_get_name_description(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("network.get_name_description", new JArray(session, _network ?? ""), serializer);
}
public List<network_operations> network_get_allowed_operations(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<network_operations>>("network.get_allowed_operations", new JArray(session, _network ?? ""), serializer);
}
public Dictionary<string, network_operations> network_get_current_operations(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, network_operations>>("network.get_current_operations", new JArray(session, _network ?? ""), serializer);
}
public List<XenRef<VIF>> network_get_vifs(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VIF>>>("network.get_VIFs", new JArray(session, _network ?? ""), serializer);
}
public List<XenRef<PIF>> network_get_pifs(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("network.get_PIFs", new JArray(session, _network ?? ""), serializer);
}
public long network_get_mtu(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("network.get_MTU", new JArray(session, _network ?? ""), serializer);
}
public Dictionary<string, string> network_get_other_config(string session, string _network)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("network.get_other_config", new JArray(session, _network ?? ""), serializer);
}
public string network_get_bridge(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("network.get_bridge", new JArray(session, _network ?? ""), serializer);
}
public bool network_get_managed(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("network.get_managed", new JArray(session, _network ?? ""), serializer);
}
public Dictionary<string, XenRef<Blob>> network_get_blobs(string session, string _network)
{
var converters = new List<JsonConverter> {new StringXenRefMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, XenRef<Blob>>>("network.get_blobs", new JArray(session, _network ?? ""), serializer);
}
public string[] network_get_tags(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("network.get_tags", new JArray(session, _network ?? ""), serializer);
}
public network_default_locking_mode network_get_default_locking_mode(string session, string _network)
{
var converters = new List<JsonConverter> {new network_default_locking_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<network_default_locking_mode>("network.get_default_locking_mode", new JArray(session, _network ?? ""), serializer);
}
public Dictionary<XenRef<VIF>, string> network_get_assigned_ips(string session, string _network)
{
var converters = new List<JsonConverter> {new XenRefStringMapConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VIF>, string>>("network.get_assigned_ips", new JArray(session, _network ?? ""), serializer);
}
public List<network_purpose> network_get_purpose(string session, string _network)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<network_purpose>>("network.get_purpose", new JArray(session, _network ?? ""), serializer);
}
public void network_set_name_label(string session, string _network, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.set_name_label", new JArray(session, _network ?? "", _label ?? ""), serializer);
}
public void network_set_name_description(string session, string _network, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.set_name_description", new JArray(session, _network ?? "", _description ?? ""), serializer);
}
public void network_set_mtu(string session, string _network, long _mtu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.set_MTU", new JArray(session, _network ?? "", _mtu), serializer);
}
public void network_set_other_config(string session, string _network, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("network.set_other_config", new JArray(session, _network ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void network_add_to_other_config(string session, string _network, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.add_to_other_config", new JArray(session, _network ?? "", _key ?? "", _value ?? ""), serializer);
}
public void network_remove_from_other_config(string session, string _network, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.remove_from_other_config", new JArray(session, _network ?? "", _key ?? ""), serializer);
}
public void network_set_tags(string session, string _network, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.set_tags", new JArray(session, _network ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void network_add_tags(string session, string _network, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.add_tags", new JArray(session, _network ?? "", _value ?? ""), serializer);
}
public void network_remove_tags(string session, string _network, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network.remove_tags", new JArray(session, _network ?? "", _value ?? ""), serializer);
}
public XenRef<Blob> network_create_new_blob(string session, string _network, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("network.create_new_blob", new JArray(session, _network ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Task> async_network_create_new_blob(string session, string _network, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.create_new_blob", new JArray(session, _network ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Blob> network_create_new_blob(string session, string _network, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("network.create_new_blob", new JArray(session, _network ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public XenRef<Task> async_network_create_new_blob(string session, string _network, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.create_new_blob", new JArray(session, _network ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public void network_set_default_locking_mode(string session, string _network, network_default_locking_mode _value)
{
var converters = new List<JsonConverter> {new network_default_locking_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("network.set_default_locking_mode", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_network_set_default_locking_mode(string session, string _network, network_default_locking_mode _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new network_default_locking_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.set_default_locking_mode", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public void network_add_purpose(string session, string _network, network_purpose _value)
{
var converters = new List<JsonConverter> {new network_purposeConverter()};
var serializer = CreateSerializer(converters);
Rpc("network.add_purpose", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_network_add_purpose(string session, string _network, network_purpose _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new network_purposeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.add_purpose", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public void network_remove_purpose(string session, string _network, network_purpose _value)
{
var converters = new List<JsonConverter> {new network_purposeConverter()};
var serializer = CreateSerializer(converters);
Rpc("network.remove_purpose", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_network_remove_purpose(string session, string _network, network_purpose _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new network_purposeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network.remove_purpose", new JArray(session, _network ?? "", _value.StringOf()), serializer);
}
public List<XenRef<Network>> network_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Network>>>("network.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Network>, Network> network_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Network>, Network>>("network.get_all_records", new JArray(session), serializer);
}
public VIF vif_get_record(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VIF>("VIF.get_record", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<VIF> vif_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VIF>>("VIF.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VIF> vif_create(string session, VIF _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VIF>>("VIF.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vif_create(string session, VIF _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vif_destroy(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.destroy", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<Task> async_vif_destroy(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.destroy", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_uuid(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_uuid", new JArray(session, _vif ?? ""), serializer);
}
public List<vif_operations> vif_get_allowed_operations(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vif_operations>>("VIF.get_allowed_operations", new JArray(session, _vif ?? ""), serializer);
}
public Dictionary<string, vif_operations> vif_get_current_operations(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vif_operations>>("VIF.get_current_operations", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_device(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_device", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<Network> vif_get_network(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network>>("VIF.get_network", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<VM> vif_get_vm(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VIF.get_VM", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_mac(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_MAC", new JArray(session, _vif ?? ""), serializer);
}
public long vif_get_mtu(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VIF.get_MTU", new JArray(session, _vif ?? ""), serializer);
}
public Dictionary<string, string> vif_get_other_config(string session, string _vif)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VIF.get_other_config", new JArray(session, _vif ?? ""), serializer);
}
public bool vif_get_currently_attached(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VIF.get_currently_attached", new JArray(session, _vif ?? ""), serializer);
}
public long vif_get_status_code(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VIF.get_status_code", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_status_detail(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_status_detail", new JArray(session, _vif ?? ""), serializer);
}
public Dictionary<string, string> vif_get_runtime_properties(string session, string _vif)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VIF.get_runtime_properties", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_qos_algorithm_type(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_qos_algorithm_type", new JArray(session, _vif ?? ""), serializer);
}
public Dictionary<string, string> vif_get_qos_algorithm_params(string session, string _vif)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VIF.get_qos_algorithm_params", new JArray(session, _vif ?? ""), serializer);
}
public string[] vif_get_qos_supported_algorithms(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VIF.get_qos_supported_algorithms", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<VIF_metrics> vif_get_metrics(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<VIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VIF_metrics>>("VIF.get_metrics", new JArray(session, _vif ?? ""), serializer);
}
public bool vif_get_mac_autogenerated(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VIF.get_MAC_autogenerated", new JArray(session, _vif ?? ""), serializer);
}
public vif_locking_mode vif_get_locking_mode(string session, string _vif)
{
var converters = new List<JsonConverter> {new vif_locking_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vif_locking_mode>("VIF.get_locking_mode", new JArray(session, _vif ?? ""), serializer);
}
public string[] vif_get_ipv4_allowed(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VIF.get_ipv4_allowed", new JArray(session, _vif ?? ""), serializer);
}
public string[] vif_get_ipv6_allowed(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VIF.get_ipv6_allowed", new JArray(session, _vif ?? ""), serializer);
}
public vif_ipv4_configuration_mode vif_get_ipv4_configuration_mode(string session, string _vif)
{
var converters = new List<JsonConverter> {new vif_ipv4_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vif_ipv4_configuration_mode>("VIF.get_ipv4_configuration_mode", new JArray(session, _vif ?? ""), serializer);
}
public string[] vif_get_ipv4_addresses(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VIF.get_ipv4_addresses", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_ipv4_gateway(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_ipv4_gateway", new JArray(session, _vif ?? ""), serializer);
}
public vif_ipv6_configuration_mode vif_get_ipv6_configuration_mode(string session, string _vif)
{
var converters = new List<JsonConverter> {new vif_ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vif_ipv6_configuration_mode>("VIF.get_ipv6_configuration_mode", new JArray(session, _vif ?? ""), serializer);
}
public string[] vif_get_ipv6_addresses(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VIF.get_ipv6_addresses", new JArray(session, _vif ?? ""), serializer);
}
public string vif_get_ipv6_gateway(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF.get_ipv6_gateway", new JArray(session, _vif ?? ""), serializer);
}
public void vif_set_other_config(string session, string _vif, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_other_config", new JArray(session, _vif ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vif_add_to_other_config(string session, string _vif, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.add_to_other_config", new JArray(session, _vif ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vif_remove_from_other_config(string session, string _vif, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.remove_from_other_config", new JArray(session, _vif ?? "", _key ?? ""), serializer);
}
public void vif_set_qos_algorithm_type(string session, string _vif, string _algorithm_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_qos_algorithm_type", new JArray(session, _vif ?? "", _algorithm_type ?? ""), serializer);
}
public void vif_set_qos_algorithm_params(string session, string _vif, Dictionary<string, string> _algorithm_params)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_qos_algorithm_params", new JArray(session, _vif ?? "", _algorithm_params == null ? new JObject() : JObject.FromObject(_algorithm_params, serializer)), serializer);
}
public void vif_add_to_qos_algorithm_params(string session, string _vif, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.add_to_qos_algorithm_params", new JArray(session, _vif ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vif_remove_from_qos_algorithm_params(string session, string _vif, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.remove_from_qos_algorithm_params", new JArray(session, _vif ?? "", _key ?? ""), serializer);
}
public void vif_plug(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.plug", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<Task> async_vif_plug(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.plug", new JArray(session, _vif ?? ""), serializer);
}
public void vif_unplug(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.unplug", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<Task> async_vif_unplug(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.unplug", new JArray(session, _vif ?? ""), serializer);
}
public void vif_unplug_force(string session, string _vif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.unplug_force", new JArray(session, _vif ?? ""), serializer);
}
public XenRef<Task> async_vif_unplug_force(string session, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.unplug_force", new JArray(session, _vif ?? ""), serializer);
}
public void vif_move(string session, string _vif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
Rpc("VIF.move", new JArray(session, _vif ?? "", _network ?? ""), serializer);
}
public XenRef<Task> async_vif_move(string session, string _vif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.move", new JArray(session, _vif ?? "", _network ?? ""), serializer);
}
public void vif_set_locking_mode(string session, string _vif, vif_locking_mode _value)
{
var converters = new List<JsonConverter> {new vif_locking_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_locking_mode", new JArray(session, _vif ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_vif_set_locking_mode(string session, string _vif, vif_locking_mode _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new vif_locking_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.set_locking_mode", new JArray(session, _vif ?? "", _value.StringOf()), serializer);
}
public void vif_set_ipv4_allowed(string session, string _vif, string[] _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_ipv4_allowed", new JArray(session, _vif ?? "", _value == null ? new JArray() : JArray.FromObject(_value)), serializer);
}
public XenRef<Task> async_vif_set_ipv4_allowed(string session, string _vif, string[] _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.set_ipv4_allowed", new JArray(session, _vif ?? "", _value == null ? new JArray() : JArray.FromObject(_value)), serializer);
}
public void vif_add_ipv4_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.add_ipv4_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vif_add_ipv4_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.add_ipv4_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public void vif_remove_ipv4_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.remove_ipv4_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vif_remove_ipv4_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.remove_ipv4_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public void vif_set_ipv6_allowed(string session, string _vif, string[] _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.set_ipv6_allowed", new JArray(session, _vif ?? "", _value == null ? new JArray() : JArray.FromObject(_value)), serializer);
}
public XenRef<Task> async_vif_set_ipv6_allowed(string session, string _vif, string[] _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.set_ipv6_allowed", new JArray(session, _vif ?? "", _value == null ? new JArray() : JArray.FromObject(_value)), serializer);
}
public void vif_add_ipv6_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.add_ipv6_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vif_add_ipv6_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.add_ipv6_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public void vif_remove_ipv6_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF.remove_ipv6_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vif_remove_ipv6_allowed(string session, string _vif, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.remove_ipv6_allowed", new JArray(session, _vif ?? "", _value ?? ""), serializer);
}
public void vif_configure_ipv4(string session, string _vif, vif_ipv4_configuration_mode _mode, string _address, string _gateway)
{
var converters = new List<JsonConverter> {new vif_ipv4_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF.configure_ipv4", new JArray(session, _vif ?? "", _mode.StringOf(), _address ?? "", _gateway ?? ""), serializer);
}
public XenRef<Task> async_vif_configure_ipv4(string session, string _vif, vif_ipv4_configuration_mode _mode, string _address, string _gateway)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new vif_ipv4_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.configure_ipv4", new JArray(session, _vif ?? "", _mode.StringOf(), _address ?? "", _gateway ?? ""), serializer);
}
public void vif_configure_ipv6(string session, string _vif, vif_ipv6_configuration_mode _mode, string _address, string _gateway)
{
var converters = new List<JsonConverter> {new vif_ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF.configure_ipv6", new JArray(session, _vif ?? "", _mode.StringOf(), _address ?? "", _gateway ?? ""), serializer);
}
public XenRef<Task> async_vif_configure_ipv6(string session, string _vif, vif_ipv6_configuration_mode _mode, string _address, string _gateway)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new vif_ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VIF.configure_ipv6", new JArray(session, _vif ?? "", _mode.StringOf(), _address ?? "", _gateway ?? ""), serializer);
}
public List<XenRef<VIF>> vif_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VIF>>>("VIF.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VIF>, VIF> vif_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VIF>, VIF>>("VIF.get_all_records", new JArray(session), serializer);
}
public VIF_metrics vif_metrics_get_record(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VIF_metrics>("VIF_metrics.get_record", new JArray(session, _vif_metrics ?? ""), serializer);
}
public XenRef<VIF_metrics> vif_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VIF_metrics>>("VIF_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vif_metrics_get_uuid(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VIF_metrics.get_uuid", new JArray(session, _vif_metrics ?? ""), serializer);
}
public double vif_metrics_get_io_read_kbs(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VIF_metrics.get_io_read_kbs", new JArray(session, _vif_metrics ?? ""), serializer);
}
public double vif_metrics_get_io_write_kbs(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VIF_metrics.get_io_write_kbs", new JArray(session, _vif_metrics ?? ""), serializer);
}
public DateTime vif_metrics_get_last_updated(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VIF_metrics.get_last_updated", new JArray(session, _vif_metrics ?? ""), serializer);
}
public Dictionary<string, string> vif_metrics_get_other_config(string session, string _vif_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VIF_metrics.get_other_config", new JArray(session, _vif_metrics ?? ""), serializer);
}
public void vif_metrics_set_other_config(string session, string _vif_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VIF_metrics.set_other_config", new JArray(session, _vif_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vif_metrics_add_to_other_config(string session, string _vif_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF_metrics.add_to_other_config", new JArray(session, _vif_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vif_metrics_remove_from_other_config(string session, string _vif_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VIF_metrics.remove_from_other_config", new JArray(session, _vif_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<VIF_metrics>> vif_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VIF_metrics>>>("VIF_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VIF_metrics>, VIF_metrics> vif_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VIF_metrics>, VIF_metrics>>("VIF_metrics.get_all_records", new JArray(session), serializer);
}
public PIF pif_get_record(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PIF>("PIF.get_record", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<PIF> pif_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pif_get_uuid(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_uuid", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_device(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_device", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Network> pif_get_network(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network>>("PIF.get_network", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Host> pif_get_host(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PIF.get_host", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_mac(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_MAC", new JArray(session, _pif ?? ""), serializer);
}
public long pif_get_mtu(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PIF.get_MTU", new JArray(session, _pif ?? ""), serializer);
}
public long pif_get_vlan(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PIF.get_VLAN", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<PIF_metrics> pif_get_metrics(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF_metrics>>("PIF.get_metrics", new JArray(session, _pif ?? ""), serializer);
}
public bool pif_get_physical(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF.get_physical", new JArray(session, _pif ?? ""), serializer);
}
public bool pif_get_currently_attached(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF.get_currently_attached", new JArray(session, _pif ?? ""), serializer);
}
public ip_configuration_mode pif_get_ip_configuration_mode(string session, string _pif)
{
var converters = new List<JsonConverter> {new ip_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<ip_configuration_mode>("PIF.get_ip_configuration_mode", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_ip(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_IP", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_netmask(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_netmask", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_gateway(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_gateway", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_dns(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_DNS", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Bond> pif_get_bond_slave_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Bond>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Bond>>("PIF.get_bond_slave_of", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<Bond>> pif_get_bond_master_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Bond>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Bond>>>("PIF.get_bond_master_of", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<VLAN> pif_get_vlan_master_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<VLAN>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VLAN>>("PIF.get_VLAN_master_of", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<VLAN>> pif_get_vlan_slave_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VLAN>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VLAN>>>("PIF.get_VLAN_slave_of", new JArray(session, _pif ?? ""), serializer);
}
public bool pif_get_management(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF.get_management", new JArray(session, _pif ?? ""), serializer);
}
public Dictionary<string, string> pif_get_other_config(string session, string _pif)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PIF.get_other_config", new JArray(session, _pif ?? ""), serializer);
}
public bool pif_get_disallow_unplug(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF.get_disallow_unplug", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<Tunnel>> pif_get_tunnel_access_pif_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Tunnel>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Tunnel>>>("PIF.get_tunnel_access_PIF_of", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<Tunnel>> pif_get_tunnel_transport_pif_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Tunnel>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Tunnel>>>("PIF.get_tunnel_transport_PIF_of", new JArray(session, _pif ?? ""), serializer);
}
public ipv6_configuration_mode pif_get_ipv6_configuration_mode(string session, string _pif)
{
var converters = new List<JsonConverter> {new ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<ipv6_configuration_mode>("PIF.get_ipv6_configuration_mode", new JArray(session, _pif ?? ""), serializer);
}
public string[] pif_get_ipv6(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("PIF.get_IPv6", new JArray(session, _pif ?? ""), serializer);
}
public string pif_get_ipv6_gateway(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF.get_ipv6_gateway", new JArray(session, _pif ?? ""), serializer);
}
public primary_address_type pif_get_primary_address_type(string session, string _pif)
{
var converters = new List<JsonConverter> {new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<primary_address_type>("PIF.get_primary_address_type", new JArray(session, _pif ?? ""), serializer);
}
public bool pif_get_managed(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF.get_managed", new JArray(session, _pif ?? ""), serializer);
}
public Dictionary<string, string> pif_get_properties(string session, string _pif)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PIF.get_properties", new JArray(session, _pif ?? ""), serializer);
}
public string[] pif_get_capabilities(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("PIF.get_capabilities", new JArray(session, _pif ?? ""), serializer);
}
public pif_igmp_status pif_get_igmp_snooping_status(string session, string _pif)
{
var converters = new List<JsonConverter> {new pif_igmp_statusConverter()};
var serializer = CreateSerializer(converters);
return Rpc<pif_igmp_status>("PIF.get_igmp_snooping_status", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<Network_sriov>> pif_get_sriov_physical_pif_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Network_sriov>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Network_sriov>>>("PIF.get_sriov_physical_PIF_of", new JArray(session, _pif ?? ""), serializer);
}
public List<XenRef<Network_sriov>> pif_get_sriov_logical_pif_of(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Network_sriov>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Network_sriov>>>("PIF.get_sriov_logical_PIF_of", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<PCI> pif_get_pci(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PCI>>("PIF.get_PCI", new JArray(session, _pif ?? ""), serializer);
}
public void pif_set_other_config(string session, string _pif, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PIF.set_other_config", new JArray(session, _pif ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pif_add_to_other_config(string session, string _pif, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.add_to_other_config", new JArray(session, _pif ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pif_remove_from_other_config(string session, string _pif, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.remove_from_other_config", new JArray(session, _pif ?? "", _key ?? ""), serializer);
}
public XenRef<PIF> pif_create_vlan(string session, string _device, string _network, string _host, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Network>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.create_VLAN", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _vlan), serializer);
}
public XenRef<Task> async_pif_create_vlan(string session, string _device, string _network, string _host, long _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.create_VLAN", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _vlan), serializer);
}
public void pif_destroy(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.destroy", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_pif_destroy(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.destroy", new JArray(session, _pif ?? ""), serializer);
}
public void pif_reconfigure_ip(string session, string _pif, ip_configuration_mode _mode, string _ip, string _netmask, string _gateway, string _dns)
{
var converters = new List<JsonConverter> {new ip_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("PIF.reconfigure_ip", new JArray(session, _pif ?? "", _mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? ""), serializer);
}
public XenRef<Task> async_pif_reconfigure_ip(string session, string _pif, ip_configuration_mode _mode, string _ip, string _netmask, string _gateway, string _dns)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new ip_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.reconfigure_ip", new JArray(session, _pif ?? "", _mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? ""), serializer);
}
public void pif_reconfigure_ipv6(string session, string _pif, ipv6_configuration_mode _mode, string _ipv6, string _gateway, string _dns)
{
var converters = new List<JsonConverter> {new ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("PIF.reconfigure_ipv6", new JArray(session, _pif ?? "", _mode.StringOf(), _ipv6 ?? "", _gateway ?? "", _dns ?? ""), serializer);
}
public XenRef<Task> async_pif_reconfigure_ipv6(string session, string _pif, ipv6_configuration_mode _mode, string _ipv6, string _gateway, string _dns)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new ipv6_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.reconfigure_ipv6", new JArray(session, _pif ?? "", _mode.StringOf(), _ipv6 ?? "", _gateway ?? "", _dns ?? ""), serializer);
}
public void pif_set_primary_address_type(string session, string _pif, primary_address_type _primary_address_type)
{
var converters = new List<JsonConverter> {new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("PIF.set_primary_address_type", new JArray(session, _pif ?? "", _primary_address_type.StringOf()), serializer);
}
public XenRef<Task> async_pif_set_primary_address_type(string session, string _pif, primary_address_type _primary_address_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.set_primary_address_type", new JArray(session, _pif ?? "", _primary_address_type.StringOf()), serializer);
}
public void pif_scan(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("PIF.scan", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_pif_scan(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.scan", new JArray(session, _host ?? ""), serializer);
}
public XenRef<PIF> pif_introduce(string session, string _host, string _mac, string _device)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.introduce", new JArray(session, _host ?? "", _mac ?? "", _device ?? ""), serializer);
}
public XenRef<Task> async_pif_introduce(string session, string _host, string _mac, string _device)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.introduce", new JArray(session, _host ?? "", _mac ?? "", _device ?? ""), serializer);
}
public XenRef<PIF> pif_introduce(string session, string _host, string _mac, string _device, bool _managed)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.introduce", new JArray(session, _host ?? "", _mac ?? "", _device ?? "", _managed), serializer);
}
public XenRef<Task> async_pif_introduce(string session, string _host, string _mac, string _device, bool _managed)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.introduce", new JArray(session, _host ?? "", _mac ?? "", _device ?? "", _managed), serializer);
}
public void pif_forget(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.forget", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_pif_forget(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.forget", new JArray(session, _pif ?? ""), serializer);
}
public void pif_unplug(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.unplug", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_pif_unplug(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.unplug", new JArray(session, _pif ?? ""), serializer);
}
public void pif_set_disallow_unplug(string session, string _pif, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.set_disallow_unplug", new JArray(session, _pif ?? "", _value), serializer);
}
public XenRef<Task> async_pif_set_disallow_unplug(string session, string _pif, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.set_disallow_unplug", new JArray(session, _pif ?? "", _value), serializer);
}
public void pif_plug(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.plug", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_pif_plug(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.plug", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<PIF> pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug), serializer);
}
public XenRef<Task> async_pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug), serializer);
}
public XenRef<PIF> pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf()), serializer);
}
public XenRef<Task> async_pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf()), serializer);
}
public XenRef<PIF> pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type, bool _managed)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf(), _managed), serializer);
}
public XenRef<Task> async_pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type, bool _managed)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf(), _managed), serializer);
}
public XenRef<PIF> pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type, bool _managed, Dictionary<string, string> _properties)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf(), _managed, _properties == null ? new JObject() : JObject.FromObject(_properties, serializer)), serializer);
}
public XenRef<Task> async_pif_db_introduce(string session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary<string, string> _other_config, bool _disallow_unplug, ipv6_configuration_mode _ipv6_configuration_mode, string[] _ipv6, string _ipv6_gateway, primary_address_type _primary_address_type, bool _managed, Dictionary<string, string> _properties)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefConverter<Host>(), new ip_configuration_modeConverter(), new XenRefConverter<Bond>(), new XenRefConverter<VLAN>(), new StringStringMapConverter(), new ipv6_configuration_modeConverter(), new primary_address_typeConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.db_introduce", new JArray(session, _device ?? "", _network ?? "", _host ?? "", _mac ?? "", _mtu, _vlan, _physical, _ip_configuration_mode.StringOf(), _ip ?? "", _netmask ?? "", _gateway ?? "", _dns ?? "", _bond_slave_of ?? "", _vlan_master_of ?? "", _management, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _disallow_unplug, _ipv6_configuration_mode.StringOf(), _ipv6 == null ? new JArray() : JArray.FromObject(_ipv6), _ipv6_gateway ?? "", _primary_address_type.StringOf(), _managed, _properties == null ? new JObject() : JObject.FromObject(_properties, serializer)), serializer);
}
public void pif_db_forget(string session, string _pif)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.db_forget", new JArray(session, _pif ?? ""), serializer);
}
public XenRef<Task> async_pif_db_forget(string session, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.db_forget", new JArray(session, _pif ?? ""), serializer);
}
public void pif_set_property(string session, string _pif, string _name, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF.set_property", new JArray(session, _pif ?? "", _name ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pif_set_property(string session, string _pif, string _name, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PIF.set_property", new JArray(session, _pif ?? "", _name ?? "", _value ?? ""), serializer);
}
public List<XenRef<PIF>> pif_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("PIF.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PIF>, PIF> pif_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PIF>, PIF>>("PIF.get_all_records", new JArray(session), serializer);
}
public PIF_metrics pif_metrics_get_record(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PIF_metrics>("PIF_metrics.get_record", new JArray(session, _pif_metrics ?? ""), serializer);
}
public XenRef<PIF_metrics> pif_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF_metrics>>("PIF_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pif_metrics_get_uuid(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_uuid", new JArray(session, _pif_metrics ?? ""), serializer);
}
public double pif_metrics_get_io_read_kbs(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("PIF_metrics.get_io_read_kbs", new JArray(session, _pif_metrics ?? ""), serializer);
}
public double pif_metrics_get_io_write_kbs(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("PIF_metrics.get_io_write_kbs", new JArray(session, _pif_metrics ?? ""), serializer);
}
public bool pif_metrics_get_carrier(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF_metrics.get_carrier", new JArray(session, _pif_metrics ?? ""), serializer);
}
public string pif_metrics_get_vendor_id(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_vendor_id", new JArray(session, _pif_metrics ?? ""), serializer);
}
public string pif_metrics_get_vendor_name(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_vendor_name", new JArray(session, _pif_metrics ?? ""), serializer);
}
public string pif_metrics_get_device_id(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_device_id", new JArray(session, _pif_metrics ?? ""), serializer);
}
public string pif_metrics_get_device_name(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_device_name", new JArray(session, _pif_metrics ?? ""), serializer);
}
public long pif_metrics_get_speed(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PIF_metrics.get_speed", new JArray(session, _pif_metrics ?? ""), serializer);
}
public bool pif_metrics_get_duplex(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PIF_metrics.get_duplex", new JArray(session, _pif_metrics ?? ""), serializer);
}
public string pif_metrics_get_pci_bus_path(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PIF_metrics.get_pci_bus_path", new JArray(session, _pif_metrics ?? ""), serializer);
}
public DateTime pif_metrics_get_last_updated(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("PIF_metrics.get_last_updated", new JArray(session, _pif_metrics ?? ""), serializer);
}
public Dictionary<string, string> pif_metrics_get_other_config(string session, string _pif_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PIF_metrics.get_other_config", new JArray(session, _pif_metrics ?? ""), serializer);
}
public void pif_metrics_set_other_config(string session, string _pif_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PIF_metrics.set_other_config", new JArray(session, _pif_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pif_metrics_add_to_other_config(string session, string _pif_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF_metrics.add_to_other_config", new JArray(session, _pif_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pif_metrics_remove_from_other_config(string session, string _pif_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PIF_metrics.remove_from_other_config", new JArray(session, _pif_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<PIF_metrics>> pif_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF_metrics>>>("PIF_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PIF_metrics>, PIF_metrics> pif_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PIF_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PIF_metrics>, PIF_metrics>>("PIF_metrics.get_all_records", new JArray(session), serializer);
}
public Bond bond_get_record(string session, string _bond)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Bond>("Bond.get_record", new JArray(session, _bond ?? ""), serializer);
}
public XenRef<Bond> bond_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Bond>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Bond>>("Bond.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string bond_get_uuid(string session, string _bond)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Bond.get_uuid", new JArray(session, _bond ?? ""), serializer);
}
public XenRef<PIF> bond_get_master(string session, string _bond)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("Bond.get_master", new JArray(session, _bond ?? ""), serializer);
}
public List<XenRef<PIF>> bond_get_slaves(string session, string _bond)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PIF>>>("Bond.get_slaves", new JArray(session, _bond ?? ""), serializer);
}
public Dictionary<string, string> bond_get_other_config(string session, string _bond)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("Bond.get_other_config", new JArray(session, _bond ?? ""), serializer);
}
public XenRef<PIF> bond_get_primary_slave(string session, string _bond)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("Bond.get_primary_slave", new JArray(session, _bond ?? ""), serializer);
}
public bond_mode bond_get_mode(string session, string _bond)
{
var converters = new List<JsonConverter> {new bond_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<bond_mode>("Bond.get_mode", new JArray(session, _bond ?? ""), serializer);
}
public Dictionary<string, string> bond_get_properties(string session, string _bond)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("Bond.get_properties", new JArray(session, _bond ?? ""), serializer);
}
public long bond_get_links_up(string session, string _bond)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("Bond.get_links_up", new JArray(session, _bond ?? ""), serializer);
}
public bool bond_get_auto_update_mac(string session, string _bond)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Bond.get_auto_update_mac", new JArray(session, _bond ?? ""), serializer);
}
public void bond_set_other_config(string session, string _bond, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("Bond.set_other_config", new JArray(session, _bond ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void bond_add_to_other_config(string session, string _bond, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Bond.add_to_other_config", new JArray(session, _bond ?? "", _key ?? "", _value ?? ""), serializer);
}
public void bond_remove_from_other_config(string session, string _bond, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Bond.remove_from_other_config", new JArray(session, _bond ?? "", _key ?? ""), serializer);
}
public XenRef<Bond> bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac)
{
var converters = new List<JsonConverter> {new XenRefConverter<Bond>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Bond>>("Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? ""), serializer);
}
public XenRef<Task> async_bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? ""), serializer);
}
public XenRef<Bond> bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac, bond_mode _mode)
{
var converters = new List<JsonConverter> {new XenRefConverter<Bond>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>(), new bond_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Bond>>("Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? "", _mode.StringOf()), serializer);
}
public XenRef<Task> async_bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac, bond_mode _mode)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>(), new bond_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? "", _mode.StringOf()), serializer);
}
public XenRef<Bond> bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac, bond_mode _mode, Dictionary<string, string> _properties)
{
var converters = new List<JsonConverter> {new XenRefConverter<Bond>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>(), new bond_modeConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Bond>>("Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? "", _mode.StringOf(), _properties == null ? new JObject() : JObject.FromObject(_properties, serializer)), serializer);
}
public XenRef<Task> async_bond_create(string session, string _network, List<XenRef<PIF>> _members, string _mac, bond_mode _mode, Dictionary<string, string> _properties)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>(), new XenRefListConverter<PIF>(), new bond_modeConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.create", new JArray(session, _network ?? "", _members == null ? new JArray() : JArray.FromObject(_members, serializer), _mac ?? "", _mode.StringOf(), _properties == null ? new JObject() : JObject.FromObject(_properties, serializer)), serializer);
}
public void bond_destroy(string session, string _bond)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Bond.destroy", new JArray(session, _bond ?? ""), serializer);
}
public XenRef<Task> async_bond_destroy(string session, string _bond)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.destroy", new JArray(session, _bond ?? ""), serializer);
}
public void bond_set_mode(string session, string _bond, bond_mode _value)
{
var converters = new List<JsonConverter> {new bond_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("Bond.set_mode", new JArray(session, _bond ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_bond_set_mode(string session, string _bond, bond_mode _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new bond_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.set_mode", new JArray(session, _bond ?? "", _value.StringOf()), serializer);
}
public void bond_set_property(string session, string _bond, string _name, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Bond.set_property", new JArray(session, _bond ?? "", _name ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_bond_set_property(string session, string _bond, string _name, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Bond.set_property", new JArray(session, _bond ?? "", _name ?? "", _value ?? ""), serializer);
}
public List<XenRef<Bond>> bond_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Bond>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Bond>>>("Bond.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Bond>, Bond> bond_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Bond>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Bond>, Bond>>("Bond.get_all_records", new JArray(session), serializer);
}
public VLAN vlan_get_record(string session, string _vlan)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VLAN>("VLAN.get_record", new JArray(session, _vlan ?? ""), serializer);
}
public XenRef<VLAN> vlan_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VLAN>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VLAN>>("VLAN.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vlan_get_uuid(string session, string _vlan)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VLAN.get_uuid", new JArray(session, _vlan ?? ""), serializer);
}
public XenRef<PIF> vlan_get_tagged_pif(string session, string _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("VLAN.get_tagged_PIF", new JArray(session, _vlan ?? ""), serializer);
}
public XenRef<PIF> vlan_get_untagged_pif(string session, string _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("VLAN.get_untagged_PIF", new JArray(session, _vlan ?? ""), serializer);
}
public long vlan_get_tag(string session, string _vlan)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VLAN.get_tag", new JArray(session, _vlan ?? ""), serializer);
}
public Dictionary<string, string> vlan_get_other_config(string session, string _vlan)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VLAN.get_other_config", new JArray(session, _vlan ?? ""), serializer);
}
public void vlan_set_other_config(string session, string _vlan, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VLAN.set_other_config", new JArray(session, _vlan ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vlan_add_to_other_config(string session, string _vlan, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VLAN.add_to_other_config", new JArray(session, _vlan ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vlan_remove_from_other_config(string session, string _vlan, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VLAN.remove_from_other_config", new JArray(session, _vlan ?? "", _key ?? ""), serializer);
}
public XenRef<VLAN> vlan_create(string session, string _tagged_pif, long _tag, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<VLAN>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VLAN>>("VLAN.create", new JArray(session, _tagged_pif ?? "", _tag, _network ?? ""), serializer);
}
public XenRef<Task> async_vlan_create(string session, string _tagged_pif, long _tag, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VLAN.create", new JArray(session, _tagged_pif ?? "", _tag, _network ?? ""), serializer);
}
public void vlan_destroy(string session, string _vlan)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VLAN.destroy", new JArray(session, _vlan ?? ""), serializer);
}
public XenRef<Task> async_vlan_destroy(string session, string _vlan)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VLAN.destroy", new JArray(session, _vlan ?? ""), serializer);
}
public List<XenRef<VLAN>> vlan_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VLAN>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VLAN>>>("VLAN.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VLAN>, VLAN> vlan_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VLAN>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VLAN>, VLAN>>("VLAN.get_all_records", new JArray(session), serializer);
}
public SM sm_get_record(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<SM>("SM.get_record", new JArray(session, _sm ?? ""), serializer);
}
public XenRef<SM> sm_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<SM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SM>>("SM.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<SM>> sm_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SM>>>("SM.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string sm_get_uuid(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_uuid", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_name_label(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_name_label", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_name_description(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_name_description", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_type(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_type", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_vendor(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_vendor", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_copyright(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_copyright", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_version(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_version", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_required_api_version(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_required_api_version", new JArray(session, _sm ?? ""), serializer);
}
public Dictionary<string, string> sm_get_configuration(string session, string _sm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("SM.get_configuration", new JArray(session, _sm ?? ""), serializer);
}
public string[] sm_get_capabilities(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("SM.get_capabilities", new JArray(session, _sm ?? ""), serializer);
}
public Dictionary<string, long> sm_get_features(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, long>>("SM.get_features", new JArray(session, _sm ?? ""), serializer);
}
public Dictionary<string, string> sm_get_other_config(string session, string _sm)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("SM.get_other_config", new JArray(session, _sm ?? ""), serializer);
}
public string sm_get_driver_filename(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SM.get_driver_filename", new JArray(session, _sm ?? ""), serializer);
}
public string[] sm_get_required_cluster_stack(string session, string _sm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("SM.get_required_cluster_stack", new JArray(session, _sm ?? ""), serializer);
}
public void sm_set_other_config(string session, string _sm, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("SM.set_other_config", new JArray(session, _sm ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void sm_add_to_other_config(string session, string _sm, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SM.add_to_other_config", new JArray(session, _sm ?? "", _key ?? "", _value ?? ""), serializer);
}
public void sm_remove_from_other_config(string session, string _sm, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SM.remove_from_other_config", new JArray(session, _sm ?? "", _key ?? ""), serializer);
}
public List<XenRef<SM>> sm_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SM>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SM>>>("SM.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<SM>, SM> sm_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<SM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<SM>, SM>>("SM.get_all_records", new JArray(session), serializer);
}
public SR sr_get_record(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<SR>("SR.get_record", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<SR> sr_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("SR.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<SR>> sr_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SR>>>("SR.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string sr_get_uuid(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.get_uuid", new JArray(session, _sr ?? ""), serializer);
}
public string sr_get_name_label(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.get_name_label", new JArray(session, _sr ?? ""), serializer);
}
public string sr_get_name_description(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.get_name_description", new JArray(session, _sr ?? ""), serializer);
}
public List<storage_operations> sr_get_allowed_operations(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<storage_operations>>("SR.get_allowed_operations", new JArray(session, _sr ?? ""), serializer);
}
public Dictionary<string, storage_operations> sr_get_current_operations(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, storage_operations>>("SR.get_current_operations", new JArray(session, _sr ?? ""), serializer);
}
public List<XenRef<VDI>> sr_get_vdis(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VDI>>>("SR.get_VDIs", new JArray(session, _sr ?? ""), serializer);
}
public List<XenRef<PBD>> sr_get_pbds(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PBD>>>("SR.get_PBDs", new JArray(session, _sr ?? ""), serializer);
}
public long sr_get_virtual_allocation(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("SR.get_virtual_allocation", new JArray(session, _sr ?? ""), serializer);
}
public long sr_get_physical_utilisation(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("SR.get_physical_utilisation", new JArray(session, _sr ?? ""), serializer);
}
public long sr_get_physical_size(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("SR.get_physical_size", new JArray(session, _sr ?? ""), serializer);
}
public string sr_get_type(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.get_type", new JArray(session, _sr ?? ""), serializer);
}
public string sr_get_content_type(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.get_content_type", new JArray(session, _sr ?? ""), serializer);
}
public bool sr_get_shared(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("SR.get_shared", new JArray(session, _sr ?? ""), serializer);
}
public Dictionary<string, string> sr_get_other_config(string session, string _sr)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("SR.get_other_config", new JArray(session, _sr ?? ""), serializer);
}
public string[] sr_get_tags(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("SR.get_tags", new JArray(session, _sr ?? ""), serializer);
}
public Dictionary<string, string> sr_get_sm_config(string session, string _sr)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("SR.get_sm_config", new JArray(session, _sr ?? ""), serializer);
}
public Dictionary<string, XenRef<Blob>> sr_get_blobs(string session, string _sr)
{
var converters = new List<JsonConverter> {new StringXenRefMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, XenRef<Blob>>>("SR.get_blobs", new JArray(session, _sr ?? ""), serializer);
}
public bool sr_get_local_cache_enabled(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("SR.get_local_cache_enabled", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<DR_task> sr_get_introduced_by(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<DR_task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<DR_task>>("SR.get_introduced_by", new JArray(session, _sr ?? ""), serializer);
}
public bool sr_get_clustered(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("SR.get_clustered", new JArray(session, _sr ?? ""), serializer);
}
public bool sr_get_is_tools_sr(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("SR.get_is_tools_sr", new JArray(session, _sr ?? ""), serializer);
}
public void sr_set_other_config(string session, string _sr, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("SR.set_other_config", new JArray(session, _sr ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void sr_add_to_other_config(string session, string _sr, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.add_to_other_config", new JArray(session, _sr ?? "", _key ?? "", _value ?? ""), serializer);
}
public void sr_remove_from_other_config(string session, string _sr, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.remove_from_other_config", new JArray(session, _sr ?? "", _key ?? ""), serializer);
}
public void sr_set_tags(string session, string _sr, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.set_tags", new JArray(session, _sr ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void sr_add_tags(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.add_tags", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public void sr_remove_tags(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.remove_tags", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public void sr_set_sm_config(string session, string _sr, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("SR.set_sm_config", new JArray(session, _sr ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public void sr_add_to_sm_config(string session, string _sr, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.add_to_sm_config", new JArray(session, _sr ?? "", _key ?? "", _value ?? ""), serializer);
}
public void sr_remove_from_sm_config(string session, string _sr, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.remove_from_sm_config", new JArray(session, _sr ?? "", _key ?? ""), serializer);
}
public XenRef<SR> sr_create(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, bool _shared)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>(), new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("SR.create", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared), serializer);
}
public XenRef<Task> async_sr_create(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, bool _shared)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.create", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared), serializer);
}
public XenRef<SR> sr_create(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, bool _shared, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>(), new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("SR.create", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared, _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_sr_create(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, bool _shared, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.create", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared, _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<SR> sr_introduce(string session, string _uuid, string _name_label, string _name_description, string _type, string _content_type, bool _shared)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("SR.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared), serializer);
}
public XenRef<Task> async_sr_introduce(string session, string _uuid, string _name_label, string _name_description, string _type, string _content_type, bool _shared)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared), serializer);
}
public XenRef<SR> sr_introduce(string session, string _uuid, string _name_label, string _name_description, string _type, string _content_type, bool _shared, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("SR.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared, _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_sr_introduce(string session, string _uuid, string _name_label, string _name_description, string _type, string _content_type, bool _shared, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _shared, _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public string sr_make(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.make", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? ""), serializer);
}
public XenRef<Task> async_sr_make(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.make", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? ""), serializer);
}
public string sr_make(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.make", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_sr_make(string session, string _host, Dictionary<string, string> _device_config, long _physical_size, string _name_label, string _name_description, string _type, string _content_type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.make", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _physical_size, _name_label ?? "", _name_description ?? "", _type ?? "", _content_type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public void sr_destroy(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.destroy", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_destroy(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.destroy", new JArray(session, _sr ?? ""), serializer);
}
public void sr_forget(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.forget", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_forget(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.forget", new JArray(session, _sr ?? ""), serializer);
}
public void sr_update(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.update", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_update(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.update", new JArray(session, _sr ?? ""), serializer);
}
public string[] sr_get_supported_types(string session)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("SR.get_supported_types", new JArray(session), serializer);
}
public void sr_scan(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.scan", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_scan(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.scan", new JArray(session, _sr ?? ""), serializer);
}
public string sr_probe(string session, string _host, Dictionary<string, string> _device_config, string _type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<string>("SR.probe", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_sr_probe(string session, string _host, Dictionary<string, string> _device_config, string _type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.probe", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public List<Probe_result> sr_probe_ext(string session, string _host, Dictionary<string, string> _device_config, string _type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<List<Probe_result>>("SR.probe_ext", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_sr_probe_ext(string session, string _host, Dictionary<string, string> _device_config, string _type, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.probe_ext", new JArray(session, _host ?? "", _device_config == null ? new JObject() : JObject.FromObject(_device_config, serializer), _type ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public void sr_set_shared(string session, string _sr, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.set_shared", new JArray(session, _sr ?? "", _value), serializer);
}
public XenRef<Task> async_sr_set_shared(string session, string _sr, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.set_shared", new JArray(session, _sr ?? "", _value), serializer);
}
public void sr_set_name_label(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.set_name_label", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_sr_set_name_label(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.set_name_label", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public void sr_set_name_description(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.set_name_description", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_sr_set_name_description(string session, string _sr, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.set_name_description", new JArray(session, _sr ?? "", _value ?? ""), serializer);
}
public XenRef<Blob> sr_create_new_blob(string session, string _sr, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("SR.create_new_blob", new JArray(session, _sr ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Task> async_sr_create_new_blob(string session, string _sr, string _name, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.create_new_blob", new JArray(session, _sr ?? "", _name ?? "", _mime_type ?? ""), serializer);
}
public XenRef<Blob> sr_create_new_blob(string session, string _sr, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("SR.create_new_blob", new JArray(session, _sr ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public XenRef<Task> async_sr_create_new_blob(string session, string _sr, string _name, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.create_new_blob", new JArray(session, _sr ?? "", _name ?? "", _mime_type ?? "", _public), serializer);
}
public void sr_set_physical_size(string session, string _sr, long _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.set_physical_size", new JArray(session, _sr ?? "", _value), serializer);
}
public void sr_assert_can_host_ha_statefile(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.assert_can_host_ha_statefile", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_assert_can_host_ha_statefile(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.assert_can_host_ha_statefile", new JArray(session, _sr ?? ""), serializer);
}
public void sr_assert_supports_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.assert_supports_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_assert_supports_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.assert_supports_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public void sr_enable_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.enable_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_enable_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.enable_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public void sr_disable_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.disable_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public XenRef<Task> async_sr_disable_database_replication(string session, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SR.disable_database_replication", new JArray(session, _sr ?? ""), serializer);
}
public List<Data_source> sr_get_data_sources(string session, string _sr)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<Data_source>>("SR.get_data_sources", new JArray(session, _sr ?? ""), serializer);
}
public void sr_record_data_source(string session, string _sr, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.record_data_source", new JArray(session, _sr ?? "", _data_source ?? ""), serializer);
}
public double sr_query_data_source(string session, string _sr, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("SR.query_data_source", new JArray(session, _sr ?? "", _data_source ?? ""), serializer);
}
public void sr_forget_data_source_archives(string session, string _sr, string _data_source)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SR.forget_data_source_archives", new JArray(session, _sr ?? "", _data_source ?? ""), serializer);
}
public List<XenRef<SR>> sr_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SR>>>("SR.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<SR>, SR> sr_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<SR>, SR>>("SR.get_all_records", new JArray(session), serializer);
}
public Dictionary<XenRef<Sr_stat>, Sr_stat> sr_stat_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Sr_stat>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Sr_stat>, Sr_stat>>("sr_stat.get_all_records", new JArray(session), serializer);
}
public Dictionary<XenRef<Probe_result>, Probe_result> probe_result_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Probe_result>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Probe_result>, Probe_result>>("probe_result.get_all_records", new JArray(session), serializer);
}
public LVHD lvhd_get_record(string session, string _lvhd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<LVHD>("LVHD.get_record", new JArray(session, _lvhd ?? ""), serializer);
}
public XenRef<LVHD> lvhd_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<LVHD>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<LVHD>>("LVHD.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string lvhd_get_uuid(string session, string _lvhd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("LVHD.get_uuid", new JArray(session, _lvhd ?? ""), serializer);
}
public string lvhd_enable_thin_provisioning(string session, string _host, string _sr, long _initial_allocation, long _allocation_quantum)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<string>("LVHD.enable_thin_provisioning", new JArray(session, _host ?? "", _sr ?? "", _initial_allocation, _allocation_quantum), serializer);
}
public XenRef<Task> async_lvhd_enable_thin_provisioning(string session, string _host, string _sr, long _initial_allocation, long _allocation_quantum)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.LVHD.enable_thin_provisioning", new JArray(session, _host ?? "", _sr ?? "", _initial_allocation, _allocation_quantum), serializer);
}
public Dictionary<XenRef<LVHD>, LVHD> lvhd_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<LVHD>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<LVHD>, LVHD>>("LVHD.get_all_records", new JArray(session), serializer);
}
public VDI vdi_get_record(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VDI>("VDI.get_record", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<VDI> vdi_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VDI> vdi_create(string session, VDI _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vdi_create(string session, VDI _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vdi_destroy(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.destroy", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_destroy(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.destroy", new JArray(session, _vdi ?? ""), serializer);
}
public List<XenRef<VDI>> vdi_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VDI>>>("VDI.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string vdi_get_uuid(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.get_uuid", new JArray(session, _vdi ?? ""), serializer);
}
public string vdi_get_name_label(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.get_name_label", new JArray(session, _vdi ?? ""), serializer);
}
public string vdi_get_name_description(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.get_name_description", new JArray(session, _vdi ?? ""), serializer);
}
public List<vdi_operations> vdi_get_allowed_operations(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vdi_operations>>("VDI.get_allowed_operations", new JArray(session, _vdi ?? ""), serializer);
}
public Dictionary<string, vdi_operations> vdi_get_current_operations(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vdi_operations>>("VDI.get_current_operations", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<SR> vdi_get_sr(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("VDI.get_SR", new JArray(session, _vdi ?? ""), serializer);
}
public List<XenRef<VBD>> vdi_get_vbds(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VBD>>>("VDI.get_VBDs", new JArray(session, _vdi ?? ""), serializer);
}
public List<XenRef<Crashdump>> vdi_get_crash_dumps(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Crashdump>>>("VDI.get_crash_dumps", new JArray(session, _vdi ?? ""), serializer);
}
public long vdi_get_virtual_size(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VDI.get_virtual_size", new JArray(session, _vdi ?? ""), serializer);
}
public long vdi_get_physical_utilisation(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VDI.get_physical_utilisation", new JArray(session, _vdi ?? ""), serializer);
}
public vdi_type vdi_get_type(string session, string _vdi)
{
var converters = new List<JsonConverter> {new vdi_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vdi_type>("VDI.get_type", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_sharable(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_sharable", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_read_only(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_read_only", new JArray(session, _vdi ?? ""), serializer);
}
public Dictionary<string, string> vdi_get_other_config(string session, string _vdi)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VDI.get_other_config", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_storage_lock(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_storage_lock", new JArray(session, _vdi ?? ""), serializer);
}
public string vdi_get_location(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.get_location", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_managed(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_managed", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_missing(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_missing", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<VDI> vdi_get_parent(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.get_parent", new JArray(session, _vdi ?? ""), serializer);
}
public Dictionary<string, string> vdi_get_xenstore_data(string session, string _vdi)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VDI.get_xenstore_data", new JArray(session, _vdi ?? ""), serializer);
}
public Dictionary<string, string> vdi_get_sm_config(string session, string _vdi)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VDI.get_sm_config", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_is_a_snapshot(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_is_a_snapshot", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<VDI> vdi_get_snapshot_of(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.get_snapshot_of", new JArray(session, _vdi ?? ""), serializer);
}
public List<XenRef<VDI>> vdi_get_snapshots(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VDI>>>("VDI.get_snapshots", new JArray(session, _vdi ?? ""), serializer);
}
public DateTime vdi_get_snapshot_time(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VDI.get_snapshot_time", new JArray(session, _vdi ?? ""), serializer);
}
public string[] vdi_get_tags(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VDI.get_tags", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_allow_caching(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_allow_caching", new JArray(session, _vdi ?? ""), serializer);
}
public on_boot vdi_get_on_boot(string session, string _vdi)
{
var converters = new List<JsonConverter> {new on_bootConverter()};
var serializer = CreateSerializer(converters);
return Rpc<on_boot>("VDI.get_on_boot", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Pool> vdi_get_metadata_of_pool(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Pool>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Pool>>("VDI.get_metadata_of_pool", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_metadata_latest(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_metadata_latest", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_is_tools_iso(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_is_tools_iso", new JArray(session, _vdi ?? ""), serializer);
}
public bool vdi_get_cbt_enabled(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VDI.get_cbt_enabled", new JArray(session, _vdi ?? ""), serializer);
}
public void vdi_set_other_config(string session, string _vdi, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_other_config", new JArray(session, _vdi ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vdi_add_to_other_config(string session, string _vdi, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.add_to_other_config", new JArray(session, _vdi ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vdi_remove_from_other_config(string session, string _vdi, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.remove_from_other_config", new JArray(session, _vdi ?? "", _key ?? ""), serializer);
}
public void vdi_set_xenstore_data(string session, string _vdi, Dictionary<string, string> _xenstore_data)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_xenstore_data", new JArray(session, _vdi ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer)), serializer);
}
public void vdi_add_to_xenstore_data(string session, string _vdi, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.add_to_xenstore_data", new JArray(session, _vdi ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vdi_remove_from_xenstore_data(string session, string _vdi, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.remove_from_xenstore_data", new JArray(session, _vdi ?? "", _key ?? ""), serializer);
}
public void vdi_set_sm_config(string session, string _vdi, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_sm_config", new JArray(session, _vdi ?? "", _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public void vdi_add_to_sm_config(string session, string _vdi, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.add_to_sm_config", new JArray(session, _vdi ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vdi_remove_from_sm_config(string session, string _vdi, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.remove_from_sm_config", new JArray(session, _vdi ?? "", _key ?? ""), serializer);
}
public void vdi_set_tags(string session, string _vdi, string[] _tags)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_tags", new JArray(session, _vdi ?? "", _tags == null ? new JArray() : JArray.FromObject(_tags)), serializer);
}
public void vdi_add_tags(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.add_tags", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public void vdi_remove_tags(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.remove_tags", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public XenRef<VDI> vdi_snapshot(string session, string _vdi, Dictionary<string, string> _driver_params)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.snapshot", new JArray(session, _vdi ?? "", _driver_params == null ? new JObject() : JObject.FromObject(_driver_params, serializer)), serializer);
}
public XenRef<Task> async_vdi_snapshot(string session, string _vdi, Dictionary<string, string> _driver_params)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.snapshot", new JArray(session, _vdi ?? "", _driver_params == null ? new JObject() : JObject.FromObject(_driver_params, serializer)), serializer);
}
public XenRef<VDI> vdi_clone(string session, string _vdi, Dictionary<string, string> _driver_params)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.clone", new JArray(session, _vdi ?? "", _driver_params == null ? new JObject() : JObject.FromObject(_driver_params, serializer)), serializer);
}
public XenRef<Task> async_vdi_clone(string session, string _vdi, Dictionary<string, string> _driver_params)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.clone", new JArray(session, _vdi ?? "", _driver_params == null ? new JObject() : JObject.FromObject(_driver_params, serializer)), serializer);
}
public void vdi_resize(string session, string _vdi, long _size)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.resize", new JArray(session, _vdi ?? "", _size), serializer);
}
public XenRef<Task> async_vdi_resize(string session, string _vdi, long _size)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.resize", new JArray(session, _vdi ?? "", _size), serializer);
}
public void vdi_resize_online(string session, string _vdi, long _size)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.resize_online", new JArray(session, _vdi ?? "", _size), serializer);
}
public XenRef<Task> async_vdi_resize_online(string session, string _vdi, long _size)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.resize_online", new JArray(session, _vdi ?? "", _size), serializer);
}
public XenRef<VDI> vdi_introduce(string session, string _uuid, string _name_label, string _name_description, string _sr, vdi_type _type, bool _sharable, bool _read_only, Dictionary<string, string> _other_config, string _location, Dictionary<string, string> _xenstore_data, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new XenRefConverter<SR>(), new vdi_typeConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _sr ?? "", _type.StringOf(), _sharable, _read_only, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _location ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer), _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<Task> async_vdi_introduce(string session, string _uuid, string _name_label, string _name_description, string _sr, vdi_type _type, bool _sharable, bool _read_only, Dictionary<string, string> _other_config, string _location, Dictionary<string, string> _xenstore_data, Dictionary<string, string> _sm_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>(), new vdi_typeConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _sr ?? "", _type.StringOf(), _sharable, _read_only, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _location ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer), _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer)), serializer);
}
public XenRef<VDI> vdi_introduce(string session, string _uuid, string _name_label, string _name_description, string _sr, vdi_type _type, bool _sharable, bool _read_only, Dictionary<string, string> _other_config, string _location, Dictionary<string, string> _xenstore_data, Dictionary<string, string> _sm_config, bool _managed, long _virtual_size, long _physical_utilisation, string _metadata_of_pool, bool _is_a_snapshot, DateTime _snapshot_time, string _snapshot_of)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new XenRefConverter<SR>(), new vdi_typeConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new XenRefConverter<Pool>(), new XenDateTimeConverter(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _sr ?? "", _type.StringOf(), _sharable, _read_only, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _location ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer), _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer), _managed, _virtual_size, _physical_utilisation, _metadata_of_pool ?? "", _is_a_snapshot, _snapshot_time, _snapshot_of ?? ""), serializer);
}
public XenRef<Task> async_vdi_introduce(string session, string _uuid, string _name_label, string _name_description, string _sr, vdi_type _type, bool _sharable, bool _read_only, Dictionary<string, string> _other_config, string _location, Dictionary<string, string> _xenstore_data, Dictionary<string, string> _sm_config, bool _managed, long _virtual_size, long _physical_utilisation, string _metadata_of_pool, bool _is_a_snapshot, DateTime _snapshot_time, string _snapshot_of)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>(), new vdi_typeConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new StringStringMapConverter(), new XenRefConverter<Pool>(), new XenDateTimeConverter(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.introduce", new JArray(session, _uuid ?? "", _name_label ?? "", _name_description ?? "", _sr ?? "", _type.StringOf(), _sharable, _read_only, _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _location ?? "", _xenstore_data == null ? new JObject() : JObject.FromObject(_xenstore_data, serializer), _sm_config == null ? new JObject() : JObject.FromObject(_sm_config, serializer), _managed, _virtual_size, _physical_utilisation, _metadata_of_pool ?? "", _is_a_snapshot, _snapshot_time, _snapshot_of ?? ""), serializer);
}
public void vdi_update(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.update", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_update(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.update", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<VDI> vdi_copy(string session, string _vdi, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.copy", new JArray(session, _vdi ?? "", _sr ?? ""), serializer);
}
public XenRef<Task> async_vdi_copy(string session, string _vdi, string _sr)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.copy", new JArray(session, _vdi ?? "", _sr ?? ""), serializer);
}
public XenRef<VDI> vdi_copy(string session, string _vdi, string _sr, string _base_vdi, string _into_vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new XenRefConverter<SR>(), new XenRefConverter<VDI>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.copy", new JArray(session, _vdi ?? "", _sr ?? "", _base_vdi ?? "", _into_vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_copy(string session, string _vdi, string _sr, string _base_vdi, string _into_vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>(), new XenRefConverter<VDI>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.copy", new JArray(session, _vdi ?? "", _sr ?? "", _base_vdi ?? "", _into_vdi ?? ""), serializer);
}
public void vdi_forget(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.forget", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_forget(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.forget", new JArray(session, _vdi ?? ""), serializer);
}
public void vdi_set_sharable(string session, string _vdi, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_sharable", new JArray(session, _vdi ?? "", _value), serializer);
}
public void vdi_set_read_only(string session, string _vdi, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_read_only", new JArray(session, _vdi ?? "", _value), serializer);
}
public void vdi_set_name_label(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_name_label", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vdi_set_name_label(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.set_name_label", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public void vdi_set_name_description(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_name_description", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_vdi_set_name_description(string session, string _vdi, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.set_name_description", new JArray(session, _vdi ?? "", _value ?? ""), serializer);
}
public void vdi_set_on_boot(string session, string _vdi, on_boot _value)
{
var converters = new List<JsonConverter> {new on_bootConverter()};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_on_boot", new JArray(session, _vdi ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_vdi_set_on_boot(string session, string _vdi, on_boot _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new on_bootConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.set_on_boot", new JArray(session, _vdi ?? "", _value.StringOf()), serializer);
}
public void vdi_set_allow_caching(string session, string _vdi, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.set_allow_caching", new JArray(session, _vdi ?? "", _value), serializer);
}
public XenRef<Task> async_vdi_set_allow_caching(string session, string _vdi, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.set_allow_caching", new JArray(session, _vdi ?? "", _value), serializer);
}
public XenRef<Session> vdi_open_database(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Session>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Session>>("VDI.open_database", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_open_database(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.open_database", new JArray(session, _vdi ?? ""), serializer);
}
public string vdi_read_database_pool_uuid(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.read_database_pool_uuid", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_read_database_pool_uuid(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.read_database_pool_uuid", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<VDI> vdi_pool_migrate(string session, string _vdi, string _sr, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>(), new XenRefConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VDI.pool_migrate", new JArray(session, _vdi ?? "", _sr ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public XenRef<Task> async_vdi_pool_migrate(string session, string _vdi, string _sr, Dictionary<string, string> _options)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<SR>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.pool_migrate", new JArray(session, _vdi ?? "", _sr ?? "", _options == null ? new JObject() : JObject.FromObject(_options, serializer)), serializer);
}
public void vdi_enable_cbt(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.enable_cbt", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_enable_cbt(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.enable_cbt", new JArray(session, _vdi ?? ""), serializer);
}
public void vdi_disable_cbt(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.disable_cbt", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_disable_cbt(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.disable_cbt", new JArray(session, _vdi ?? ""), serializer);
}
public void vdi_data_destroy(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VDI.data_destroy", new JArray(session, _vdi ?? ""), serializer);
}
public XenRef<Task> async_vdi_data_destroy(string session, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.data_destroy", new JArray(session, _vdi ?? ""), serializer);
}
public string vdi_list_changed_blocks(string session, string _vdi, string _vdi_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<string>("VDI.list_changed_blocks", new JArray(session, _vdi ?? "", _vdi_to ?? ""), serializer);
}
public XenRef<Task> async_vdi_list_changed_blocks(string session, string _vdi, string _vdi_to)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VDI.list_changed_blocks", new JArray(session, _vdi ?? "", _vdi_to ?? ""), serializer);
}
public List<Vdi_nbd_server_info> vdi_get_nbd_info(string session, string _vdi)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<Vdi_nbd_server_info>>("VDI.get_nbd_info", new JArray(session, _vdi ?? ""), serializer);
}
public List<XenRef<VDI>> vdi_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VDI>>>("VDI.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VDI>, VDI> vdi_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VDI>, VDI>>("VDI.get_all_records", new JArray(session), serializer);
}
public VBD vbd_get_record(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VBD>("VBD.get_record", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<VBD> vbd_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VBD>>("VBD.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VBD> vbd_create(string session, VBD _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VBD>>("VBD.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vbd_create(string session, VBD _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vbd_destroy(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.destroy", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_destroy(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.destroy", new JArray(session, _vbd ?? ""), serializer);
}
public string vbd_get_uuid(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD.get_uuid", new JArray(session, _vbd ?? ""), serializer);
}
public List<vbd_operations> vbd_get_allowed_operations(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vbd_operations>>("VBD.get_allowed_operations", new JArray(session, _vbd ?? ""), serializer);
}
public Dictionary<string, vbd_operations> vbd_get_current_operations(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vbd_operations>>("VBD.get_current_operations", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<VM> vbd_get_vm(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VBD.get_VM", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<VDI> vbd_get_vdi(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("VBD.get_VDI", new JArray(session, _vbd ?? ""), serializer);
}
public string vbd_get_device(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD.get_device", new JArray(session, _vbd ?? ""), serializer);
}
public string vbd_get_userdevice(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD.get_userdevice", new JArray(session, _vbd ?? ""), serializer);
}
public bool vbd_get_bootable(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VBD.get_bootable", new JArray(session, _vbd ?? ""), serializer);
}
public vbd_mode vbd_get_mode(string session, string _vbd)
{
var converters = new List<JsonConverter> {new vbd_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vbd_mode>("VBD.get_mode", new JArray(session, _vbd ?? ""), serializer);
}
public vbd_type vbd_get_type(string session, string _vbd)
{
var converters = new List<JsonConverter> {new vbd_typeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vbd_type>("VBD.get_type", new JArray(session, _vbd ?? ""), serializer);
}
public bool vbd_get_unpluggable(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VBD.get_unpluggable", new JArray(session, _vbd ?? ""), serializer);
}
public bool vbd_get_storage_lock(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VBD.get_storage_lock", new JArray(session, _vbd ?? ""), serializer);
}
public bool vbd_get_empty(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VBD.get_empty", new JArray(session, _vbd ?? ""), serializer);
}
public Dictionary<string, string> vbd_get_other_config(string session, string _vbd)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VBD.get_other_config", new JArray(session, _vbd ?? ""), serializer);
}
public bool vbd_get_currently_attached(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VBD.get_currently_attached", new JArray(session, _vbd ?? ""), serializer);
}
public long vbd_get_status_code(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VBD.get_status_code", new JArray(session, _vbd ?? ""), serializer);
}
public string vbd_get_status_detail(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD.get_status_detail", new JArray(session, _vbd ?? ""), serializer);
}
public Dictionary<string, string> vbd_get_runtime_properties(string session, string _vbd)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VBD.get_runtime_properties", new JArray(session, _vbd ?? ""), serializer);
}
public string vbd_get_qos_algorithm_type(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD.get_qos_algorithm_type", new JArray(session, _vbd ?? ""), serializer);
}
public Dictionary<string, string> vbd_get_qos_algorithm_params(string session, string _vbd)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VBD.get_qos_algorithm_params", new JArray(session, _vbd ?? ""), serializer);
}
public string[] vbd_get_qos_supported_algorithms(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("VBD.get_qos_supported_algorithms", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<VBD_metrics> vbd_get_metrics(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<VBD_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VBD_metrics>>("VBD.get_metrics", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_set_userdevice(string session, string _vbd, string _userdevice)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_userdevice", new JArray(session, _vbd ?? "", _userdevice ?? ""), serializer);
}
public void vbd_set_bootable(string session, string _vbd, bool _bootable)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_bootable", new JArray(session, _vbd ?? "", _bootable), serializer);
}
public void vbd_set_type(string session, string _vbd, vbd_type _type)
{
var converters = new List<JsonConverter> {new vbd_typeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_type", new JArray(session, _vbd ?? "", _type.StringOf()), serializer);
}
public void vbd_set_unpluggable(string session, string _vbd, bool _unpluggable)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_unpluggable", new JArray(session, _vbd ?? "", _unpluggable), serializer);
}
public void vbd_set_other_config(string session, string _vbd, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_other_config", new JArray(session, _vbd ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vbd_add_to_other_config(string session, string _vbd, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.add_to_other_config", new JArray(session, _vbd ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vbd_remove_from_other_config(string session, string _vbd, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.remove_from_other_config", new JArray(session, _vbd ?? "", _key ?? ""), serializer);
}
public void vbd_set_qos_algorithm_type(string session, string _vbd, string _algorithm_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_qos_algorithm_type", new JArray(session, _vbd ?? "", _algorithm_type ?? ""), serializer);
}
public void vbd_set_qos_algorithm_params(string session, string _vbd, Dictionary<string, string> _algorithm_params)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_qos_algorithm_params", new JArray(session, _vbd ?? "", _algorithm_params == null ? new JObject() : JObject.FromObject(_algorithm_params, serializer)), serializer);
}
public void vbd_add_to_qos_algorithm_params(string session, string _vbd, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.add_to_qos_algorithm_params", new JArray(session, _vbd ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vbd_remove_from_qos_algorithm_params(string session, string _vbd, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.remove_from_qos_algorithm_params", new JArray(session, _vbd ?? "", _key ?? ""), serializer);
}
public void vbd_eject(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.eject", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_eject(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.eject", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_insert(string session, string _vbd, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
Rpc("VBD.insert", new JArray(session, _vbd ?? "", _vdi ?? ""), serializer);
}
public XenRef<Task> async_vbd_insert(string session, string _vbd, string _vdi)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.insert", new JArray(session, _vbd ?? "", _vdi ?? ""), serializer);
}
public void vbd_plug(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.plug", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_plug(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.plug", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_unplug(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.unplug", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_unplug(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.unplug", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_unplug_force(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.unplug_force", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_unplug_force(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.unplug_force", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_assert_attachable(string session, string _vbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD.assert_attachable", new JArray(session, _vbd ?? ""), serializer);
}
public XenRef<Task> async_vbd_assert_attachable(string session, string _vbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.assert_attachable", new JArray(session, _vbd ?? ""), serializer);
}
public void vbd_set_mode(string session, string _vbd, vbd_mode _value)
{
var converters = new List<JsonConverter> {new vbd_modeConverter()};
var serializer = CreateSerializer(converters);
Rpc("VBD.set_mode", new JArray(session, _vbd ?? "", _value.StringOf()), serializer);
}
public XenRef<Task> async_vbd_set_mode(string session, string _vbd, vbd_mode _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new vbd_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VBD.set_mode", new JArray(session, _vbd ?? "", _value.StringOf()), serializer);
}
public List<XenRef<VBD>> vbd_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VBD>>>("VBD.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VBD>, VBD> vbd_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VBD>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VBD>, VBD>>("VBD.get_all_records", new JArray(session), serializer);
}
public VBD_metrics vbd_metrics_get_record(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VBD_metrics>("VBD_metrics.get_record", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public XenRef<VBD_metrics> vbd_metrics_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VBD_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VBD_metrics>>("VBD_metrics.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vbd_metrics_get_uuid(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VBD_metrics.get_uuid", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public double vbd_metrics_get_io_read_kbs(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VBD_metrics.get_io_read_kbs", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public double vbd_metrics_get_io_write_kbs(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("VBD_metrics.get_io_write_kbs", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public DateTime vbd_metrics_get_last_updated(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("VBD_metrics.get_last_updated", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public Dictionary<string, string> vbd_metrics_get_other_config(string session, string _vbd_metrics)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VBD_metrics.get_other_config", new JArray(session, _vbd_metrics ?? ""), serializer);
}
public void vbd_metrics_set_other_config(string session, string _vbd_metrics, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VBD_metrics.set_other_config", new JArray(session, _vbd_metrics ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vbd_metrics_add_to_other_config(string session, string _vbd_metrics, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD_metrics.add_to_other_config", new JArray(session, _vbd_metrics ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vbd_metrics_remove_from_other_config(string session, string _vbd_metrics, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VBD_metrics.remove_from_other_config", new JArray(session, _vbd_metrics ?? "", _key ?? ""), serializer);
}
public List<XenRef<VBD_metrics>> vbd_metrics_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VBD_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VBD_metrics>>>("VBD_metrics.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VBD_metrics>, VBD_metrics> vbd_metrics_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VBD_metrics>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VBD_metrics>, VBD_metrics>>("VBD_metrics.get_all_records", new JArray(session), serializer);
}
public PBD pbd_get_record(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PBD>("PBD.get_record", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<PBD> pbd_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PBD>>("PBD.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<PBD> pbd_create(string session, PBD _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PBD>>("PBD.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_pbd_create(string session, PBD _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PBD.create", new JArray(session, _record.ToJObject()), serializer);
}
public void pbd_destroy(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PBD.destroy", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<Task> async_pbd_destroy(string session, string _pbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PBD.destroy", new JArray(session, _pbd ?? ""), serializer);
}
public string pbd_get_uuid(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PBD.get_uuid", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<Host> pbd_get_host(string session, string _pbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PBD.get_host", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<SR> pbd_get_sr(string session, string _pbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("PBD.get_SR", new JArray(session, _pbd ?? ""), serializer);
}
public Dictionary<string, string> pbd_get_device_config(string session, string _pbd)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PBD.get_device_config", new JArray(session, _pbd ?? ""), serializer);
}
public bool pbd_get_currently_attached(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PBD.get_currently_attached", new JArray(session, _pbd ?? ""), serializer);
}
public Dictionary<string, string> pbd_get_other_config(string session, string _pbd)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PBD.get_other_config", new JArray(session, _pbd ?? ""), serializer);
}
public void pbd_set_other_config(string session, string _pbd, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PBD.set_other_config", new JArray(session, _pbd ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pbd_add_to_other_config(string session, string _pbd, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PBD.add_to_other_config", new JArray(session, _pbd ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pbd_remove_from_other_config(string session, string _pbd, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PBD.remove_from_other_config", new JArray(session, _pbd ?? "", _key ?? ""), serializer);
}
public void pbd_plug(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PBD.plug", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<Task> async_pbd_plug(string session, string _pbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PBD.plug", new JArray(session, _pbd ?? ""), serializer);
}
public void pbd_unplug(string session, string _pbd)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PBD.unplug", new JArray(session, _pbd ?? ""), serializer);
}
public XenRef<Task> async_pbd_unplug(string session, string _pbd)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PBD.unplug", new JArray(session, _pbd ?? ""), serializer);
}
public void pbd_set_device_config(string session, string _pbd, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PBD.set_device_config", new JArray(session, _pbd ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public XenRef<Task> async_pbd_set_device_config(string session, string _pbd, Dictionary<string, string> _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PBD.set_device_config", new JArray(session, _pbd ?? "", _value == null ? new JObject() : JObject.FromObject(_value, serializer)), serializer);
}
public List<XenRef<PBD>> pbd_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PBD>>>("PBD.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PBD>, PBD> pbd_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PBD>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PBD>, PBD>>("PBD.get_all_records", new JArray(session), serializer);
}
public Crashdump crashdump_get_record(string session, string _crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Crashdump>("crashdump.get_record", new JArray(session, _crashdump ?? ""), serializer);
}
public XenRef<Crashdump> crashdump_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Crashdump>>("crashdump.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string crashdump_get_uuid(string session, string _crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("crashdump.get_uuid", new JArray(session, _crashdump ?? ""), serializer);
}
public XenRef<VM> crashdump_get_vm(string session, string _crashdump)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("crashdump.get_VM", new JArray(session, _crashdump ?? ""), serializer);
}
public XenRef<VDI> crashdump_get_vdi(string session, string _crashdump)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("crashdump.get_VDI", new JArray(session, _crashdump ?? ""), serializer);
}
public Dictionary<string, string> crashdump_get_other_config(string session, string _crashdump)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("crashdump.get_other_config", new JArray(session, _crashdump ?? ""), serializer);
}
public void crashdump_set_other_config(string session, string _crashdump, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("crashdump.set_other_config", new JArray(session, _crashdump ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void crashdump_add_to_other_config(string session, string _crashdump, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("crashdump.add_to_other_config", new JArray(session, _crashdump ?? "", _key ?? "", _value ?? ""), serializer);
}
public void crashdump_remove_from_other_config(string session, string _crashdump, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("crashdump.remove_from_other_config", new JArray(session, _crashdump ?? "", _key ?? ""), serializer);
}
public void crashdump_destroy(string session, string _crashdump)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("crashdump.destroy", new JArray(session, _crashdump ?? ""), serializer);
}
public XenRef<Task> async_crashdump_destroy(string session, string _crashdump)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.crashdump.destroy", new JArray(session, _crashdump ?? ""), serializer);
}
public List<XenRef<Crashdump>> crashdump_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Crashdump>>>("crashdump.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Crashdump>, Crashdump> crashdump_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Crashdump>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Crashdump>, Crashdump>>("crashdump.get_all_records", new JArray(session), serializer);
}
public VTPM vtpm_get_record(string session, string _vtpm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VTPM>("VTPM.get_record", new JArray(session, _vtpm ?? ""), serializer);
}
public XenRef<VTPM> vtpm_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VTPM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VTPM>>("VTPM.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<VTPM> vtpm_create(string session, VTPM _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<VTPM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VTPM>>("VTPM.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_vtpm_create(string session, VTPM _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VTPM.create", new JArray(session, _record.ToJObject()), serializer);
}
public void vtpm_destroy(string session, string _vtpm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VTPM.destroy", new JArray(session, _vtpm ?? ""), serializer);
}
public XenRef<Task> async_vtpm_destroy(string session, string _vtpm)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VTPM.destroy", new JArray(session, _vtpm ?? ""), serializer);
}
public string vtpm_get_uuid(string session, string _vtpm)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VTPM.get_uuid", new JArray(session, _vtpm ?? ""), serializer);
}
public XenRef<VM> vtpm_get_vm(string session, string _vtpm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VTPM.get_VM", new JArray(session, _vtpm ?? ""), serializer);
}
public XenRef<VM> vtpm_get_backend(string session, string _vtpm)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VTPM.get_backend", new JArray(session, _vtpm ?? ""), serializer);
}
public Dictionary<XenRef<VTPM>, VTPM> vtpm_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VTPM>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VTPM>, VTPM>>("VTPM.get_all_records", new JArray(session), serializer);
}
public Console console_get_record(string session, string _console)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Console>("console.get_record", new JArray(session, _console ?? ""), serializer);
}
public XenRef<Console> console_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Console>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Console>>("console.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<Console> console_create(string session, Console _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Console>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Console>>("console.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_console_create(string session, Console _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.console.create", new JArray(session, _record.ToJObject()), serializer);
}
public void console_destroy(string session, string _console)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("console.destroy", new JArray(session, _console ?? ""), serializer);
}
public XenRef<Task> async_console_destroy(string session, string _console)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.console.destroy", new JArray(session, _console ?? ""), serializer);
}
public string console_get_uuid(string session, string _console)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("console.get_uuid", new JArray(session, _console ?? ""), serializer);
}
public console_protocol console_get_protocol(string session, string _console)
{
var converters = new List<JsonConverter> {new console_protocolConverter()};
var serializer = CreateSerializer(converters);
return Rpc<console_protocol>("console.get_protocol", new JArray(session, _console ?? ""), serializer);
}
public string console_get_location(string session, string _console)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("console.get_location", new JArray(session, _console ?? ""), serializer);
}
public XenRef<VM> console_get_vm(string session, string _console)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("console.get_VM", new JArray(session, _console ?? ""), serializer);
}
public Dictionary<string, string> console_get_other_config(string session, string _console)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("console.get_other_config", new JArray(session, _console ?? ""), serializer);
}
public void console_set_other_config(string session, string _console, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("console.set_other_config", new JArray(session, _console ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void console_add_to_other_config(string session, string _console, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("console.add_to_other_config", new JArray(session, _console ?? "", _key ?? "", _value ?? ""), serializer);
}
public void console_remove_from_other_config(string session, string _console, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("console.remove_from_other_config", new JArray(session, _console ?? "", _key ?? ""), serializer);
}
public List<XenRef<Console>> console_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Console>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Console>>>("console.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Console>, Console> console_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Console>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Console>, Console>>("console.get_all_records", new JArray(session), serializer);
}
public User user_get_record(string session, string _user)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<User>("user.get_record", new JArray(session, _user ?? ""), serializer);
}
public XenRef<User> user_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<User>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<User>>("user.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<User> user_create(string session, User _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<User>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<User>>("user.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_user_create(string session, User _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.user.create", new JArray(session, _record.ToJObject()), serializer);
}
public void user_destroy(string session, string _user)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("user.destroy", new JArray(session, _user ?? ""), serializer);
}
public XenRef<Task> async_user_destroy(string session, string _user)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.user.destroy", new JArray(session, _user ?? ""), serializer);
}
public string user_get_uuid(string session, string _user)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("user.get_uuid", new JArray(session, _user ?? ""), serializer);
}
public string user_get_short_name(string session, string _user)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("user.get_short_name", new JArray(session, _user ?? ""), serializer);
}
public string user_get_fullname(string session, string _user)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("user.get_fullname", new JArray(session, _user ?? ""), serializer);
}
public Dictionary<string, string> user_get_other_config(string session, string _user)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("user.get_other_config", new JArray(session, _user ?? ""), serializer);
}
public void user_set_fullname(string session, string _user, string _fullname)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("user.set_fullname", new JArray(session, _user ?? "", _fullname ?? ""), serializer);
}
public void user_set_other_config(string session, string _user, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("user.set_other_config", new JArray(session, _user ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void user_add_to_other_config(string session, string _user, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("user.add_to_other_config", new JArray(session, _user ?? "", _key ?? "", _value ?? ""), serializer);
}
public void user_remove_from_other_config(string session, string _user, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("user.remove_from_other_config", new JArray(session, _user ?? "", _key ?? ""), serializer);
}
public Dictionary<XenRef<User>, User> user_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<User>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<User>, User>>("user.get_all_records", new JArray(session), serializer);
}
public Dictionary<XenRef<Data_source>, Data_source> data_source_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Data_source>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Data_source>, Data_source>>("data_source.get_all_records", new JArray(session), serializer);
}
public Blob blob_get_record(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Blob>("blob.get_record", new JArray(session, _blob ?? ""), serializer);
}
public XenRef<Blob> blob_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("blob.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Blob>> blob_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Blob>>>("blob.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string blob_get_uuid(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("blob.get_uuid", new JArray(session, _blob ?? ""), serializer);
}
public string blob_get_name_label(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("blob.get_name_label", new JArray(session, _blob ?? ""), serializer);
}
public string blob_get_name_description(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("blob.get_name_description", new JArray(session, _blob ?? ""), serializer);
}
public long blob_get_size(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("blob.get_size", new JArray(session, _blob ?? ""), serializer);
}
public bool blob_get_public(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("blob.get_public", new JArray(session, _blob ?? ""), serializer);
}
public DateTime blob_get_last_updated(string session, string _blob)
{
var converters = new List<JsonConverter> {new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<DateTime>("blob.get_last_updated", new JArray(session, _blob ?? ""), serializer);
}
public string blob_get_mime_type(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("blob.get_mime_type", new JArray(session, _blob ?? ""), serializer);
}
public void blob_set_name_label(string session, string _blob, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("blob.set_name_label", new JArray(session, _blob ?? "", _label ?? ""), serializer);
}
public void blob_set_name_description(string session, string _blob, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("blob.set_name_description", new JArray(session, _blob ?? "", _description ?? ""), serializer);
}
public void blob_set_public(string session, string _blob, bool _public)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("blob.set_public", new JArray(session, _blob ?? "", _public), serializer);
}
public XenRef<Blob> blob_create(string session, string _mime_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("blob.create", new JArray(session, _mime_type ?? ""), serializer);
}
public XenRef<Blob> blob_create(string session, string _mime_type, bool _public)
{
var converters = new List<JsonConverter> {new XenRefConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Blob>>("blob.create", new JArray(session, _mime_type ?? "", _public), serializer);
}
public void blob_destroy(string session, string _blob)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("blob.destroy", new JArray(session, _blob ?? ""), serializer);
}
public List<XenRef<Blob>> blob_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Blob>>>("blob.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Blob>, Blob> blob_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Blob>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Blob>, Blob>>("blob.get_all_records", new JArray(session), serializer);
}
public XenRef<Message> message_create(string session, string _name, long _priority, cls _cls, string _obj_uuid, string _body)
{
var converters = new List<JsonConverter> {new XenRefConverter<Message>(), new clsConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Message>>("message.create", new JArray(session, _name ?? "", _priority, _cls.StringOf(), _obj_uuid ?? "", _body ?? ""), serializer);
}
public void message_destroy(string session, string _message)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("message.destroy", new JArray(session, _message ?? ""), serializer);
}
public Dictionary<XenRef<Message>, Message> message_get(string session, cls _cls, string _obj_uuid, DateTime _since)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Message>(), new clsConverter(), new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Message>, Message>>("message.get", new JArray(session, _cls.StringOf(), _obj_uuid ?? "", _since), serializer);
}
public List<XenRef<Message>> message_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Message>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Message>>>("message.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Message>, Message> message_get_since(string session, DateTime _since)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Message>(), new XenDateTimeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Message>, Message>>("message.get_since", new JArray(session, _since), serializer);
}
public Message message_get_record(string session, string _message)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Message>("message.get_record", new JArray(session, _message ?? ""), serializer);
}
public XenRef<Message> message_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Message>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Message>>("message.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public Dictionary<XenRef<Message>, Message> message_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Message>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Message>, Message>>("message.get_all_records", new JArray(session), serializer);
}
public Dictionary<XenRef<Message>, Message> message_get_all_records_where(string session, string _expr)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Message>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Message>, Message>>("message.get_all_records_where", new JArray(session, _expr ?? ""), serializer);
}
public Secret secret_get_record(string session, string _secret)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Secret>("secret.get_record", new JArray(session, _secret ?? ""), serializer);
}
public XenRef<Secret> secret_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Secret>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Secret>>("secret.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<Secret> secret_create(string session, Secret _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Secret>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Secret>>("secret.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_secret_create(string session, Secret _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.secret.create", new JArray(session, _record.ToJObject()), serializer);
}
public void secret_destroy(string session, string _secret)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("secret.destroy", new JArray(session, _secret ?? ""), serializer);
}
public XenRef<Task> async_secret_destroy(string session, string _secret)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.secret.destroy", new JArray(session, _secret ?? ""), serializer);
}
public string secret_get_uuid(string session, string _secret)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("secret.get_uuid", new JArray(session, _secret ?? ""), serializer);
}
public string secret_get_value(string session, string _secret)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("secret.get_value", new JArray(session, _secret ?? ""), serializer);
}
public Dictionary<string, string> secret_get_other_config(string session, string _secret)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("secret.get_other_config", new JArray(session, _secret ?? ""), serializer);
}
public void secret_set_value(string session, string _secret, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("secret.set_value", new JArray(session, _secret ?? "", _value ?? ""), serializer);
}
public void secret_set_other_config(string session, string _secret, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("secret.set_other_config", new JArray(session, _secret ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void secret_add_to_other_config(string session, string _secret, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("secret.add_to_other_config", new JArray(session, _secret ?? "", _key ?? "", _value ?? ""), serializer);
}
public void secret_remove_from_other_config(string session, string _secret, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("secret.remove_from_other_config", new JArray(session, _secret ?? "", _key ?? ""), serializer);
}
public List<XenRef<Secret>> secret_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Secret>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Secret>>>("secret.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Secret>, Secret> secret_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Secret>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Secret>, Secret>>("secret.get_all_records", new JArray(session), serializer);
}
public Tunnel tunnel_get_record(string session, string _tunnel)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Tunnel>("tunnel.get_record", new JArray(session, _tunnel ?? ""), serializer);
}
public XenRef<Tunnel> tunnel_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Tunnel>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Tunnel>>("tunnel.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string tunnel_get_uuid(string session, string _tunnel)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("tunnel.get_uuid", new JArray(session, _tunnel ?? ""), serializer);
}
public XenRef<PIF> tunnel_get_access_pif(string session, string _tunnel)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("tunnel.get_access_PIF", new JArray(session, _tunnel ?? ""), serializer);
}
public XenRef<PIF> tunnel_get_transport_pif(string session, string _tunnel)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("tunnel.get_transport_PIF", new JArray(session, _tunnel ?? ""), serializer);
}
public Dictionary<string, string> tunnel_get_status(string session, string _tunnel)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("tunnel.get_status", new JArray(session, _tunnel ?? ""), serializer);
}
public Dictionary<string, string> tunnel_get_other_config(string session, string _tunnel)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("tunnel.get_other_config", new JArray(session, _tunnel ?? ""), serializer);
}
public void tunnel_set_status(string session, string _tunnel, Dictionary<string, string> _status)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("tunnel.set_status", new JArray(session, _tunnel ?? "", _status == null ? new JObject() : JObject.FromObject(_status, serializer)), serializer);
}
public void tunnel_add_to_status(string session, string _tunnel, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("tunnel.add_to_status", new JArray(session, _tunnel ?? "", _key ?? "", _value ?? ""), serializer);
}
public void tunnel_remove_from_status(string session, string _tunnel, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("tunnel.remove_from_status", new JArray(session, _tunnel ?? "", _key ?? ""), serializer);
}
public void tunnel_set_other_config(string session, string _tunnel, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("tunnel.set_other_config", new JArray(session, _tunnel ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void tunnel_add_to_other_config(string session, string _tunnel, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("tunnel.add_to_other_config", new JArray(session, _tunnel ?? "", _key ?? "", _value ?? ""), serializer);
}
public void tunnel_remove_from_other_config(string session, string _tunnel, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("tunnel.remove_from_other_config", new JArray(session, _tunnel ?? "", _key ?? ""), serializer);
}
public XenRef<Tunnel> tunnel_create(string session, string _transport_pif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Tunnel>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Tunnel>>("tunnel.create", new JArray(session, _transport_pif ?? "", _network ?? ""), serializer);
}
public XenRef<Task> async_tunnel_create(string session, string _transport_pif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.tunnel.create", new JArray(session, _transport_pif ?? "", _network ?? ""), serializer);
}
public void tunnel_destroy(string session, string _tunnel)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("tunnel.destroy", new JArray(session, _tunnel ?? ""), serializer);
}
public XenRef<Task> async_tunnel_destroy(string session, string _tunnel)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.tunnel.destroy", new JArray(session, _tunnel ?? ""), serializer);
}
public List<XenRef<Tunnel>> tunnel_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Tunnel>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Tunnel>>>("tunnel.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Tunnel>, Tunnel> tunnel_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Tunnel>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Tunnel>, Tunnel>>("tunnel.get_all_records", new JArray(session), serializer);
}
public Network_sriov network_sriov_get_record(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Network_sriov>("network_sriov.get_record", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<Network_sriov> network_sriov_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network_sriov>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network_sriov>>("network_sriov.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string network_sriov_get_uuid(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("network_sriov.get_uuid", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<PIF> network_sriov_get_physical_pif(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("network_sriov.get_physical_PIF", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<PIF> network_sriov_get_logical_pif(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("network_sriov.get_logical_PIF", new JArray(session, _network_sriov ?? ""), serializer);
}
public bool network_sriov_get_requires_reboot(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("network_sriov.get_requires_reboot", new JArray(session, _network_sriov ?? ""), serializer);
}
public sriov_configuration_mode network_sriov_get_configuration_mode(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {new sriov_configuration_modeConverter()};
var serializer = CreateSerializer(converters);
return Rpc<sriov_configuration_mode>("network_sriov.get_configuration_mode", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<Network_sriov> network_sriov_create(string session, string _pif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network_sriov>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network_sriov>>("network_sriov.create", new JArray(session, _pif ?? "", _network ?? ""), serializer);
}
public XenRef<Task> async_network_sriov_create(string session, string _pif, string _network)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network_sriov.create", new JArray(session, _pif ?? "", _network ?? ""), serializer);
}
public void network_sriov_destroy(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("network_sriov.destroy", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<Task> async_network_sriov_destroy(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network_sriov.destroy", new JArray(session, _network_sriov ?? ""), serializer);
}
public long network_sriov_get_remaining_capacity(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("network_sriov.get_remaining_capacity", new JArray(session, _network_sriov ?? ""), serializer);
}
public XenRef<Task> async_network_sriov_get_remaining_capacity(string session, string _network_sriov)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.network_sriov.get_remaining_capacity", new JArray(session, _network_sriov ?? ""), serializer);
}
public List<XenRef<Network_sriov>> network_sriov_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Network_sriov>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Network_sriov>>>("network_sriov.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Network_sriov>, Network_sriov> network_sriov_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Network_sriov>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Network_sriov>, Network_sriov>>("network_sriov.get_all_records", new JArray(session), serializer);
}
public PCI pci_get_record(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PCI>("PCI.get_record", new JArray(session, _pci ?? ""), serializer);
}
public XenRef<PCI> pci_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PCI>>("PCI.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pci_get_uuid(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_uuid", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_class_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_class_name", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_vendor_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_vendor_name", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_device_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_device_name", new JArray(session, _pci ?? ""), serializer);
}
public XenRef<Host> pci_get_host(string session, string _pci)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PCI.get_host", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_pci_id(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_pci_id", new JArray(session, _pci ?? ""), serializer);
}
public List<XenRef<PCI>> pci_get_dependencies(string session, string _pci)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PCI>>>("PCI.get_dependencies", new JArray(session, _pci ?? ""), serializer);
}
public Dictionary<string, string> pci_get_other_config(string session, string _pci)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PCI.get_other_config", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_subsystem_vendor_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_subsystem_vendor_name", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_subsystem_device_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_subsystem_device_name", new JArray(session, _pci ?? ""), serializer);
}
public string pci_get_driver_name(string session, string _pci)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PCI.get_driver_name", new JArray(session, _pci ?? ""), serializer);
}
public void pci_set_other_config(string session, string _pci, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PCI.set_other_config", new JArray(session, _pci ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pci_add_to_other_config(string session, string _pci, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PCI.add_to_other_config", new JArray(session, _pci ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pci_remove_from_other_config(string session, string _pci, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PCI.remove_from_other_config", new JArray(session, _pci ?? "", _key ?? ""), serializer);
}
public List<XenRef<PCI>> pci_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PCI>>>("PCI.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PCI>, PCI> pci_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PCI>, PCI>>("PCI.get_all_records", new JArray(session), serializer);
}
public PGPU pgpu_get_record(string session, string _pgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PGPU>("PGPU.get_record", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<PGPU> pgpu_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PGPU>>("PGPU.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pgpu_get_uuid(string session, string _pgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PGPU.get_uuid", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<PCI> pgpu_get_pci(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PCI>>("PGPU.get_PCI", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<GPU_group> pgpu_get_gpu_group(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<GPU_group>>("PGPU.get_GPU_group", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<Host> pgpu_get_host(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PGPU.get_host", new JArray(session, _pgpu ?? ""), serializer);
}
public Dictionary<string, string> pgpu_get_other_config(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PGPU.get_other_config", new JArray(session, _pgpu ?? ""), serializer);
}
public List<XenRef<VGPU_type>> pgpu_get_supported_vgpu_types(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("PGPU.get_supported_VGPU_types", new JArray(session, _pgpu ?? ""), serializer);
}
public List<XenRef<VGPU_type>> pgpu_get_enabled_vgpu_types(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("PGPU.get_enabled_VGPU_types", new JArray(session, _pgpu ?? ""), serializer);
}
public List<XenRef<VGPU>> pgpu_get_resident_vgpus(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU>>>("PGPU.get_resident_VGPUs", new JArray(session, _pgpu ?? ""), serializer);
}
public Dictionary<XenRef<VGPU_type>, long> pgpu_get_supported_vgpu_max_capacities(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefLongMapConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VGPU_type>, long>>("PGPU.get_supported_VGPU_max_capacities", new JArray(session, _pgpu ?? ""), serializer);
}
public pgpu_dom0_access pgpu_get_dom0_access(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new pgpu_dom0_accessConverter()};
var serializer = CreateSerializer(converters);
return Rpc<pgpu_dom0_access>("PGPU.get_dom0_access", new JArray(session, _pgpu ?? ""), serializer);
}
public bool pgpu_get_is_system_display_device(string session, string _pgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PGPU.get_is_system_display_device", new JArray(session, _pgpu ?? ""), serializer);
}
public Dictionary<string, string> pgpu_get_compatibility_metadata(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PGPU.get_compatibility_metadata", new JArray(session, _pgpu ?? ""), serializer);
}
public void pgpu_set_other_config(string session, string _pgpu, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PGPU.set_other_config", new JArray(session, _pgpu ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pgpu_add_to_other_config(string session, string _pgpu, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PGPU.add_to_other_config", new JArray(session, _pgpu ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pgpu_remove_from_other_config(string session, string _pgpu, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PGPU.remove_from_other_config", new JArray(session, _pgpu ?? "", _key ?? ""), serializer);
}
public void pgpu_add_enabled_vgpu_types(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
Rpc("PGPU.add_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pgpu_add_enabled_vgpu_types(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.add_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public void pgpu_remove_enabled_vgpu_types(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
Rpc("PGPU.remove_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pgpu_remove_enabled_vgpu_types(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.remove_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public void pgpu_set_enabled_vgpu_types(string session, string _pgpu, List<XenRef<VGPU_type>> _value)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
Rpc("PGPU.set_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value == null ? new JArray() : JArray.FromObject(_value, serializer)), serializer);
}
public XenRef<Task> async_pgpu_set_enabled_vgpu_types(string session, string _pgpu, List<XenRef<VGPU_type>> _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.set_enabled_VGPU_types", new JArray(session, _pgpu ?? "", _value == null ? new JArray() : JArray.FromObject(_value, serializer)), serializer);
}
public void pgpu_set_gpu_group(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
Rpc("PGPU.set_GPU_group", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pgpu_set_gpu_group(string session, string _pgpu, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.set_GPU_group", new JArray(session, _pgpu ?? "", _value ?? ""), serializer);
}
public long pgpu_get_remaining_capacity(string session, string _pgpu, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<long>("PGPU.get_remaining_capacity", new JArray(session, _pgpu ?? "", _vgpu_type ?? ""), serializer);
}
public XenRef<Task> async_pgpu_get_remaining_capacity(string session, string _pgpu, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.get_remaining_capacity", new JArray(session, _pgpu ?? "", _vgpu_type ?? ""), serializer);
}
public pgpu_dom0_access pgpu_enable_dom0_access(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new pgpu_dom0_accessConverter()};
var serializer = CreateSerializer(converters);
return Rpc<pgpu_dom0_access>("PGPU.enable_dom0_access", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<Task> async_pgpu_enable_dom0_access(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.enable_dom0_access", new JArray(session, _pgpu ?? ""), serializer);
}
public pgpu_dom0_access pgpu_disable_dom0_access(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new pgpu_dom0_accessConverter()};
var serializer = CreateSerializer(converters);
return Rpc<pgpu_dom0_access>("PGPU.disable_dom0_access", new JArray(session, _pgpu ?? ""), serializer);
}
public XenRef<Task> async_pgpu_disable_dom0_access(string session, string _pgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PGPU.disable_dom0_access", new JArray(session, _pgpu ?? ""), serializer);
}
public List<XenRef<PGPU>> pgpu_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PGPU>>>("PGPU.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PGPU>, PGPU> pgpu_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PGPU>, PGPU>>("PGPU.get_all_records", new JArray(session), serializer);
}
public GPU_group gpu_group_get_record(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<GPU_group>("GPU_group.get_record", new JArray(session, _gpu_group ?? ""), serializer);
}
public XenRef<GPU_group> gpu_group_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<GPU_group>>("GPU_group.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<GPU_group>> gpu_group_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<GPU_group>>>("GPU_group.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string gpu_group_get_uuid(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("GPU_group.get_uuid", new JArray(session, _gpu_group ?? ""), serializer);
}
public string gpu_group_get_name_label(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("GPU_group.get_name_label", new JArray(session, _gpu_group ?? ""), serializer);
}
public string gpu_group_get_name_description(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("GPU_group.get_name_description", new JArray(session, _gpu_group ?? ""), serializer);
}
public List<XenRef<PGPU>> gpu_group_get_pgpus(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PGPU>>>("GPU_group.get_PGPUs", new JArray(session, _gpu_group ?? ""), serializer);
}
public List<XenRef<VGPU>> gpu_group_get_vgpus(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU>>>("GPU_group.get_VGPUs", new JArray(session, _gpu_group ?? ""), serializer);
}
public string[] gpu_group_get_gpu_types(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("GPU_group.get_GPU_types", new JArray(session, _gpu_group ?? ""), serializer);
}
public Dictionary<string, string> gpu_group_get_other_config(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("GPU_group.get_other_config", new JArray(session, _gpu_group ?? ""), serializer);
}
public allocation_algorithm gpu_group_get_allocation_algorithm(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new allocation_algorithmConverter()};
var serializer = CreateSerializer(converters);
return Rpc<allocation_algorithm>("GPU_group.get_allocation_algorithm", new JArray(session, _gpu_group ?? ""), serializer);
}
public List<XenRef<VGPU_type>> gpu_group_get_supported_vgpu_types(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("GPU_group.get_supported_VGPU_types", new JArray(session, _gpu_group ?? ""), serializer);
}
public List<XenRef<VGPU_type>> gpu_group_get_enabled_vgpu_types(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("GPU_group.get_enabled_VGPU_types", new JArray(session, _gpu_group ?? ""), serializer);
}
public void gpu_group_set_name_label(string session, string _gpu_group, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.set_name_label", new JArray(session, _gpu_group ?? "", _label ?? ""), serializer);
}
public void gpu_group_set_name_description(string session, string _gpu_group, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.set_name_description", new JArray(session, _gpu_group ?? "", _description ?? ""), serializer);
}
public void gpu_group_set_other_config(string session, string _gpu_group, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.set_other_config", new JArray(session, _gpu_group ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void gpu_group_add_to_other_config(string session, string _gpu_group, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.add_to_other_config", new JArray(session, _gpu_group ?? "", _key ?? "", _value ?? ""), serializer);
}
public void gpu_group_remove_from_other_config(string session, string _gpu_group, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.remove_from_other_config", new JArray(session, _gpu_group ?? "", _key ?? ""), serializer);
}
public void gpu_group_set_allocation_algorithm(string session, string _gpu_group, allocation_algorithm _allocation_algorithm)
{
var converters = new List<JsonConverter> {new allocation_algorithmConverter()};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.set_allocation_algorithm", new JArray(session, _gpu_group ?? "", _allocation_algorithm.StringOf()), serializer);
}
public XenRef<GPU_group> gpu_group_create(string session, string _name_label, string _name_description, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<GPU_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<GPU_group>>("GPU_group.create", new JArray(session, _name_label ?? "", _name_description ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public XenRef<Task> async_gpu_group_create(string session, string _name_label, string _name_description, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.GPU_group.create", new JArray(session, _name_label ?? "", _name_description ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void gpu_group_destroy(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("GPU_group.destroy", new JArray(session, _gpu_group ?? ""), serializer);
}
public XenRef<Task> async_gpu_group_destroy(string session, string _gpu_group)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.GPU_group.destroy", new JArray(session, _gpu_group ?? ""), serializer);
}
public long gpu_group_get_remaining_capacity(string session, string _gpu_group, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<long>("GPU_group.get_remaining_capacity", new JArray(session, _gpu_group ?? "", _vgpu_type ?? ""), serializer);
}
public XenRef<Task> async_gpu_group_get_remaining_capacity(string session, string _gpu_group, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.GPU_group.get_remaining_capacity", new JArray(session, _gpu_group ?? "", _vgpu_type ?? ""), serializer);
}
public List<XenRef<GPU_group>> gpu_group_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<GPU_group>>>("GPU_group.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<GPU_group>, GPU_group> gpu_group_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<GPU_group>, GPU_group>>("GPU_group.get_all_records", new JArray(session), serializer);
}
public VGPU vgpu_get_record(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VGPU>("VGPU.get_record", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<VGPU> vgpu_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VGPU>>("VGPU.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vgpu_get_uuid(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU.get_uuid", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<VM> vgpu_get_vm(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VGPU.get_VM", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<GPU_group> vgpu_get_gpu_group(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<GPU_group>>("VGPU.get_GPU_group", new JArray(session, _vgpu ?? ""), serializer);
}
public string vgpu_get_device(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU.get_device", new JArray(session, _vgpu ?? ""), serializer);
}
public bool vgpu_get_currently_attached(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VGPU.get_currently_attached", new JArray(session, _vgpu ?? ""), serializer);
}
public Dictionary<string, string> vgpu_get_other_config(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VGPU.get_other_config", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<VGPU_type> vgpu_get_type(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VGPU_type>>("VGPU.get_type", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<PGPU> vgpu_get_resident_on(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PGPU>>("VGPU.get_resident_on", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<PGPU> vgpu_get_scheduled_to_be_resident_on(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PGPU>>("VGPU.get_scheduled_to_be_resident_on", new JArray(session, _vgpu ?? ""), serializer);
}
public Dictionary<string, string> vgpu_get_compatibility_metadata(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VGPU.get_compatibility_metadata", new JArray(session, _vgpu ?? ""), serializer);
}
public string vgpu_get_extra_args(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU.get_extra_args", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<PCI> vgpu_get_pci(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<PCI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PCI>>("VGPU.get_PCI", new JArray(session, _vgpu ?? ""), serializer);
}
public void vgpu_set_other_config(string session, string _vgpu, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VGPU.set_other_config", new JArray(session, _vgpu ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vgpu_add_to_other_config(string session, string _vgpu, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VGPU.add_to_other_config", new JArray(session, _vgpu ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vgpu_remove_from_other_config(string session, string _vgpu, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VGPU.remove_from_other_config", new JArray(session, _vgpu ?? "", _key ?? ""), serializer);
}
public void vgpu_set_extra_args(string session, string _vgpu, string _extra_args)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VGPU.set_extra_args", new JArray(session, _vgpu ?? "", _extra_args ?? ""), serializer);
}
public XenRef<VGPU> vgpu_create(string session, string _vm, string _gpu_group, string _device, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU>(), new XenRefConverter<VM>(), new XenRefConverter<GPU_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VGPU>>("VGPU.create", new JArray(session, _vm ?? "", _gpu_group ?? "", _device ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public XenRef<Task> async_vgpu_create(string session, string _vm, string _gpu_group, string _device, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VM>(), new XenRefConverter<GPU_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VGPU.create", new JArray(session, _vm ?? "", _gpu_group ?? "", _device ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public XenRef<VGPU> vgpu_create(string session, string _vm, string _gpu_group, string _device, Dictionary<string, string> _other_config, string _type)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU>(), new XenRefConverter<VM>(), new XenRefConverter<GPU_group>(), new StringStringMapConverter(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VGPU>>("VGPU.create", new JArray(session, _vm ?? "", _gpu_group ?? "", _device ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _type ?? ""), serializer);
}
public XenRef<Task> async_vgpu_create(string session, string _vm, string _gpu_group, string _device, Dictionary<string, string> _other_config, string _type)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VM>(), new XenRefConverter<GPU_group>(), new StringStringMapConverter(), new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VGPU.create", new JArray(session, _vm ?? "", _gpu_group ?? "", _device ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer), _type ?? ""), serializer);
}
public void vgpu_destroy(string session, string _vgpu)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VGPU.destroy", new JArray(session, _vgpu ?? ""), serializer);
}
public XenRef<Task> async_vgpu_destroy(string session, string _vgpu)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VGPU.destroy", new JArray(session, _vgpu ?? ""), serializer);
}
public List<XenRef<VGPU>> vgpu_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU>>>("VGPU.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VGPU>, VGPU> vgpu_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VGPU>, VGPU>>("VGPU.get_all_records", new JArray(session), serializer);
}
public VGPU_type vgpu_type_get_record(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VGPU_type>("VGPU_type.get_record", new JArray(session, _vgpu_type ?? ""), serializer);
}
public XenRef<VGPU_type> vgpu_type_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VGPU_type>>("VGPU_type.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vgpu_type_get_uuid(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU_type.get_uuid", new JArray(session, _vgpu_type ?? ""), serializer);
}
public string vgpu_type_get_vendor_name(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU_type.get_vendor_name", new JArray(session, _vgpu_type ?? ""), serializer);
}
public string vgpu_type_get_model_name(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU_type.get_model_name", new JArray(session, _vgpu_type ?? ""), serializer);
}
public long vgpu_type_get_framebuffer_size(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VGPU_type.get_framebuffer_size", new JArray(session, _vgpu_type ?? ""), serializer);
}
public long vgpu_type_get_max_heads(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VGPU_type.get_max_heads", new JArray(session, _vgpu_type ?? ""), serializer);
}
public long vgpu_type_get_max_resolution_x(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VGPU_type.get_max_resolution_x", new JArray(session, _vgpu_type ?? ""), serializer);
}
public long vgpu_type_get_max_resolution_y(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("VGPU_type.get_max_resolution_y", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<PGPU>> vgpu_type_get_supported_on_pgpus(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PGPU>>>("VGPU_type.get_supported_on_PGPUs", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<PGPU>> vgpu_type_get_enabled_on_pgpus(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PGPU>>>("VGPU_type.get_enabled_on_PGPUs", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<VGPU>> vgpu_type_get_vgpus(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU>>>("VGPU_type.get_VGPUs", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<GPU_group>> vgpu_type_get_supported_on_gpu_groups(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<GPU_group>>>("VGPU_type.get_supported_on_GPU_groups", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<GPU_group>> vgpu_type_get_enabled_on_gpu_groups(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<GPU_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<GPU_group>>>("VGPU_type.get_enabled_on_GPU_groups", new JArray(session, _vgpu_type ?? ""), serializer);
}
public vgpu_type_implementation vgpu_type_get_implementation(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new vgpu_type_implementationConverter()};
var serializer = CreateSerializer(converters);
return Rpc<vgpu_type_implementation>("VGPU_type.get_implementation", new JArray(session, _vgpu_type ?? ""), serializer);
}
public string vgpu_type_get_identifier(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VGPU_type.get_identifier", new JArray(session, _vgpu_type ?? ""), serializer);
}
public bool vgpu_type_get_experimental(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VGPU_type.get_experimental", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<VGPU_type>> vgpu_type_get_compatible_types_in_vm(string session, string _vgpu_type)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("VGPU_type.get_compatible_types_in_vm", new JArray(session, _vgpu_type ?? ""), serializer);
}
public List<XenRef<VGPU_type>> vgpu_type_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VGPU_type>>>("VGPU_type.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VGPU_type>, VGPU_type> vgpu_type_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VGPU_type>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VGPU_type>, VGPU_type>>("VGPU_type.get_all_records", new JArray(session), serializer);
}
public PVS_site pvs_site_get_record(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PVS_site>("PVS_site.get_record", new JArray(session, _pvs_site ?? ""), serializer);
}
public XenRef<PVS_site> pvs_site_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_site>>("PVS_site.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<PVS_site>> pvs_site_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_site>>>("PVS_site.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string pvs_site_get_uuid(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_site.get_uuid", new JArray(session, _pvs_site ?? ""), serializer);
}
public string pvs_site_get_name_label(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_site.get_name_label", new JArray(session, _pvs_site ?? ""), serializer);
}
public string pvs_site_get_name_description(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_site.get_name_description", new JArray(session, _pvs_site ?? ""), serializer);
}
public string pvs_site_get_pvs_uuid(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_site.get_PVS_uuid", new JArray(session, _pvs_site ?? ""), serializer);
}
public List<XenRef<PVS_cache_storage>> pvs_site_get_cache_storage(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_cache_storage>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_cache_storage>>>("PVS_site.get_cache_storage", new JArray(session, _pvs_site ?? ""), serializer);
}
public List<XenRef<PVS_server>> pvs_site_get_servers(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_server>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_server>>>("PVS_site.get_servers", new JArray(session, _pvs_site ?? ""), serializer);
}
public List<XenRef<PVS_proxy>> pvs_site_get_proxies(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_proxy>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_proxy>>>("PVS_site.get_proxies", new JArray(session, _pvs_site ?? ""), serializer);
}
public void pvs_site_set_name_label(string session, string _pvs_site, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_site.set_name_label", new JArray(session, _pvs_site ?? "", _label ?? ""), serializer);
}
public void pvs_site_set_name_description(string session, string _pvs_site, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_site.set_name_description", new JArray(session, _pvs_site ?? "", _description ?? ""), serializer);
}
public XenRef<PVS_site> pvs_site_introduce(string session, string _name_label, string _name_description, string _pvs_uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_site>>("PVS_site.introduce", new JArray(session, _name_label ?? "", _name_description ?? "", _pvs_uuid ?? ""), serializer);
}
public XenRef<Task> async_pvs_site_introduce(string session, string _name_label, string _name_description, string _pvs_uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_site.introduce", new JArray(session, _name_label ?? "", _name_description ?? "", _pvs_uuid ?? ""), serializer);
}
public void pvs_site_forget(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_site.forget", new JArray(session, _pvs_site ?? ""), serializer);
}
public XenRef<Task> async_pvs_site_forget(string session, string _pvs_site)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_site.forget", new JArray(session, _pvs_site ?? ""), serializer);
}
public void pvs_site_set_pvs_uuid(string session, string _pvs_site, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_site.set_PVS_uuid", new JArray(session, _pvs_site ?? "", _value ?? ""), serializer);
}
public XenRef<Task> async_pvs_site_set_pvs_uuid(string session, string _pvs_site, string _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_site.set_PVS_uuid", new JArray(session, _pvs_site ?? "", _value ?? ""), serializer);
}
public List<XenRef<PVS_site>> pvs_site_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_site>>>("PVS_site.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PVS_site>, PVS_site> pvs_site_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PVS_site>, PVS_site>>("PVS_site.get_all_records", new JArray(session), serializer);
}
public PVS_server pvs_server_get_record(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PVS_server>("PVS_server.get_record", new JArray(session, _pvs_server ?? ""), serializer);
}
public XenRef<PVS_server> pvs_server_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_server>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_server>>("PVS_server.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pvs_server_get_uuid(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_server.get_uuid", new JArray(session, _pvs_server ?? ""), serializer);
}
public string[] pvs_server_get_addresses(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("PVS_server.get_addresses", new JArray(session, _pvs_server ?? ""), serializer);
}
public long pvs_server_get_first_port(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PVS_server.get_first_port", new JArray(session, _pvs_server ?? ""), serializer);
}
public long pvs_server_get_last_port(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PVS_server.get_last_port", new JArray(session, _pvs_server ?? ""), serializer);
}
public XenRef<PVS_site> pvs_server_get_site(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_site>>("PVS_server.get_site", new JArray(session, _pvs_server ?? ""), serializer);
}
public XenRef<PVS_server> pvs_server_introduce(string session, string[] _addresses, long _first_port, long _last_port, string _site)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_server>(), new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_server>>("PVS_server.introduce", new JArray(session, _addresses == null ? new JArray() : JArray.FromObject(_addresses), _first_port, _last_port, _site ?? ""), serializer);
}
public XenRef<Task> async_pvs_server_introduce(string session, string[] _addresses, long _first_port, long _last_port, string _site)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_server.introduce", new JArray(session, _addresses == null ? new JArray() : JArray.FromObject(_addresses), _first_port, _last_port, _site ?? ""), serializer);
}
public void pvs_server_forget(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_server.forget", new JArray(session, _pvs_server ?? ""), serializer);
}
public XenRef<Task> async_pvs_server_forget(string session, string _pvs_server)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_server.forget", new JArray(session, _pvs_server ?? ""), serializer);
}
public List<XenRef<PVS_server>> pvs_server_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_server>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_server>>>("PVS_server.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PVS_server>, PVS_server> pvs_server_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PVS_server>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PVS_server>, PVS_server>>("PVS_server.get_all_records", new JArray(session), serializer);
}
public PVS_proxy pvs_proxy_get_record(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PVS_proxy>("PVS_proxy.get_record", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public XenRef<PVS_proxy> pvs_proxy_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_proxy>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_proxy>>("PVS_proxy.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pvs_proxy_get_uuid(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_proxy.get_uuid", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public XenRef<PVS_site> pvs_proxy_get_site(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_site>>("PVS_proxy.get_site", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public XenRef<VIF> pvs_proxy_get_vif(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {new XenRefConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VIF>>("PVS_proxy.get_VIF", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public bool pvs_proxy_get_currently_attached(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PVS_proxy.get_currently_attached", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public pvs_proxy_status pvs_proxy_get_status(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {new pvs_proxy_statusConverter()};
var serializer = CreateSerializer(converters);
return Rpc<pvs_proxy_status>("PVS_proxy.get_status", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public XenRef<PVS_proxy> pvs_proxy_create(string session, string _site, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_proxy>(), new XenRefConverter<PVS_site>(), new XenRefConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_proxy>>("PVS_proxy.create", new JArray(session, _site ?? "", _vif ?? ""), serializer);
}
public XenRef<Task> async_pvs_proxy_create(string session, string _site, string _vif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PVS_site>(), new XenRefConverter<VIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_proxy.create", new JArray(session, _site ?? "", _vif ?? ""), serializer);
}
public void pvs_proxy_destroy(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_proxy.destroy", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public XenRef<Task> async_pvs_proxy_destroy(string session, string _pvs_proxy)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_proxy.destroy", new JArray(session, _pvs_proxy ?? ""), serializer);
}
public List<XenRef<PVS_proxy>> pvs_proxy_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_proxy>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_proxy>>>("PVS_proxy.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PVS_proxy>, PVS_proxy> pvs_proxy_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PVS_proxy>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PVS_proxy>, PVS_proxy>>("PVS_proxy.get_all_records", new JArray(session), serializer);
}
public PVS_cache_storage pvs_cache_storage_get_record(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PVS_cache_storage>("PVS_cache_storage.get_record", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<PVS_cache_storage> pvs_cache_storage_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_cache_storage>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_cache_storage>>("PVS_cache_storage.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public XenRef<PVS_cache_storage> pvs_cache_storage_create(string session, PVS_cache_storage _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_cache_storage>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_cache_storage>>("PVS_cache_storage.create", new JArray(session, _record.ToJObject()), serializer);
}
public XenRef<Task> async_pvs_cache_storage_create(string session, PVS_cache_storage _record)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_cache_storage.create", new JArray(session, _record.ToJObject()), serializer);
}
public void pvs_cache_storage_destroy(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PVS_cache_storage.destroy", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<Task> async_pvs_cache_storage_destroy(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PVS_cache_storage.destroy", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public string pvs_cache_storage_get_uuid(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PVS_cache_storage.get_uuid", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<Host> pvs_cache_storage_get_host(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PVS_cache_storage.get_host", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<SR> pvs_cache_storage_get_sr(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {new XenRefConverter<SR>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SR>>("PVS_cache_storage.get_SR", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<PVS_site> pvs_cache_storage_get_site(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {new XenRefConverter<PVS_site>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PVS_site>>("PVS_cache_storage.get_site", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public long pvs_cache_storage_get_size(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("PVS_cache_storage.get_size", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public XenRef<VDI> pvs_cache_storage_get_vdi(string session, string _pvs_cache_storage)
{
var converters = new List<JsonConverter> {new XenRefConverter<VDI>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VDI>>("PVS_cache_storage.get_VDI", new JArray(session, _pvs_cache_storage ?? ""), serializer);
}
public List<XenRef<PVS_cache_storage>> pvs_cache_storage_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PVS_cache_storage>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PVS_cache_storage>>>("PVS_cache_storage.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PVS_cache_storage>, PVS_cache_storage> pvs_cache_storage_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PVS_cache_storage>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PVS_cache_storage>, PVS_cache_storage>>("PVS_cache_storage.get_all_records", new JArray(session), serializer);
}
public Feature feature_get_record(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Feature>("Feature.get_record", new JArray(session, _feature ?? ""), serializer);
}
public XenRef<Feature> feature_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Feature>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Feature>>("Feature.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<Feature>> feature_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Feature>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Feature>>>("Feature.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string feature_get_uuid(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Feature.get_uuid", new JArray(session, _feature ?? ""), serializer);
}
public string feature_get_name_label(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Feature.get_name_label", new JArray(session, _feature ?? ""), serializer);
}
public string feature_get_name_description(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Feature.get_name_description", new JArray(session, _feature ?? ""), serializer);
}
public bool feature_get_enabled(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Feature.get_enabled", new JArray(session, _feature ?? ""), serializer);
}
public bool feature_get_experimental(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Feature.get_experimental", new JArray(session, _feature ?? ""), serializer);
}
public string feature_get_version(string session, string _feature)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Feature.get_version", new JArray(session, _feature ?? ""), serializer);
}
public XenRef<Host> feature_get_host(string session, string _feature)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("Feature.get_host", new JArray(session, _feature ?? ""), serializer);
}
public List<XenRef<Feature>> feature_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Feature>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Feature>>>("Feature.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Feature>, Feature> feature_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Feature>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Feature>, Feature>>("Feature.get_all_records", new JArray(session), serializer);
}
public SDN_controller sdn_controller_get_record(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<SDN_controller>("SDN_controller.get_record", new JArray(session, _sdn_controller ?? ""), serializer);
}
public XenRef<SDN_controller> sdn_controller_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<SDN_controller>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SDN_controller>>("SDN_controller.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string sdn_controller_get_uuid(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SDN_controller.get_uuid", new JArray(session, _sdn_controller ?? ""), serializer);
}
public sdn_controller_protocol sdn_controller_get_protocol(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {new sdn_controller_protocolConverter()};
var serializer = CreateSerializer(converters);
return Rpc<sdn_controller_protocol>("SDN_controller.get_protocol", new JArray(session, _sdn_controller ?? ""), serializer);
}
public string sdn_controller_get_address(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("SDN_controller.get_address", new JArray(session, _sdn_controller ?? ""), serializer);
}
public long sdn_controller_get_port(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<long>("SDN_controller.get_port", new JArray(session, _sdn_controller ?? ""), serializer);
}
public XenRef<SDN_controller> sdn_controller_introduce(string session, sdn_controller_protocol _protocol, string _address, long _port)
{
var converters = new List<JsonConverter> {new XenRefConverter<SDN_controller>(), new sdn_controller_protocolConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<SDN_controller>>("SDN_controller.introduce", new JArray(session, _protocol.StringOf(), _address ?? "", _port), serializer);
}
public XenRef<Task> async_sdn_controller_introduce(string session, sdn_controller_protocol _protocol, string _address, long _port)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new sdn_controller_protocolConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SDN_controller.introduce", new JArray(session, _protocol.StringOf(), _address ?? "", _port), serializer);
}
public void sdn_controller_forget(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("SDN_controller.forget", new JArray(session, _sdn_controller ?? ""), serializer);
}
public XenRef<Task> async_sdn_controller_forget(string session, string _sdn_controller)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.SDN_controller.forget", new JArray(session, _sdn_controller ?? ""), serializer);
}
public List<XenRef<SDN_controller>> sdn_controller_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<SDN_controller>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<SDN_controller>>>("SDN_controller.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<SDN_controller>, SDN_controller> sdn_controller_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<SDN_controller>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<SDN_controller>, SDN_controller>>("SDN_controller.get_all_records", new JArray(session), serializer);
}
public Dictionary<XenRef<Vdi_nbd_server_info>, Vdi_nbd_server_info> vdi_nbd_server_info_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Vdi_nbd_server_info>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Vdi_nbd_server_info>, Vdi_nbd_server_info>>("vdi_nbd_server_info.get_all_records", new JArray(session), serializer);
}
public PUSB pusb_get_record(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<PUSB>("PUSB.get_record", new JArray(session, _pusb ?? ""), serializer);
}
public XenRef<PUSB> pusb_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<PUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PUSB>>("PUSB.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string pusb_get_uuid(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_uuid", new JArray(session, _pusb ?? ""), serializer);
}
public XenRef<USB_group> pusb_get_usb_group(string session, string _pusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<USB_group>>("PUSB.get_USB_group", new JArray(session, _pusb ?? ""), serializer);
}
public XenRef<Host> pusb_get_host(string session, string _pusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("PUSB.get_host", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_path(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_path", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_vendor_id(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_vendor_id", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_vendor_desc(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_vendor_desc", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_product_id(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_product_id", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_product_desc(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_product_desc", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_serial(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_serial", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_version(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_version", new JArray(session, _pusb ?? ""), serializer);
}
public string pusb_get_description(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("PUSB.get_description", new JArray(session, _pusb ?? ""), serializer);
}
public bool pusb_get_passthrough_enabled(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("PUSB.get_passthrough_enabled", new JArray(session, _pusb ?? ""), serializer);
}
public Dictionary<string, string> pusb_get_other_config(string session, string _pusb)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("PUSB.get_other_config", new JArray(session, _pusb ?? ""), serializer);
}
public double pusb_get_speed(string session, string _pusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("PUSB.get_speed", new JArray(session, _pusb ?? ""), serializer);
}
public void pusb_set_other_config(string session, string _pusb, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("PUSB.set_other_config", new JArray(session, _pusb ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void pusb_add_to_other_config(string session, string _pusb, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PUSB.add_to_other_config", new JArray(session, _pusb ?? "", _key ?? "", _value ?? ""), serializer);
}
public void pusb_remove_from_other_config(string session, string _pusb, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PUSB.remove_from_other_config", new JArray(session, _pusb ?? "", _key ?? ""), serializer);
}
public void pusb_scan(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
Rpc("PUSB.scan", new JArray(session, _host ?? ""), serializer);
}
public XenRef<Task> async_pusb_scan(string session, string _host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PUSB.scan", new JArray(session, _host ?? ""), serializer);
}
public void pusb_set_passthrough_enabled(string session, string _pusb, bool _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("PUSB.set_passthrough_enabled", new JArray(session, _pusb ?? "", _value), serializer);
}
public XenRef<Task> async_pusb_set_passthrough_enabled(string session, string _pusb, bool _value)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.PUSB.set_passthrough_enabled", new JArray(session, _pusb ?? "", _value), serializer);
}
public List<XenRef<PUSB>> pusb_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PUSB>>>("PUSB.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<PUSB>, PUSB> pusb_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<PUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<PUSB>, PUSB>>("PUSB.get_all_records", new JArray(session), serializer);
}
public USB_group usb_group_get_record(string session, string _usb_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<USB_group>("USB_group.get_record", new JArray(session, _usb_group ?? ""), serializer);
}
public XenRef<USB_group> usb_group_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<USB_group>>("USB_group.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public List<XenRef<USB_group>> usb_group_get_by_name_label(string session, string _label)
{
var converters = new List<JsonConverter> {new XenRefListConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<USB_group>>>("USB_group.get_by_name_label", new JArray(session, _label ?? ""), serializer);
}
public string usb_group_get_uuid(string session, string _usb_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("USB_group.get_uuid", new JArray(session, _usb_group ?? ""), serializer);
}
public string usb_group_get_name_label(string session, string _usb_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("USB_group.get_name_label", new JArray(session, _usb_group ?? ""), serializer);
}
public string usb_group_get_name_description(string session, string _usb_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("USB_group.get_name_description", new JArray(session, _usb_group ?? ""), serializer);
}
public List<XenRef<PUSB>> usb_group_get_pusbs(string session, string _usb_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<PUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<PUSB>>>("USB_group.get_PUSBs", new JArray(session, _usb_group ?? ""), serializer);
}
public List<XenRef<VUSB>> usb_group_get_vusbs(string session, string _usb_group)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VUSB>>>("USB_group.get_VUSBs", new JArray(session, _usb_group ?? ""), serializer);
}
public Dictionary<string, string> usb_group_get_other_config(string session, string _usb_group)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("USB_group.get_other_config", new JArray(session, _usb_group ?? ""), serializer);
}
public void usb_group_set_name_label(string session, string _usb_group, string _label)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("USB_group.set_name_label", new JArray(session, _usb_group ?? "", _label ?? ""), serializer);
}
public void usb_group_set_name_description(string session, string _usb_group, string _description)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("USB_group.set_name_description", new JArray(session, _usb_group ?? "", _description ?? ""), serializer);
}
public void usb_group_set_other_config(string session, string _usb_group, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("USB_group.set_other_config", new JArray(session, _usb_group ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void usb_group_add_to_other_config(string session, string _usb_group, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("USB_group.add_to_other_config", new JArray(session, _usb_group ?? "", _key ?? "", _value ?? ""), serializer);
}
public void usb_group_remove_from_other_config(string session, string _usb_group, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("USB_group.remove_from_other_config", new JArray(session, _usb_group ?? "", _key ?? ""), serializer);
}
public XenRef<USB_group> usb_group_create(string session, string _name_label, string _name_description, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<USB_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<USB_group>>("USB_group.create", new JArray(session, _name_label ?? "", _name_description ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public XenRef<Task> async_usb_group_create(string session, string _name_label, string _name_description, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.USB_group.create", new JArray(session, _name_label ?? "", _name_description ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void usb_group_destroy(string session, string _usb_group)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("USB_group.destroy", new JArray(session, _usb_group ?? ""), serializer);
}
public XenRef<Task> async_usb_group_destroy(string session, string _usb_group)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.USB_group.destroy", new JArray(session, _usb_group ?? ""), serializer);
}
public List<XenRef<USB_group>> usb_group_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<USB_group>>>("USB_group.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<USB_group>, USB_group> usb_group_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<USB_group>, USB_group>>("USB_group.get_all_records", new JArray(session), serializer);
}
public VUSB vusb_get_record(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<VUSB>("VUSB.get_record", new JArray(session, _vusb ?? ""), serializer);
}
public XenRef<VUSB> vusb_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<VUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VUSB>>("VUSB.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string vusb_get_uuid(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("VUSB.get_uuid", new JArray(session, _vusb ?? ""), serializer);
}
public List<vusb_operations> vusb_get_allowed_operations(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<vusb_operations>>("VUSB.get_allowed_operations", new JArray(session, _vusb ?? ""), serializer);
}
public Dictionary<string, vusb_operations> vusb_get_current_operations(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, vusb_operations>>("VUSB.get_current_operations", new JArray(session, _vusb ?? ""), serializer);
}
public XenRef<VM> vusb_get_vm(string session, string _vusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<VM>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VM>>("VUSB.get_VM", new JArray(session, _vusb ?? ""), serializer);
}
public XenRef<USB_group> vusb_get_usb_group(string session, string _vusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<USB_group>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<USB_group>>("VUSB.get_USB_group", new JArray(session, _vusb ?? ""), serializer);
}
public Dictionary<string, string> vusb_get_other_config(string session, string _vusb)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("VUSB.get_other_config", new JArray(session, _vusb ?? ""), serializer);
}
public bool vusb_get_currently_attached(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("VUSB.get_currently_attached", new JArray(session, _vusb ?? ""), serializer);
}
public void vusb_set_other_config(string session, string _vusb, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("VUSB.set_other_config", new JArray(session, _vusb ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vusb_add_to_other_config(string session, string _vusb, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VUSB.add_to_other_config", new JArray(session, _vusb ?? "", _key ?? "", _value ?? ""), serializer);
}
public void vusb_remove_from_other_config(string session, string _vusb, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VUSB.remove_from_other_config", new JArray(session, _vusb ?? "", _key ?? ""), serializer);
}
public XenRef<VUSB> vusb_create(string session, string _vm, string _usb_group, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<VUSB>(), new XenRefConverter<VM>(), new XenRefConverter<USB_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<VUSB>>("VUSB.create", new JArray(session, _vm ?? "", _usb_group ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public XenRef<Task> async_vusb_create(string session, string _vm, string _usb_group, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<VM>(), new XenRefConverter<USB_group>(), new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VUSB.create", new JArray(session, _vm ?? "", _usb_group ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void vusb_unplug(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VUSB.unplug", new JArray(session, _vusb ?? ""), serializer);
}
public XenRef<Task> async_vusb_unplug(string session, string _vusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VUSB.unplug", new JArray(session, _vusb ?? ""), serializer);
}
public void vusb_destroy(string session, string _vusb)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("VUSB.destroy", new JArray(session, _vusb ?? ""), serializer);
}
public XenRef<Task> async_vusb_destroy(string session, string _vusb)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.VUSB.destroy", new JArray(session, _vusb ?? ""), serializer);
}
public List<XenRef<VUSB>> vusb_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<VUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<VUSB>>>("VUSB.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<VUSB>, VUSB> vusb_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<VUSB>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<VUSB>, VUSB>>("VUSB.get_all_records", new JArray(session), serializer);
}
public Cluster cluster_get_record(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Cluster>("Cluster.get_record", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Cluster> cluster_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster>>("Cluster.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string cluster_get_uuid(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Cluster.get_uuid", new JArray(session, _cluster ?? ""), serializer);
}
public List<XenRef<Cluster_host>> cluster_get_cluster_hosts(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Cluster_host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Cluster_host>>>("Cluster.get_cluster_hosts", new JArray(session, _cluster ?? ""), serializer);
}
public string[] cluster_get_pending_forget(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string[]>("Cluster.get_pending_forget", new JArray(session, _cluster ?? ""), serializer);
}
public string cluster_get_cluster_token(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Cluster.get_cluster_token", new JArray(session, _cluster ?? ""), serializer);
}
public string cluster_get_cluster_stack(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Cluster.get_cluster_stack", new JArray(session, _cluster ?? ""), serializer);
}
public List<cluster_operation> cluster_get_allowed_operations(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<cluster_operation>>("Cluster.get_allowed_operations", new JArray(session, _cluster ?? ""), serializer);
}
public Dictionary<string, cluster_operation> cluster_get_current_operations(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, cluster_operation>>("Cluster.get_current_operations", new JArray(session, _cluster ?? ""), serializer);
}
public bool cluster_get_pool_auto_join(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Cluster.get_pool_auto_join", new JArray(session, _cluster ?? ""), serializer);
}
public double cluster_get_token_timeout(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("Cluster.get_token_timeout", new JArray(session, _cluster ?? ""), serializer);
}
public double cluster_get_token_timeout_coefficient(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<double>("Cluster.get_token_timeout_coefficient", new JArray(session, _cluster ?? ""), serializer);
}
public Dictionary<string, string> cluster_get_cluster_config(string session, string _cluster)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("Cluster.get_cluster_config", new JArray(session, _cluster ?? ""), serializer);
}
public Dictionary<string, string> cluster_get_other_config(string session, string _cluster)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("Cluster.get_other_config", new JArray(session, _cluster ?? ""), serializer);
}
public void cluster_set_other_config(string session, string _cluster, Dictionary<string, string> _other_config)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
Rpc("Cluster.set_other_config", new JArray(session, _cluster ?? "", _other_config == null ? new JObject() : JObject.FromObject(_other_config, serializer)), serializer);
}
public void cluster_add_to_other_config(string session, string _cluster, string _key, string _value)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.add_to_other_config", new JArray(session, _cluster ?? "", _key ?? "", _value ?? ""), serializer);
}
public void cluster_remove_from_other_config(string session, string _cluster, string _key)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.remove_from_other_config", new JArray(session, _cluster ?? "", _key ?? ""), serializer);
}
public XenRef<Cluster> cluster_create(string session, string _pif, string _cluster_stack, bool _pool_auto_join, double _token_timeout, double _token_timeout_coefficient)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster>(), new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster>>("Cluster.create", new JArray(session, _pif ?? "", _cluster_stack ?? "", _pool_auto_join, _token_timeout, _token_timeout_coefficient), serializer);
}
public XenRef<Task> async_cluster_create(string session, string _pif, string _cluster_stack, bool _pool_auto_join, double _token_timeout, double _token_timeout_coefficient)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.create", new JArray(session, _pif ?? "", _cluster_stack ?? "", _pool_auto_join, _token_timeout, _token_timeout_coefficient), serializer);
}
public void cluster_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.destroy", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Task> async_cluster_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.destroy", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Network> cluster_get_network(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Network>>("Cluster.get_network", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Task> async_cluster_get_network(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.get_network", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Cluster> cluster_pool_create(string session, string _network, string _cluster_stack, double _token_timeout, double _token_timeout_coefficient)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster>>("Cluster.pool_create", new JArray(session, _network ?? "", _cluster_stack ?? "", _token_timeout, _token_timeout_coefficient), serializer);
}
public XenRef<Task> async_cluster_pool_create(string session, string _network, string _cluster_stack, double _token_timeout, double _token_timeout_coefficient)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Network>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.pool_create", new JArray(session, _network ?? "", _cluster_stack ?? "", _token_timeout, _token_timeout_coefficient), serializer);
}
public void cluster_pool_force_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.pool_force_destroy", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Task> async_cluster_pool_force_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.pool_force_destroy", new JArray(session, _cluster ?? ""), serializer);
}
public void cluster_pool_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.pool_destroy", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Task> async_cluster_pool_destroy(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.pool_destroy", new JArray(session, _cluster ?? ""), serializer);
}
public void cluster_pool_resync(string session, string _cluster)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster.pool_resync", new JArray(session, _cluster ?? ""), serializer);
}
public XenRef<Task> async_cluster_pool_resync(string session, string _cluster)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster.pool_resync", new JArray(session, _cluster ?? ""), serializer);
}
public List<XenRef<Cluster>> cluster_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Cluster>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Cluster>>>("Cluster.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Cluster>, Cluster> cluster_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Cluster>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Cluster>, Cluster>>("Cluster.get_all_records", new JArray(session), serializer);
}
public Cluster_host cluster_host_get_record(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Cluster_host>("Cluster_host.get_record", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Cluster_host> cluster_host_get_by_uuid(string session, string _uuid)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster_host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster_host>>("Cluster_host.get_by_uuid", new JArray(session, _uuid ?? ""), serializer);
}
public string cluster_host_get_uuid(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<string>("Cluster_host.get_uuid", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Cluster> cluster_host_get_cluster(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster>>("Cluster_host.get_cluster", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Host> cluster_host_get_host(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Host>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Host>>("Cluster_host.get_host", new JArray(session, _cluster_host ?? ""), serializer);
}
public bool cluster_host_get_enabled(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Cluster_host.get_enabled", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<PIF> cluster_host_get_pif(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<PIF>>("Cluster_host.get_PIF", new JArray(session, _cluster_host ?? ""), serializer);
}
public bool cluster_host_get_joined(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<bool>("Cluster_host.get_joined", new JArray(session, _cluster_host ?? ""), serializer);
}
public List<cluster_host_operation> cluster_host_get_allowed_operations(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<List<cluster_host_operation>>("Cluster_host.get_allowed_operations", new JArray(session, _cluster_host ?? ""), serializer);
}
public Dictionary<string, cluster_host_operation> cluster_host_get_current_operations(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, cluster_host_operation>>("Cluster_host.get_current_operations", new JArray(session, _cluster_host ?? ""), serializer);
}
public Dictionary<string, string> cluster_host_get_other_config(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new StringStringMapConverter()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<string, string>>("Cluster_host.get_other_config", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Cluster_host> cluster_host_create(string session, string _cluster, string _host, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Cluster_host>(), new XenRefConverter<Cluster>(), new XenRefConverter<Host>(), new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Cluster_host>>("Cluster_host.create", new JArray(session, _cluster ?? "", _host ?? "", _pif ?? ""), serializer);
}
public XenRef<Task> async_cluster_host_create(string session, string _cluster, string _host, string _pif)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>(), new XenRefConverter<Cluster>(), new XenRefConverter<Host>(), new XenRefConverter<PIF>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster_host.create", new JArray(session, _cluster ?? "", _host ?? "", _pif ?? ""), serializer);
}
public void cluster_host_destroy(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster_host.destroy", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Task> async_cluster_host_destroy(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster_host.destroy", new JArray(session, _cluster_host ?? ""), serializer);
}
public void cluster_host_enable(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster_host.enable", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Task> async_cluster_host_enable(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster_host.enable", new JArray(session, _cluster_host ?? ""), serializer);
}
public void cluster_host_force_destroy(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster_host.force_destroy", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Task> async_cluster_host_force_destroy(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster_host.force_destroy", new JArray(session, _cluster_host ?? ""), serializer);
}
public void cluster_host_disable(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {};
var serializer = CreateSerializer(converters);
Rpc("Cluster_host.disable", new JArray(session, _cluster_host ?? ""), serializer);
}
public XenRef<Task> async_cluster_host_disable(string session, string _cluster_host)
{
var converters = new List<JsonConverter> {new XenRefConverter<Task>()};
var serializer = CreateSerializer(converters);
return Rpc<XenRef<Task>>("Async.Cluster_host.disable", new JArray(session, _cluster_host ?? ""), serializer);
}
public List<XenRef<Cluster_host>> cluster_host_get_all(string session)
{
var converters = new List<JsonConverter> {new XenRefListConverter<Cluster_host>()};
var serializer = CreateSerializer(converters);
return Rpc<List<XenRef<Cluster_host>>>("Cluster_host.get_all", new JArray(session), serializer);
}
public Dictionary<XenRef<Cluster_host>, Cluster_host> cluster_host_get_all_records(string session)
{
var converters = new List<JsonConverter> {new XenRefXenObjectMapConverter<Cluster_host>()};
var serializer = CreateSerializer(converters);
return Rpc<Dictionary<XenRef<Cluster_host>, Cluster_host>>("Cluster_host.get_all_records", new JArray(session), serializer);
}
}
}
| 54.223497 | 672 | 0.635806 | [
"BSD-2-Clause"
] | DigitEgal/xenadmin | XenModel/XenAPI/JsonRpcClient.cs | 784,614 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the connect-2017-08-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Connect.Model
{
/// <summary>
/// This is the response object from the GetMetricData operation.
/// </summary>
public partial class GetMetricDataResponse : AmazonWebServiceResponse
{
private List<HistoricalMetricResult> _metricResults = new List<HistoricalMetricResult>();
private string _nextToken;
/// <summary>
/// Gets and sets the property MetricResults.
/// <para>
/// Information about the historical metrics.
/// </para>
///
/// <para>
/// If no grouping is specified, a summary of metric data is returned.
/// </para>
/// </summary>
public List<HistoricalMetricResult> MetricResults
{
get { return this._metricResults; }
set { this._metricResults = value; }
}
// Check to see if MetricResults property is set
internal bool IsSetMetricResults()
{
return this._metricResults != null && this._metricResults.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there are additional results, this is the token for the next set of results.
/// </para>
///
/// <para>
/// The token expires after 5 minutes from the time it is created. Subsequent requests
/// that use the token must use the same request parameters as the request that generated
/// the token.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 31.872093 | 105 | 0.621671 | [
"Apache-2.0"
] | ChristopherButtars/aws-sdk-net | sdk/src/Services/Connect/Generated/Model/GetMetricDataResponse.cs | 2,741 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Azure.Storage.Blobs;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace testservice.Services
{
public class StorageService
{
private BlobServiceClient _client;
private ILogger<StorageService> _logger;
private BlobContainerClient _containerClient;
private const string _containerName = "testresults";
public StorageService(IConfiguration config, ILogger<StorageService> logger)
{
_client = new BlobServiceClient(config["BLOB_STORAGE_CONNECTION"]);
_logger = logger;
// We can afford calling create here, because this service has big lifetime
try
{
_client.CreateBlobContainer(_containerName);
}
catch (Azure.RequestFailedException)
{
// Ignore that container already exists
}
_containerClient = _client.GetBlobContainerClient(_containerName);
}
public async Task<byte[]> DownloadResultAsync(string blobName)
{
var blobClient = _containerClient.GetBlobClient(blobName);
return (await blobClient.DownloadContentAsync()).Value.Content.ToMemory().ToArray();
}
public string CreateName(string testId, string userEmail, string fileName)
{
if ((testId ?? "") == ""
|| (userEmail ?? "") == ""
|| (fileName ?? "") == "")
{
throw new ArgumentException("Missing argument");
}
return HttpUtility.UrlEncode(userEmail) + "/"
+ HttpUtility.UrlEncode(testId) + "/"
+ HttpUtility.UrlEncode(fileName);
}
public async Task UploadResultAsync(string blobName, byte[] data)
{
var blobClient = _containerClient.GetBlobClient(blobName);
await blobClient.UploadAsync(BinaryData.FromBytes(data), overwrite: true);
}
}
}
| 34.819672 | 96 | 0.613465 | [
"MIT"
] | cppseminar/APC | cppseminar/testservice/Services/StorageService.cs | 2,124 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.S3.Model
{
/// <summary>
/// Container for the parameters to the DeleteBucketPolicy operation.
/// <para>Deletes the policy from the bucket.</para>
/// </summary>
public partial class DeleteBucketPolicyRequest : AmazonWebServiceRequest
{
private string bucketName;
private string expectedBucketOwner;
/// <summary>
/// The bucket on which the policy is to be deleted.
/// </summary>
public string BucketName
{
get { return this.bucketName; }
set { this.bucketName = value; }
}
// Check to see if Bucket property is set
internal bool IsSetBucketName()
{
return this.bucketName != null;
}
/// <summary>
/// The account id of the expected bucket owner.
/// If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
/// </summary>
public string ExpectedBucketOwner
{
get { return this.expectedBucketOwner; }
set { this.expectedBucketOwner = value; }
}
/// <summary>
/// Checks to see if ExpectedBucketOwner is set.
/// </summary>
/// <returns>true, if ExpectedBucketOwner property is set.</returns>
internal bool IsSetExpectedBucketOwner()
{
return !String.IsNullOrEmpty(this.expectedBucketOwner);
}
}
}
| 31.055556 | 120 | 0.63864 | [
"Apache-2.0"
] | PureKrome/aws-sdk-net | sdk/src/Services/S3/Custom/Model/DeleteBucketPolicyRequest.cs | 2,236 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace CSharpExtensions.OpenSource
{
public static class StreamExtension
{
/// <summary>
/// Saves a stream to a local path.
/// </summary>
/// <param name="stream">The stream to save.</param>
/// <param name="filePath">The path to write into. If a file already exists there, it will be overwritten.</param>
public static void Save(this Stream stream, string filePath, bool seekToStart = false)
{
if (seekToStart)
{
stream.Seek(0, SeekOrigin.Begin);
}
// Define buffer and buffer size
int bufferSize = 1024;
byte[] buffer = new byte[bufferSize];
int bytesRead = 0;
// Read from response and write to file
FileStream fileStream = File.Create(filePath);
while ((bytesRead = stream.Read(buffer, 0, bufferSize)) != 0)
{
fileStream.Write(buffer, 0, bytesRead);
}
fileStream.Close();
}
public static string GetBase64SData(this MemoryStream? stream)
{
if (stream == null) return string.Empty;
stream.Seek(0, SeekOrigin.Begin);
return Convert.ToBase64String(stream.ToArray());
}
public static void DisposeNullable(this MemoryStream? stream)
{
if (stream == null) return;
stream.Dispose();
}
public static async Task<MemoryStream?> CopyToMemoryStream(this Stream? stream)
{
if (stream == null) { return null; }
var memStream = new MemoryStream();
await stream.CopyToAsync(memStream);
memStream.Seek(0, SeekOrigin.Begin);
return memStream;
}
public static async Task<string?> GetAllTextAsync(this Stream? stream)
{
if (stream == null) { return null; }
stream.Seek(0, SeekOrigin.Begin);
var reader = new StreamReader(stream);
var text = await reader.ReadToEndAsync();
return text;
}
public static async IAsyncEnumerable<string> StreamFileLineByLine(this StreamReader? stream)
{
if (stream == null) { yield break; }
string? readText;
while ((readText = await stream.ReadLineAsync()) != null)
{
yield return readText;
}
}
public static async IAsyncEnumerable<byte[]> StreamFileLineByLine2(this StreamReader? stream)
{
if (stream == null) { yield break; }
var bytes = new List<byte>();
int currentByte;
while ((currentByte = stream.Read()) != -1)
{
if (currentByte == '\n' || currentByte == '\r')
{
if (bytes.Count > 0) { yield return bytes.ToArray(); }
bytes.Clear();
continue;
}
bytes.Add((byte)currentByte);
}
if (bytes.Count > 0) { yield return bytes.ToArray(); }
await Task.CompletedTask;
}
public static IAsyncEnumerable<string> StreamFileLineByLineUsingRegex(this StreamReader? stream) => StreamFileByRegex(stream, new Regex(@"[\n\r]+"));
public static async IAsyncEnumerable<string> StreamFileByRegex(this StreamReader? stream, Regex regex, int bufferSize = 4096)
{
if (stream == null) { yield break; }
var sb = new StringBuilder();
var buffer = new char[bufferSize];
int currentPos;
while (!stream.EndOfStream)
{
currentPos = stream.Read(buffer, 0, bufferSize);
sb.Append(buffer, 0, currentPos);
var lines = regex.Split(sb.ToString());
for (int i = 0; i < lines.Length - 2; i++)
{
yield return lines[i];
}
sb = new StringBuilder(lines[lines.Length - 1]);
}
if (sb.Length > 0)
{
yield return sb.ToString();
}
await Task.CompletedTask;
}
public static async Task<Encoding?> GetEncodingByBom(this Stream stream)
{
using var reader = new StreamReader(stream);
var bom = new char[4];
await reader.ReadBlockAsync(bom, 0, 4);
Encoding? encodingFromBom = null;
// Analyze the BOM
if (bom[0] == 0x2b && bom[1] == 0x2f && bom[2] == 0x76) { encodingFromBom = Encoding.UTF7; }
else if (bom[0] == 0xef && bom[1] == 0xbb && bom[2] == 0xbf) { encodingFromBom = Encoding.UTF8; }
else if (bom[0] == 0xff && bom[1] == 0xfe && bom[2] == 0 && bom[3] == 0) { encodingFromBom = Encoding.UTF32; } //UTF-32LE
else if (bom[0] == 0xff && bom[1] == 0xfe) { encodingFromBom = Encoding.Unicode; } //UTF-16LE
else if (bom[0] == 0xfe && bom[1] == 0xff) { encodingFromBom = Encoding.BigEndianUnicode; } //UTF-16BE
else if (bom[0] == 0 && bom[1] == 0 && bom[2] == 0xfe && bom[3] == 0xff) { encodingFromBom = new UTF32Encoding(true, true); } //UTF-32BE
if (encodingFromBom != null)
{
encodingFromBom.DecoderFallback = DecoderFallback.ExceptionFallback;
encodingFromBom.EncoderFallback = EncoderFallback.ExceptionFallback;
}
return encodingFromBom;
}
}
}
| 40.524823 | 157 | 0.537802 | [
"BSD-3-Clause"
] | csharp-extensions/General | StreamExtensions.cs | 5,716 | C# |
namespace BLOBi.Core.Models
{
public sealed class BlobiConfigurationOptions
{
public BlobiConfigurationOptions(string connectionString)
{
ConnectionString = connectionString;
}
public BlobiConfigurationOptions(string accountKey, string accountName)
{
AccountKey = accountKey;
AccountName = accountName;
}
public BlobiConfigurationOptions(string accountKey, string accountName, string connectionString)
{
AccountKey = accountKey;
AccountName = accountName;
ConnectionString = connectionString;
}
public string AccountKey { get; }
public string AccountName { get; }
public string ConnectionString { get; }
}
}
| 26.433333 | 104 | 0.629256 | [
"MIT"
] | Cr3ature/BLOBi | src/BLOBi.Core/Models/BlobiConfigurationOptions.cs | 793 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace Light.Data.Sample
{
public class TeRelateMainConfig
{
#region "Data Property"
private int id;
/// <summary>
/// Id
/// </summary>
/// <value></value>
public int Id {
get {
return this.id;
}
set {
this.id = value;
}
}
private decimal decimalField;
/// <summary>
/// DecimalField
/// </summary>
/// <value></value>
public decimal DecimalField {
get {
return this.decimalField;
}
set {
this.decimalField = value;
}
}
private DateTime dateTimeField;
/// <summary>
/// DateTimeField
/// </summary>
/// <value></value>
public DateTime DateTimeField {
get {
return this.dateTimeField;
}
set {
this.dateTimeField = value;
}
}
private string varcharField;
/// <summary>
/// VarcharField
/// </summary>
/// <value></value>
public string VarcharField {
get {
return this.varcharField;
}
set {
this.varcharField = value;
}
}
#endregion
private TeRelateSubConfig subConfig;
public TeRelateSubConfig SubConfig {
get {
return this.subConfig;
}
set {
this.subConfig = value;
}
}
}
public class TeRelateSubConfig
{
#region "Data Property"
private int id;
/// <summary>
/// Id
/// </summary>
/// <value></value>
public int Id {
get {
return this.id;
}
set {
this.id = value;
}
}
private int mianId;
/// <summary>
/// SubId
/// </summary>
/// <value></value>
public int MainId {
get {
return this.mianId;
}
set {
this.mianId = value;
}
}
private decimal decimalField;
/// <summary>
/// DecimalField
/// </summary>
/// <value></value>
public decimal DecimalField {
get {
return this.decimalField;
}
set {
this.decimalField = value;
}
}
private DateTime dateTimeField;
/// <summary>
/// DateTimeField
/// </summary>
/// <value></value>
public DateTime DateTimeField {
get {
return this.dateTimeField;
}
set {
this.dateTimeField = value;
}
}
private string varcharField;
/// <summary>
/// VarcharField
/// </summary>
/// <value></value>
public string VarcharField {
get {
return this.varcharField;
}
set {
this.varcharField = value;
}
}
#endregion
}
public class TeRelateMainBaseConfig
{
#region "Data Property"
private int id;
/// <summary>
/// Id
/// </summary>
/// <value></value>
public int Id {
get {
return this.id;
}
set {
this.id = value;
}
}
private decimal decimalField;
/// <summary>
/// DecimalField
/// </summary>
/// <value></value>
public decimal DecimalField {
get {
return this.decimalField;
}
set {
this.decimalField = value;
}
}
private DateTime dateTimeField;
/// <summary>
/// DateTimeField
/// </summary>
/// <value></value>
public DateTime DateTimeField {
get {
return this.dateTimeField;
}
set {
this.dateTimeField = value;
}
}
private string varcharField;
/// <summary>
/// VarcharField
/// </summary>
/// <value></value>
public string VarcharField {
get {
return this.varcharField;
}
set {
this.varcharField = value;
}
}
#endregion
}
public class TeRelateMainExtendConfig : TeRelateMainBaseConfig
{
private TeRelateSubConfig subConfig;
public TeRelateSubConfig SubConfig {
get {
return this.subConfig;
}
set {
this.subConfig = value;
}
}
}
}
| 22.051724 | 66 | 0.409109 | [
"MIT"
] | aquilahkj/Light.Data2 | sample/Light.Data.Sample/BaseConfigRelate.cs | 5,118 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace LBE.Graphics
{
public abstract class Mesh
{
protected VertexBuffer m_vertexBuffer = null;
public VertexBuffer VertexBuffer
{
get { return m_vertexBuffer; }
}
protected IndexBuffer m_indexBuffer = null;
public IndexBuffer IndexBuffer
{
get { return m_indexBuffer; }
}
protected int m_primitiveCount = 0;
public int PrimitiveCount
{
get { return m_primitiveCount; }
}
protected int m_verticesCount = 0;
public int VerticesCount
{
get { return m_verticesCount; }
}
protected BoundingSphere m_boundingSphere;
public BoundingSphere BoundingSphere
{
get { return m_boundingSphere; }
set { m_boundingSphere = value; }
}
protected PrimitiveType m_primitiveType;
public PrimitiveType PrimitiveType
{
get { return m_primitiveType; }
set { m_primitiveType = value; }
}
}
}
| 24.235294 | 53 | 0.599515 | [
"MIT"
] | CollectifBlueprint/GoalRush | Project/02 - Engine/LittleBigEngine/Graphics/Mesh.cs | 1,238 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Game.Engine.Interactions.Built_In
{
//Princess strategy when you haven't met dragon yet
[Serializable]
class PrincessDefaultStrategy : IPrincessStrategy
{
public void Execute(GameSession parentSession, QuestInteraction quest)
{
parentSession.SendText("You can't meet Princess");
}
}
}
| 24.45 | 79 | 0.683027 | [
"MIT"
] | doworek/rpg-game | Engine/Interactions/Built-In/PrincessDefaultStrategy.cs | 491 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace Microsoft.eShopOnContainers.Services.AI.SalesForecasting.MLNet.API
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseContentRoot(Directory.GetCurrentDirectory())
.ConfigureAppConfiguration((builderContext, config) =>
{
config.AddEnvironmentVariables();
})
.ConfigureLogging((hostingContext, builder) =>
{
builder.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
builder.AddConsole();
builder.AddDebug();
})
.Build();
}
}
| 31.432432 | 97 | 0.601032 | [
"MIT"
] | balakrishnavalluri-gep/eShopOnContainersAI | src/Services/AI.SalesForecasting/AI.SalesForecasting.MLNet.API/Program.cs | 1,165 | C# |
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using Moq;
using RequestReduce.Configuration;
using RequestReduce.Reducer;
using RequestReduce.Utilities;
using nQuant;
using Xunit;
namespace RequestReduce.Facts.Integration
{
public class PngOptimizerFacts
{
[Fact]
public void CompressionWillMakeOriginalPngSmaller()
{
var config = new Mock<IRRConfiguration>();
config.Setup(x => x.ResourcePhysicalPath).Returns("testimages");
var optimizer = new PngOptimizer(new FileWrapper(), config.Object, new WuQuantizer());
var original = File.ReadAllBytes("testimages\\menu-sprite.png");
var result = optimizer.OptimizePng(original, 5, true);
Assert.True(result.Length < original.Length);
}
[Fact]
public void QuantizationWillMakeOriginalPngSmaller()
{
var config = new Mock<IRRConfiguration>();
var optimizer = new PngOptimizer(new FileWrapper(), config.Object, new WuQuantizer());
var original = File.ReadAllBytes("testimages\\menu-sprite.png");
var result = optimizer.OptimizePng(original, 0, false);
Assert.True(result.Length < original.Length);
}
[Fact]
public void WillCleanupScratchFile()
{
var config = new Mock<IRRConfiguration>();
config.Setup(x => x.ResourcePhysicalPath).Returns("testimages");
var optimizer = new PngOptimizer(new FileWrapper(), config.Object, new WuQuantizer());
var original = File.ReadAllBytes("testimages\\menu-sprite.png");
var fileCount = Directory.GetFiles("testimages").Length;
optimizer.OptimizePng(original, 5, true);
Assert.Equal(fileCount, Directory.GetFiles("testimages").Length);
}
[Fact]
public void WillNotAlterOriginalImage()
{
var config = new Mock<IRRConfiguration>();
config.Setup(x => x.ResourcePhysicalPath).Returns("testimages");
var optimizer = new PngOptimizer(new FileWrapper(), config.Object, new WuQuantizer());
var original = File.ReadAllBytes("testimages\\menu-sprite.png");
optimizer.OptimizePng(original, 5, false);
Assert.Equal(original.Length, File.ReadAllBytes("testimages\\menu-sprite.png").Length);
}
[Fact]
[Trait("type", "manual_adhoc")]
public void QuantTest()
{
var opt = new WuQuantizer();
var source = new Bitmap("c:\\requestreduce\\requestreduce.sampleweb\\vstest\\vstest.png");
var image = opt.QuantizeImage(source, 10, 70);
image.Dispose();
opt = new WuQuantizer();
var watch = new Stopwatch();
watch.Start();
image = opt.QuantizeImage(source, 10, 70);
var ms = watch.ElapsedMilliseconds;
image.Save("c:\\requestreduce\\requestreduce.sampleweb\\vstest\\vstest-quant2.png", ImageFormat.Png);
image.Dispose();
source.Dispose();
}
}
}
| 35.51087 | 114 | 0.600857 | [
"Apache-2.0"
] | bcanzanella/RequestReduce | RequestReduce.Facts.Integration/PngOptimizerFacts.cs | 3,269 | C# |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
//
//*********************************************************
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using Windows.UI.Xaml.Media;
using SDKTemplate;
using System;
using Windows.Storage.Pickers;
using Windows.UI.ViewManagement;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.Media;
namespace BasicMediaPlayback
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class Scenario2 : SDKTemplate.Common.LayoutAwarePage
{
// A pointer back to the main page. This is needed if you want to call methods in MainPage such
// as NotifyUser()
MainPage rootPage = MainPage.Current;
SystemMediaTransportControls systemMediaControls = null;
public Scenario2()
{
this.InitializeComponent();
}
/// <summary>
/// Invoked when this page is about to be displayed in a Frame.
/// </summary>
/// <param name="e">Event data that describes how this page was reached. The Parameter
/// property is typically used to configure the page.</param>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (rootPage.SystemMediaTransportControlsInitialized)
{
// PlayTo handling requires either no support for SystemMediaTransportControls or
// support for Play and Pause similar to background audio. If the SystemMediaTransportControls
// have been initialized in another scenario than we also need to hook them up here or PlayTo
// will fail.
systemMediaControls = SystemMediaTransportControls.GetForCurrentView();
systemMediaControls.ButtonPressed += SystemMediaControls_ButtonPressed;
systemMediaControls.IsPlayEnabled = true;
systemMediaControls.IsPauseEnabled = true;
systemMediaControls.IsStopEnabled = true;
Scenario2MediaElement.CurrentStateChanged += MediaElement_CurrentStateChanged;
}
}
/// <summary>
/// Invoked when this page is about to be removed from a Frame.
/// </summary>
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (systemMediaControls != null)
{
systemMediaControls.ButtonPressed -= SystemMediaControls_ButtonPressed;
systemMediaControls.IsPlayEnabled = false;
systemMediaControls.IsPauseEnabled = false;
systemMediaControls.IsStopEnabled = false;
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Closed;
systemMediaControls.DisplayUpdater.ClearAll();
systemMediaControls.DisplayUpdater.Update();
systemMediaControls = null;
}
// Set source to null to ensure it stops playing to a Play To device if applicable.
Scenario2MediaElement.Source = null;
}
/// <summary>
/// Click handler for the "Select a media file" button.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private async void OpenFileButton_Click(object sender, RoutedEventArgs e)
{
FileOpenPicker fileOpenPicker = new FileOpenPicker();
// Filter to include a sample subset of file types
fileOpenPicker.FileTypeFilter.Add(".wmv");
fileOpenPicker.FileTypeFilter.Add(".mp4");
fileOpenPicker.FileTypeFilter.Add(".mp3");
fileOpenPicker.FileTypeFilter.Add(".wma");
fileOpenPicker.SuggestedStartLocation = PickerLocationId.VideosLibrary;
// Prompt user to select a file
StorageFile file = await fileOpenPicker.PickSingleFileAsync();
// Ensure a file was selected
if (file != null)
{
if (systemMediaControls != null)
{
MediaPlaybackType mediaPlaybackType;
if ((file.FileType == ".mp4") || (file.FileType == ".wmv"))
{
mediaPlaybackType = MediaPlaybackType.Video;
}
else
{
mediaPlaybackType = MediaPlaybackType.Music;
}
// Inform the system transport controls of the media information
if (!(await systemMediaControls.DisplayUpdater.CopyFromFileAsync(mediaPlaybackType, file)))
{
// Problem extracting metadata- just clear everything
systemMediaControls.DisplayUpdater.ClearAll();
}
systemMediaControls.DisplayUpdater.Update();
}
// Open the selected file and set it as the MediaElement's source
IRandomAccessStream stream = await file.OpenAsync(FileAccessMode.Read);
Scenario2MediaElement.SetSource(stream, file.ContentType);
}
}
/// <summary>
/// Handler for the system transport controls button.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private async void SystemMediaControls_ButtonPressed(SystemMediaTransportControls sender, SystemMediaTransportControlsButtonPressedEventArgs e)
{
switch (e.Button)
{
case SystemMediaTransportControlsButton.Play:
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
Scenario2MediaElement.Play();
});
break;
case SystemMediaTransportControlsButton.Pause:
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
Scenario2MediaElement.Pause();
});
break;
case SystemMediaTransportControlsButton.Stop:
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
Scenario2MediaElement.Stop();
});
break;
default:
break;
}
}
/// <summary>
/// Handler for the media element state change
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void MediaElement_CurrentStateChanged(object sender, RoutedEventArgs e)
{
SystemMediaTransportControls systemMediaControls = SystemMediaTransportControls.GetForCurrentView();
switch (Scenario2MediaElement.CurrentState)
{
default:
case MediaElementState.Closed:
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Closed;
break;
case MediaElementState.Opening:
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Changing;
break;
case MediaElementState.Buffering:
case MediaElementState.Playing:
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Playing;
break;
case MediaElementState.Paused:
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Paused;
break;
case MediaElementState.Stopped:
systemMediaControls.PlaybackStatus = MediaPlaybackStatus.Stopped;
break;
}
}
}
}
| 40.375 | 151 | 0.571022 | [
"MIT"
] | Ranin26/msdn-code-gallery-microsoft | Official Windows Platform Sample/Windows 8.1 Store app samples/99866-Windows 8.1 Store app samples/XAML media playback sample/C#/Scenario2.xaml.cs | 8,075 | C# |
namespace WorkForce.Models.Employees
{
public abstract class Employee
{
private string name;
private int weeklyWorkHours;
protected Employee(string name, int weeklyWorkHours)
{
this.Name = name;
this.WeeklyWorkHours = weeklyWorkHours;
}
public string Name
{
get => this.name;
protected set => this.name = value;
}
public int WeeklyWorkHours
{
get => this.weeklyWorkHours;
protected set => this.weeklyWorkHours = value;
}
}
}
| 20.793103 | 60 | 0.542289 | [
"MIT"
] | Sleeya/C-Professional | Csharp-OOP-Advanced/ObjectAndCommunicationExercises/WorkForce/Models/Employees/Employee.cs | 605 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: IEntityCollectionRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Linq.Expressions;
/// <summary>
/// The interface IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest.
/// </summary>
public partial interface IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest : IBaseRequest
{
/// <summary>
/// Adds the specified AuthenticationContextClassReference to the collection via POST.
/// </summary>
/// <param name="authenticationContextClassReference">The AuthenticationContextClassReference to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created AuthenticationContextClassReference.</returns>
System.Threading.Tasks.Task<AuthenticationContextClassReference> AddAsync(AuthenticationContextClassReference authenticationContextClassReference, CancellationToken cancellationToken = default);
/// <summary>
/// Adds the specified AuthenticationContextClassReference to the collection via POST and returns a <see cref="GraphResponse{AuthenticationContextClassReference}"/> object of the request.
/// </summary>
/// <param name="authenticationContextClassReference">The AuthenticationContextClassReference to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{AuthenticationContextClassReference}"/> object of the request.</returns>
System.Threading.Tasks.Task<GraphResponse<AuthenticationContextClassReference>> AddResponseAsync(AuthenticationContextClassReference authenticationContextClassReference, CancellationToken cancellationToken = default);
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
System.Threading.Tasks.Task<IConditionalAccessRootAuthenticationContextClassReferencesCollectionPage> GetAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Gets the collection page and returns a <see cref="GraphResponse{ConditionalAccessRootAuthenticationContextClassReferencesCollectionResponse}"/> object.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{ConditionalAccessRootAuthenticationContextClassReferencesCollectionResponse}"/> object.</returns>
System.Threading.Tasks.Task<GraphResponse<ConditionalAccessRootAuthenticationContextClassReferencesCollectionResponse>> GetResponseAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Expand(string value);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="expandExpression">The expression from which to calculate the expand value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Expand(Expression<Func<AuthenticationContextClassReference, object>> expandExpression);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Select(string value);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="selectExpression">The expression from which to calculate the select value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Select(Expression<Func<AuthenticationContextClassReference, object>> selectExpression);
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Top(int value);
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Filter(string value);
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest Skip(int value);
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest OrderBy(string value);
}
}
| 56.684685 | 225 | 0.694851 | [
"MIT"
] | ScriptBox99/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Generated/requests/IConditionalAccessRootAuthenticationContextClassReferencesCollectionRequest.cs | 6,292 | C# |
using ZuumApp.Application.Common.Interfaces;
using FluentValidation;
using Microsoft.EntityFrameworkCore;
namespace ZuumApp.Application.TodoLists.Commands.UpdateTodoList;
public class UpdateTodoListCommandValidator : AbstractValidator<UpdateTodoListCommand>
{
private readonly IApplicationDbContext _context;
public UpdateTodoListCommandValidator(IApplicationDbContext context)
{
_context = context;
RuleFor(v => v.Title)
.NotEmpty().WithMessage("Title is required.")
.MaximumLength(200).WithMessage("Title must not exceed 200 characters.")
.MustAsync(BeUniqueTitle).WithMessage("The specified title already exists.");
}
public async Task<bool> BeUniqueTitle(UpdateTodoListCommand model, string title, CancellationToken cancellationToken)
{
return await _context.TodoLists
.Where(l => l.Id != model.Id)
.AllAsync(l => l.Title != title, cancellationToken);
}
}
| 34.928571 | 121 | 0.721881 | [
"MIT"
] | SSRazvan/zuumapp | src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoListCommandValidator.cs | 980 | C# |
using CSRedis;
using System.Diagnostics;
namespace RunUI
{
/// <summary>
/// Redis锁
/// </summary>
public sealed class RedisLock : IDisposable
{
private string Key { get; }
private string Value { get; }
private bool disposed;
private bool IsLock;
/// <summary>
/// 锁
/// </summary>
public RedisLock(string lockKey, int timeout = 50000)
{
RedisManager.Init();
var siteKey = AppConfigHelper.GetAppSettingsString("RedisLockKey");
Key = $"Lock-{siteKey}-{lockKey}";
Value = Guid.NewGuid().ToString();
bool b;
var sw = new Stopwatch();
sw.Start();
do
{
b = RedisLockHelper.Set(Key, Value, timeout * 60 / 1000, RedisExistence.Nx);
if (b == false) ThreadHelper.Sleep(10);
} while (b == false && sw.ElapsedMilliseconds < timeout);
sw.Stop();
if (b == false) throw new TimeoutException("获取redis分布锁失败");
IsLock = true;
}
/// <summary>
/// 释放资源
/// </summary>
/// <param name="disposing"></param>
private void Dispose(bool disposing)
{
if (disposed) return;
var f = false;
lock (this)
{
if (IsLock)
{
IsLock = false;
f = true;
}
}
if (!f) return;
const string lua = "if redis.call('get', KEYS[1]) == ARGV[1] then return redis.call('del', KEYS[1]) else return 0 end";
RedisLockHelper.Eval(lua, Key, Value);
disposed = true;
}
/// <summary>
/// 获取redis分布式锁
/// </summary>
/// <param name="lockKey"></param>
/// <param name="timeout"></param>
/// <returns></returns>
public static RedisLock GetRedisLock(string lockKey, int timeout = 50000)
{
return new RedisLock(lockKey, timeout);
}
/// <summary>
/// 解锁并释放redis链接
/// </summary>
public void Dispose()
{
Dispose(true);
}
}
} | 26.904762 | 131 | 0.467699 | [
"Apache-2.0"
] | sdwdjzhy/run-admin | run-server/RunUI.Redis/RedisLock.cs | 2,314 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public static class MyResources
{
public static string WindowsBorder = "iVBORw0KGgoAAAANSUhEUgAAAzoAAAINCAYAAAD2uQoVAAAAB3RJTUUH5QMGBhwYGQC8JAAAABd0RVh0U29mdHdhcmUAR0xEUE5HIHZlciAzLjRxhaThAAAACHRwTkdHTEQzAAAAAEqAKR8AAAAEZ0FNQQAAsY8L/GEFAAAABmJLR0QA/wD/AP+gvaeTAAARfklEQVR4nO3dz6tmBR3HcUfFoTQaMxKjaGqktIwCsWgr9AcUboKWkn+AQcug/oF27VoEbUSIdi1aSLsWJYSrqTYuQgqzgcTEH0/3mb6nOR4fb3dmzjnfcz/P6wMv7jTT3HPOM3qd9z3Pfe4du93uDgAAgCTtJwAAADC39hMAAACYW/sJAAAAzK39BAAAAObWfgIAAABzaz8BAACAubWfAAAAwNzaTwAAAGBu7ScAAAAwt/YTAAAAmFv7CQAAAMyt/QQAAADm1n4CAAAAc2s/AQAAgLm1nwAAAMDc2k8AAABgbu0nAAAAMLf2EwAAAJhb+wkAAADMrf0EAAAA5tZ+Aiu4cAZ/2vXvtPPrfgzhvPDvEQBwXfsJrEDowPHw7xEAcN31//iH78Ipv3a13j68xon8n71bb79+4NfeusX3edq1n/YHf6u/71bPZUtb+zHb0uOyxDWsfX1v1tt/nfhb/fiNehv/wc7MzMxG6y6tFRz6zO6L5bWR7s/++kw03L6HymMnvlKulI+X7nMEAFZwZ3domZmZmZmZzb7u0lrB+M7IC+Va+U3Zwl0Ud3Tg9o3/vflI+Xz5ann0xKfKxdJ93gDAzNzRMTMzMzOzvHWX1kzO8spqP9/duJMzfI1O93kD67m77O/kPLZ779fxXC77O0Bn+XjibisAbJw7OmZmZmZmlrfu0prJaZ9x/UnZ38l5ufhsLByfQx8fLpXhldn2d3eGr+l5sAx3gtzRAYBzpP0EZnLoLyDPlmsjw19q/CUFjs9Znoo2PLVt/PS2wf7nPlx8DAGAjfPUNTMzMzMzy1t3ac1k/BnZp8vrZXw3x9NO4HjdzIsMHHp62/7pbNNvQnp/6b42AGDCHR0zMzMzM8tbd2ndhLN85vXJ3Y07OYNHSvf5A+ff+CWqx1/Hs7/b81C5p9zqHaTuawSACO7omJmZmZlZ3rpL6yac9hnQx8v4Ts7wc93nDeR7YHfjZamHuzyfKb4JKQA0OO93dD5Xflv2+275QzEzW3qvnrg6MezyiSvlY+WuYmZmZgvtvIeOmZmZmZnZ+9d9S+kmHHq51+Glo4enqz298zQQYBvGH4ceKF8oXyqf3PkmpACwCHd0zMzMzMwsb92ldRPGd3NeLsMdnR+W7nMEOIvhJagv7268eMHl8tHihQoA4Da4o2NmZmZmZnnrLq2bMHxGc3wn5yel+9wAbtfwdTyPjDxYLpbucwSAc6P9BG7Ci2UfOL8qns4BpBk+ru3D5nIZXrzg0+XeDZwnAGyap66ZmZmZmVneukvrDH5dhqervbDzBbpArkMvQjAYnso2fnrb/eWu0n3+ALAJ7uiYmZmZmVneuktrYvyZy1+U4ZuBvlS85CrAbvehcrk8Wh4a/ZqPkQAcLXd0zMzMzMwsb92lNTF89vHHuxt3cv5aTnveevd5A3QbPh5+Ynfj7s5ny/BNSLvPEYBtWnot13U9Eja0Z+vtj05cqx9/sd5ee////X/b1EWYmTXswoGfu7fePlJv3zzj71tyPl6bmW1nf1z5eKv+N8dT18zMzMzMLG9dt5ImvlNeH7lSTnvKmqeuAfyXj5EAbNV0qxy3+6IHQgfg9vgYCcBWTbfKcTsudPwf3yfLGxNXNvAHAgAAzGe6RY/XcYFCBwAAjs90ix6v4wKHyHl89/7A+Wbp/kMAAADmNd2ix+u4wIfLOHC+XboffAAAYBnTLXq8jgsUOgAAcHymW/R4a17YPeWVsg+c7xevDAQAANmmW/R4a16Y0AEAgOM13aLHW+odH/o+DlfLa+X5DTzYAADAOqZb9HhLvWOhAwAAjE236PGWesfjwHmuvFp+X7ofaAAAYD3TLXq8pd7xOHTemeh+gAEAgPVNt+jxlnrHQgcAABibbtHjLfWOhQ4AADA23aLHW+odCx0AAGBsukWPF3dBAADAJk236PHiLggAANik6RY9XtwFAQAAmzTdoseLuyAAAGCTplv0eHEXBAAAbNJ0ix4v7oIAAIBNmm7R48VdEAAAsEnTLXq8uAsCAAA2abrx996c/XgdF9T9AAMAAOubTugAAADn3nRCBwAAOPeGXThg9uOteUHDuh9gAABgfcOEDgAAEOOJInQAAIAYQgcAAIjz5bLK8dY4yHTdDzAAALA+oQMAAMQROgAAQByhAwAAxBE6AABAHKEDAADEiQid8WtiT9f9AAMAAOsTOgAAQByhAwAAxIkLnWnwdD/AAADA+oQOAAAQJzZ0nijdDzAAALA+oQMAAMSJCJ32CwMAADZF6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQR+gAAABxhA4AABBH6AAAAHGEDgAAEEfoAAAAcYQOAAAQ54ly4YDZj7fmhQkdAAA4XkIHAACII3QAAIA4QgcAAIgzTOgAAAAxphM6AADAuTed0AEAAM69dyYWPd6aFyZ0AADgeAkdAAAgjtABAADiCB0AACCO0AEAAOIIHQAAIE5s6AzrfoABAID1vT2x6PHWvLBh3Q8wAACwvrjQma77AQYAANYndAAAgDhCBwAAiCN0AACAOEIHAACII3QAAIBz6cIppt9HZ/xrs5/LGhc7XfeDDwAALEPoAADAkVjkL/Ibc7FM4+bSiT+XV8tPi9ABAIBzTOgIHQAAiHMMoXNfuTSxD5y/l6vl0NPaZj+nNS56uu4/BAAAWNMxhs5wF2cfOD8rp339zuzntMZFT9f9hwAAAGsSOkIHAADiLB06qwbEBxzn/vJSea3sA+fuMvz+p8qij/udd5iZmZmZmaVthYKdrruoAQBgTcdwR2d4oYHxnZzx3Zy9pyYWfdzX+IOdrvsfNAAAWJPQaQgdT10zMzMzMzt/u2/kUvlB+ceJd8vbK3mg/LJ8r+z3rbLqhI6ZmZmZ2fneM2UInY49V8aBs9/qgTNM6JiZmZmZWd5WeE7idAnPSwQAgA+yxN9ND72c8zPljfJKuTTD8W7X9OtxVvvanIE7OmZmZmZmlrcVq266rVczAADcijXu6Ozv5LxVhjs6l3bvvZvT8Xfh9js5gzUPNt3W/2ECAIBbIXQ2EDrXL37tm0grHedr9fbfKx3PzMzMzGy/i5P//bvRj2/178KHft8/6+036u1f6u34lc628KUqz3cctCN0hi114OkfZtsFmpmZmdlR7sKBn3u73s4ZOo/W20OBM6w7dFoiZ7/uCzczMzMzM5t/Dc/bAwAAWFT7CQAAAMyt/QQAAADm1n4CAAAAc2s/AQAAgLm1nwAAAMDc2k8AAABgbu0nAAAAMLf2EwAAAJhb+wkAAADMrf0EAAAA5tZ+AgAAAHNrPwEAAIC5tZ8AAADA3NpPAAAAYG7tJwAAADC39hMAAACYW/sJAAAAzK39BAAAAObWfgIAAABzaz8BAACAuf0HSXKlx5lr0jkAAAAASUVORK5CYII=";
}
| 530.25 | 6,236 | 0.963539 | [
"Apache-2.0"
] | crecheng/Dsp-Mod-CopyPlanetFactory | CopyPlanetFactory/MyResources.cs | 6,365 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace SAF.Hub.Api
{
/// <summary>
/// seo 设置
/// </summary>
[RoutePrefix("api/hub/seo")]
public class SEOController : ApiController
{
}
}
| 16.833333 | 46 | 0.656766 | [
"Apache-2.0"
] | ericzzhou/SAF | SAF.Hub/SAF.Hub.Api/SEOController.cs | 309 | C# |
using System;
using System.ComponentModel.DataAnnotations;
namespace dka.net5.codesamples.web.Models.PartialViews
{
public class Partial1UpdateViewModel
{
[Required]
public Guid Id { get; set; }
[Required]
public string FirstName { get; set; }
}
} | 21.571429 | 54 | 0.642384 | [
"MIT"
] | lwinch2006/code-samples | dka.net5.codesamples.web/Models/PartialViews/Partial1UpdateViewModel.cs | 304 | C# |
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using DependencyInjectionSample.Interfaces;
using DependencyInjectionSample.Models;
using DependencyInjectionSample.ViewModels.Manage;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Mvc;
using Microsoft.Extensions.Logging;
namespace DependencyInjectionSample.Controllers
{
[Authorize]
public class ManageController : Controller
{
private readonly UserManager<ApplicationUser> _userManager;
private readonly SignInManager<ApplicationUser> _signInManager;
private readonly IEmailSender _emailSender;
private readonly ISmsSender _smsSender;
private readonly ILogger _logger;
public ManageController(
UserManager<ApplicationUser> userManager,
SignInManager<ApplicationUser> signInManager,
IEmailSender emailSender,
ISmsSender smsSender,
ILoggerFactory loggerFactory)
{
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
_smsSender = smsSender;
_logger = loggerFactory.CreateLogger<ManageController>();
}
//
// GET: /Manage/Index
[HttpGet]
public async Task<IActionResult> Index(ManageMessageId? message = null)
{
ViewData["StatusMessage"] =
message == ManageMessageId.ChangePasswordSuccess ? "Your password has been changed."
: message == ManageMessageId.SetPasswordSuccess ? "Your password has been set."
: message == ManageMessageId.SetTwoFactorSuccess ? "Your two-factor authentication provider has been set."
: message == ManageMessageId.Error ? "An error has occurred."
: message == ManageMessageId.AddPhoneSuccess ? "Your phone number was added."
: message == ManageMessageId.RemovePhoneSuccess ? "Your phone number was removed."
: "";
var user = await GetCurrentUserAsync();
var model = new IndexViewModel
{
HasPassword = await _userManager.HasPasswordAsync(user),
PhoneNumber = await _userManager.GetPhoneNumberAsync(user),
TwoFactor = await _userManager.GetTwoFactorEnabledAsync(user),
Logins = await _userManager.GetLoginsAsync(user),
BrowserRemembered = await _signInManager.IsTwoFactorClientRememberedAsync(user)
};
return View(model);
}
//
// POST: /Manage/RemoveLogin
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> RemoveLogin(RemoveLoginViewModel account)
{
ManageMessageId? message = ManageMessageId.Error;
var user = await GetCurrentUserAsync();
if (user != null)
{
var result = await _userManager.RemoveLoginAsync(user, account.LoginProvider, account.ProviderKey);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, isPersistent: false);
message = ManageMessageId.RemoveLoginSuccess;
}
}
return RedirectToAction(nameof(ManageLogins), new { Message = message });
}
//
// GET: /Manage/AddPhoneNumber
public IActionResult AddPhoneNumber()
{
return View();
}
//
// POST: /Manage/AddPhoneNumber
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> AddPhoneNumber(AddPhoneNumberViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
// Generate the token and send it
var user = await GetCurrentUserAsync();
var code = await _userManager.GenerateChangePhoneNumberTokenAsync(user, model.PhoneNumber);
await _smsSender.SendSmsAsync(model.PhoneNumber, "Your security code is: " + code);
return RedirectToAction(nameof(VerifyPhoneNumber), new { PhoneNumber = model.PhoneNumber });
}
//
// POST: /Manage/EnableTwoFactorAuthentication
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> EnableTwoFactorAuthentication()
{
var user = await GetCurrentUserAsync();
if (user != null)
{
await _userManager.SetTwoFactorEnabledAsync(user, true);
await _signInManager.SignInAsync(user, isPersistent: false);
_logger.LogInformation(1, "User enabled two-factor authentication.");
}
return RedirectToAction(nameof(Index), "Manage");
}
//
// POST: /Manage/DisableTwoFactorAuthentication
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> DisableTwoFactorAuthentication()
{
var user = await GetCurrentUserAsync();
if (user != null)
{
await _userManager.SetTwoFactorEnabledAsync(user, false);
await _signInManager.SignInAsync(user, isPersistent: false);
_logger.LogInformation(2, "User disabled two-factor authentication.");
}
return RedirectToAction(nameof(Index), "Manage");
}
//
// GET: /Manage/VerifyPhoneNumber
[HttpGet]
public async Task<IActionResult> VerifyPhoneNumber(string phoneNumber)
{
var code = await _userManager.GenerateChangePhoneNumberTokenAsync(await GetCurrentUserAsync(), phoneNumber);
// Send an SMS to verify the phone number
return phoneNumber == null ? View("Error") : View(new VerifyPhoneNumberViewModel { PhoneNumber = phoneNumber });
}
//
// POST: /Manage/VerifyPhoneNumber
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> VerifyPhoneNumber(VerifyPhoneNumberViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
var user = await GetCurrentUserAsync();
if (user != null)
{
var result = await _userManager.ChangePhoneNumberAsync(user, model.PhoneNumber, model.Code);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, isPersistent: false);
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.AddPhoneSuccess });
}
}
// If we got this far, something failed, redisplay the form
ModelState.AddModelError(string.Empty, "Failed to verify phone number");
return View(model);
}
//
// GET: /Manage/RemovePhoneNumber
[HttpGet]
public async Task<IActionResult> RemovePhoneNumber()
{
var user = await GetCurrentUserAsync();
if (user != null)
{
var result = await _userManager.SetPhoneNumberAsync(user, null);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, isPersistent: false);
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.RemovePhoneSuccess });
}
}
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.Error });
}
//
// GET: /Manage/ChangePassword
[HttpGet]
public IActionResult ChangePassword()
{
return View();
}
//
// POST: /Manage/ChangePassword
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> ChangePassword(ChangePasswordViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
var user = await GetCurrentUserAsync();
if (user != null)
{
var result = await _userManager.ChangePasswordAsync(user, model.OldPassword, model.NewPassword);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, isPersistent: false);
_logger.LogInformation(3, "User changed their password successfully.");
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.ChangePasswordSuccess });
}
AddErrors(result);
return View(model);
}
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.Error });
}
//
// GET: /Manage/SetPassword
[HttpGet]
public IActionResult SetPassword()
{
return View();
}
//
// POST: /Manage/SetPassword
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> SetPassword(SetPasswordViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
var user = await GetCurrentUserAsync();
if (user != null)
{
var result = await _userManager.AddPasswordAsync(user, model.NewPassword);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, isPersistent: false);
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.SetPasswordSuccess });
}
AddErrors(result);
return View(model);
}
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.Error });
}
//GET: /Manage/ManageLogins
[HttpGet]
public async Task<IActionResult> ManageLogins(ManageMessageId? message = null)
{
ViewData["StatusMessage"] =
message == ManageMessageId.RemoveLoginSuccess ? "The external login was removed."
: message == ManageMessageId.AddLoginSuccess ? "The external login was added."
: message == ManageMessageId.Error ? "An error has occurred."
: "";
var user = await GetCurrentUserAsync();
if (user == null)
{
return View("Error");
}
var userLogins = await _userManager.GetLoginsAsync(user);
var otherLogins = _signInManager.GetExternalAuthenticationSchemes().Where(auth => userLogins.All(ul => auth.AuthenticationScheme != ul.LoginProvider)).ToList();
ViewData["ShowRemoveButton"] = user.PasswordHash != null || userLogins.Count > 1;
return View(new ManageLoginsViewModel
{
CurrentLogins = userLogins,
OtherLogins = otherLogins
});
}
//
// POST: /Manage/LinkLogin
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult LinkLogin(string provider)
{
// Request a redirect to the external login provider to link a login for the current user
var redirectUrl = Url.Action("LinkLoginCallback", "Manage");
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, User.GetUserId());
return new ChallengeResult(provider, properties);
}
//
// GET: /Manage/LinkLoginCallback
[HttpGet]
public async Task<ActionResult> LinkLoginCallback()
{
var user = await GetCurrentUserAsync();
if (user == null)
{
return View("Error");
}
var info = await _signInManager.GetExternalLoginInfoAsync(User.GetUserId());
if (info == null)
{
return RedirectToAction(nameof(ManageLogins), new { Message = ManageMessageId.Error });
}
var result = await _userManager.AddLoginAsync(user, info);
var message = result.Succeeded ? ManageMessageId.AddLoginSuccess : ManageMessageId.Error;
return RedirectToAction(nameof(ManageLogins), new { Message = message });
}
#region Helpers
private void AddErrors(IdentityResult result)
{
foreach (var error in result.Errors)
{
ModelState.AddModelError(string.Empty, error.Description);
}
}
public enum ManageMessageId
{
AddPhoneSuccess,
AddLoginSuccess,
ChangePasswordSuccess,
SetTwoFactorSuccess,
SetPasswordSuccess,
RemoveLoginSuccess,
RemovePhoneSuccess,
Error
}
private async Task<ApplicationUser> GetCurrentUserAsync()
{
return await _userManager.FindByIdAsync(HttpContext.User.GetUserId());
}
#endregion
}
}
| 38.306358 | 172 | 0.583824 | [
"Apache-2.0"
] | Erikre/Docs | aspnet/fundamentals/dependency-injection/sample/src/DependencyInjectionSample/Controllers/ManageController.cs | 13,256 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using NMF.Collections.Generic;
using NMF.Collections.ObjectModel;
using NMF.Expressions;
using NMF.Expressions.Linq;
using NMF.Models;
using NMF.Models.Collections;
using NMF.Models.Expressions;
using NMF.Models.Meta;
using NMF.Models.Repository;
using NMF.Serialization;
using NMF.Utilities;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using TTC2017.SmartGrids.CIM.IEC61968.AssetModels;
using TTC2017.SmartGrids.CIM.IEC61968.Assets;
using TTC2017.SmartGrids.CIM.IEC61968.Common;
using TTC2017.SmartGrids.CIM.IEC61968.Customers;
using TTC2017.SmartGrids.CIM.IEC61968.Work;
using TTC2017.SmartGrids.CIM.IEC61970.Core;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.Financial;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfAssetModels;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfAssets;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfCommon;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfCustomers;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfLocations;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfOperations;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfTypeAsset;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.InfWork;
using TTC2017.SmartGrids.CIM.IEC61970.Informative.MarketOperations;
using TTC2017.SmartGrids.CIM.IEC61970.Meas;
namespace TTC2017.SmartGrids.CIM.IEC61970.Informative.InfERPSupport
{
/// <summary>
/// The public interface for ErpRequisition
/// </summary>
[DefaultImplementationTypeAttribute(typeof(ErpRequisition))]
[XmlDefaultImplementationTypeAttribute(typeof(ErpRequisition))]
public interface IErpRequisition : IModelElement, IDocument
{
/// <summary>
/// The ErpReqLineItems property
/// </summary>
IOrderedSetExpression<IErpReqLineItem> ErpReqLineItems
{
get;
}
}
}
| 35.391304 | 96 | 0.731368 | [
"MIT"
] | georghinkel/ttc2017smartGrids | generator/Schema/IEC61970/Informative/InfERPSupport/IErpRequisition.cs | 2,444 | C# |
namespace TESVSnip.UI.RecordControls
{
partial class TextElement
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextElement));
this.textBox = new System.Windows.Forms.TextBox();
this.lblText = new System.Windows.Forms.Label();
this.lblType = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.Error)).BeginInit();
this.SuspendLayout();
//
// textBox
//
resources.ApplyResources(this.textBox, "textBox");
this.textBox.Name = "textBox";
this.textBox.Validated += new System.EventHandler(this.textBox_Validated);
//
// lblText
//
resources.ApplyResources(this.lblText, "lblText");
this.lblText.Name = "lblText";
//
// lblType
//
resources.ApplyResources(this.lblType, "lblType");
this.lblType.Name = "lblType";
//
// TextElement
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.lblType);
this.Controls.Add(this.lblText);
this.Controls.Add(this.textBox);
this.Name = "TextElement";
this.Load += new System.EventHandler(this.TextElement_Load);
((System.ComponentModel.ISupportInitialize)(this.Error)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
protected System.Windows.Forms.TextBox textBox;
protected System.Windows.Forms.Label lblText;
protected System.Windows.Forms.Label lblType;
}
}
| 36.25 | 143 | 0.570236 | [
"MIT"
] | Sharlikran/tesv-snip | UI/RecordControls/TextElement.Designer.cs | 2,757 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Colors.Converters
{
public class DoubleToStringConverter : IValueConverter
{
object IValueConverter.Convert(object o, Type type, object parameter, CultureInfo culture)
{
return $"{o:f2}";
}
object IValueConverter.ConvertBack(object o, Type type, object parameter, CultureInfo culture)
{
return null;
}
}
}
| 23.916667 | 102 | 0.679443 | [
"MIT"
] | darkzonecode/WPFSamples | WPFSamples/Data Binding/Colors/Converters/DoubleToStringConverter.cs | 576 | C# |
using System;
using System.Threading.Tasks;
using HexMaster.ShortLink.Core.Contracts;
using HexMaster.ShortLink.Core.Hits.Contracts;
namespace HexMaster.ShortLink.Core.Hits
{
public sealed class HitsService : IHitsService
{
private readonly IHitsRepository _repository;
private readonly IShortLinksRepository _shortlinksRepository;
public async Task RegisterHitAsync(string shortCode, DateTimeOffset eventDate)
{
await _repository.CreateNewAsync(eventDate, shortCode);
await _shortlinksRepository.IncreaseHitsAsync(shortCode);
}
public async Task RestoreHitsCount()
{
var totalHits = await _repository.GetHitsPerShortCode();
foreach (var hit in totalHits)
{
await _shortlinksRepository.SetHitsAsync(hit.Item1, hit.Item2);
}
}
public HitsService(IHitsRepository repository,
IShortLinksRepository shortlinksRepository)
{
_repository = repository;
_shortlinksRepository = shortlinksRepository;
}
}
} | 30.459459 | 86 | 0.66992 | [
"MIT"
] | nikneem/shortlink-core | HexMaster.ShortLink.Core/Hits/HitsService.cs | 1,129 | C# |
/*
* Prime Developer Trial
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = FactSet.SDK.NewsAPIforDigitalPortals.Client.OpenAPIDateConverter;
namespace FactSet.SDK.NewsAPIforDigitalPortals.Model
{
/// <summary>
/// InlineResponse2001Data
/// </summary>
[DataContract(Name = "inline_response_200_1_data")]
public partial class InlineResponse2001Data : IEquatable<InlineResponse2001Data>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="InlineResponse2001Data" /> class.
/// </summary>
/// <param name="code">Identifier of the news article..</param>
/// <param name="time">Date and time of the news article..</param>
/// <param name="headline">Headline of the news article represented as text with HTML entity encoding but without HTML tags..</param>
/// <param name="summary">Textual summary of the body of the news article or `null` if no summary was provided by the news article distributor..</param>
/// <param name="types">Types of news article. See endpoint `/news/article/type/list` for possible values..</param>
/// <param name="language">language.</param>
/// <param name="distributor">distributor.</param>
/// <param name="publisher">publisher.</param>
/// <param name="categories">Categories related to the news article. See endpoint `/category/list` for possible values..</param>
/// <param name="chain">chain.</param>
/// <param name="instruments">Set of stock instruments related to the article. The set is not updated in the course of corporate actions, e.g. when the related company obtains a new instrument after a spin-off..</param>
public InlineResponse2001Data(string code = default(string), string time = default(string), string headline = default(string), string summary = default(string), List<InlineResponse2001Types> types = default(List<InlineResponse2001Types>), InlineResponse2001Language language = default(InlineResponse2001Language), InlineResponse2001Distributor distributor = default(InlineResponse2001Distributor), InlineResponse2001Publisher publisher = default(InlineResponse2001Publisher), List<InlineResponse2001Categories> categories = default(List<InlineResponse2001Categories>), InlineResponse2001Chain chain = default(InlineResponse2001Chain), List<InlineResponse2001Instruments> instruments = default(List<InlineResponse2001Instruments>))
{
this.Code = code;
this.Time = time;
this.Headline = headline;
this.Summary = summary;
this.Types = types;
this.Language = language;
this.Distributor = distributor;
this.Publisher = publisher;
this.Categories = categories;
this.Chain = chain;
this.Instruments = instruments;
}
/// <summary>
/// Identifier of the news article.
/// </summary>
/// <value>Identifier of the news article.</value>
[DataMember(Name = "code", EmitDefaultValue = false)]
public string Code { get; set; }
/// <summary>
/// Date and time of the news article.
/// </summary>
/// <value>Date and time of the news article.</value>
[DataMember(Name = "time", EmitDefaultValue = false)]
public string Time { get; set; }
/// <summary>
/// Headline of the news article represented as text with HTML entity encoding but without HTML tags.
/// </summary>
/// <value>Headline of the news article represented as text with HTML entity encoding but without HTML tags.</value>
[DataMember(Name = "headline", EmitDefaultValue = false)]
public string Headline { get; set; }
/// <summary>
/// Textual summary of the body of the news article or `null` if no summary was provided by the news article distributor.
/// </summary>
/// <value>Textual summary of the body of the news article or `null` if no summary was provided by the news article distributor.</value>
[DataMember(Name = "summary", EmitDefaultValue = false)]
public string Summary { get; set; }
/// <summary>
/// Types of news article. See endpoint `/news/article/type/list` for possible values.
/// </summary>
/// <value>Types of news article. See endpoint `/news/article/type/list` for possible values.</value>
[DataMember(Name = "types", EmitDefaultValue = false)]
public List<InlineResponse2001Types> Types { get; set; }
/// <summary>
/// Gets or Sets Language
/// </summary>
[DataMember(Name = "language", EmitDefaultValue = false)]
public InlineResponse2001Language Language { get; set; }
/// <summary>
/// Gets or Sets Distributor
/// </summary>
[DataMember(Name = "distributor", EmitDefaultValue = false)]
public InlineResponse2001Distributor Distributor { get; set; }
/// <summary>
/// Gets or Sets Publisher
/// </summary>
[DataMember(Name = "publisher", EmitDefaultValue = false)]
public InlineResponse2001Publisher Publisher { get; set; }
/// <summary>
/// Categories related to the news article. See endpoint `/category/list` for possible values.
/// </summary>
/// <value>Categories related to the news article. See endpoint `/category/list` for possible values.</value>
[DataMember(Name = "categories", EmitDefaultValue = false)]
public List<InlineResponse2001Categories> Categories { get; set; }
/// <summary>
/// Gets or Sets Chain
/// </summary>
[DataMember(Name = "chain", EmitDefaultValue = false)]
public InlineResponse2001Chain Chain { get; set; }
/// <summary>
/// Set of stock instruments related to the article. The set is not updated in the course of corporate actions, e.g. when the related company obtains a new instrument after a spin-off.
/// </summary>
/// <value>Set of stock instruments related to the article. The set is not updated in the course of corporate actions, e.g. when the related company obtains a new instrument after a spin-off.</value>
[DataMember(Name = "instruments", EmitDefaultValue = false)]
public List<InlineResponse2001Instruments> Instruments { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class InlineResponse2001Data {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Time: ").Append(Time).Append("\n");
sb.Append(" Headline: ").Append(Headline).Append("\n");
sb.Append(" Summary: ").Append(Summary).Append("\n");
sb.Append(" Types: ").Append(Types).Append("\n");
sb.Append(" Language: ").Append(Language).Append("\n");
sb.Append(" Distributor: ").Append(Distributor).Append("\n");
sb.Append(" Publisher: ").Append(Publisher).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
sb.Append(" Chain: ").Append(Chain).Append("\n");
sb.Append(" Instruments: ").Append(Instruments).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as InlineResponse2001Data);
}
/// <summary>
/// Returns true if InlineResponse2001Data instances are equal
/// </summary>
/// <param name="input">Instance of InlineResponse2001Data to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(InlineResponse2001Data input)
{
if (input == null)
{
return false;
}
return
(
this.Code == input.Code ||
(this.Code != null &&
this.Code.Equals(input.Code))
) &&
(
this.Time == input.Time ||
(this.Time != null &&
this.Time.Equals(input.Time))
) &&
(
this.Headline == input.Headline ||
(this.Headline != null &&
this.Headline.Equals(input.Headline))
) &&
(
this.Summary == input.Summary ||
(this.Summary != null &&
this.Summary.Equals(input.Summary))
) &&
(
this.Types == input.Types ||
this.Types != null &&
input.Types != null &&
this.Types.SequenceEqual(input.Types)
) &&
(
this.Language == input.Language ||
(this.Language != null &&
this.Language.Equals(input.Language))
) &&
(
this.Distributor == input.Distributor ||
(this.Distributor != null &&
this.Distributor.Equals(input.Distributor))
) &&
(
this.Publisher == input.Publisher ||
(this.Publisher != null &&
this.Publisher.Equals(input.Publisher))
) &&
(
this.Categories == input.Categories ||
this.Categories != null &&
input.Categories != null &&
this.Categories.SequenceEqual(input.Categories)
) &&
(
this.Chain == input.Chain ||
(this.Chain != null &&
this.Chain.Equals(input.Chain))
) &&
(
this.Instruments == input.Instruments ||
this.Instruments != null &&
input.Instruments != null &&
this.Instruments.SequenceEqual(input.Instruments)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Code != null)
{
hashCode = (hashCode * 59) + this.Code.GetHashCode();
}
if (this.Time != null)
{
hashCode = (hashCode * 59) + this.Time.GetHashCode();
}
if (this.Headline != null)
{
hashCode = (hashCode * 59) + this.Headline.GetHashCode();
}
if (this.Summary != null)
{
hashCode = (hashCode * 59) + this.Summary.GetHashCode();
}
if (this.Types != null)
{
hashCode = (hashCode * 59) + this.Types.GetHashCode();
}
if (this.Language != null)
{
hashCode = (hashCode * 59) + this.Language.GetHashCode();
}
if (this.Distributor != null)
{
hashCode = (hashCode * 59) + this.Distributor.GetHashCode();
}
if (this.Publisher != null)
{
hashCode = (hashCode * 59) + this.Publisher.GetHashCode();
}
if (this.Categories != null)
{
hashCode = (hashCode * 59) + this.Categories.GetHashCode();
}
if (this.Chain != null)
{
hashCode = (hashCode * 59) + this.Chain.GetHashCode();
}
if (this.Instruments != null)
{
hashCode = (hashCode * 59) + this.Instruments.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
}
}
| 44.338558 | 738 | 0.555501 | [
"Apache-2.0"
] | factset/enterprise-sdk | code/dotnet/NewsAPIforDigitalPortals/v2/src/FactSet.SDK.NewsAPIforDigitalPortals/Model/InlineResponse2001Data.cs | 14,144 | C# |
using System.ComponentModel;
namespace Cympatic.Stub.Example.Api.Enums
{
public enum WeatherType
{
None,
[Description("Sunny/Clear")]
Clear,
[Description("Partially Cloudy")]
PartiallyCloudy,
Cloudy,
Overcast,
Rain,
Drizzle,
Hail,
Snow,
Stormy,
Thunderstorm,
Fog
}
}
| 11.882353 | 41 | 0.512376 | [
"MIT"
] | cympatic/stub | examples/Api/Cympatic.Stub.Example.Api/Enums/WeatherType.cs | 406 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Microsoft.EntityFrameworkCore.Query.SqlExpressions
{
/// <summary>
/// <para>
/// An expression that represents a CASE statement in a SQL tree.
/// </para>
/// <para>
/// This type is typically used by database providers (and other extensions). It is generally
/// not used in application code.
/// </para>
/// </summary>
public class CaseExpression : SqlExpression
{
private readonly List<CaseWhenClause> _whenClauses = new();
/// <summary>
/// Creates a new instance of the <see cref="CaseExpression" /> class which represents a simple CASE expression.
/// </summary>
/// <param name="operand">An expression to compare with <see cref="CaseWhenClause.Test" /> in <see cref="WhenClauses" />.</param>
/// <param name="whenClauses">A list of <see cref="CaseWhenClause" /> to compare and get result from.</param>
/// <param name="elseResult">A value to return if no <see cref="WhenClauses" /> matches, if any.</param>
public CaseExpression(
SqlExpression operand,
IReadOnlyList<CaseWhenClause> whenClauses,
SqlExpression? elseResult = null)
: base(whenClauses[0].Result.Type, whenClauses[0].Result.TypeMapping)
{
Operand = operand;
_whenClauses.AddRange(whenClauses);
ElseResult = elseResult;
}
/// <summary>
/// Creates a new instance of the <see cref="CaseExpression" /> class which represents a searched CASE expression.
/// </summary>
/// <param name="whenClauses">A list of <see cref="CaseWhenClause" /> to evaluate condition and get result from.</param>
/// <param name="elseResult">A value to return if no <see cref="WhenClauses" /> matches, if any.</param>
public CaseExpression(
IReadOnlyList<CaseWhenClause> whenClauses,
SqlExpression? elseResult = null)
: base(whenClauses[0].Result.Type, whenClauses[0].Result.TypeMapping)
{
_whenClauses.AddRange(whenClauses);
ElseResult = elseResult;
}
/// <summary>
/// The value to compare in <see cref="WhenClauses" />.
/// </summary>
public virtual SqlExpression? Operand { get; }
/// <summary>
/// The list of <see cref="CaseWhenClause" /> to match <see cref="Operand" /> or evaluate condition to get result.
/// </summary>
public virtual IReadOnlyList<CaseWhenClause> WhenClauses
=> _whenClauses;
/// <summary>
/// The value to return if none of the <see cref="WhenClauses" /> matches.
/// </summary>
public virtual SqlExpression? ElseResult { get; }
/// <inheritdoc />
protected override Expression VisitChildren(ExpressionVisitor visitor)
{
var operand = (SqlExpression?)visitor.Visit(Operand);
var changed = operand != Operand;
var whenClauses = new List<CaseWhenClause>();
foreach (var whenClause in WhenClauses)
{
var test = (SqlExpression)visitor.Visit(whenClause.Test);
var result = (SqlExpression)visitor.Visit(whenClause.Result);
if (test != whenClause.Test
|| result != whenClause.Result)
{
changed |= true;
whenClauses.Add(new CaseWhenClause(test, result));
}
else
{
whenClauses.Add(whenClause);
}
}
var elseResult = (SqlExpression?)visitor.Visit(ElseResult);
changed |= elseResult != ElseResult;
return changed
? operand == null
? new CaseExpression(whenClauses, elseResult)
: new CaseExpression(operand, whenClauses, elseResult)
: this;
}
/// <summary>
/// Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will
/// return this expression.
/// </summary>
/// <param name="operand">The <see cref="Operand" /> property of the result.</param>
/// <param name="whenClauses">The <see cref="WhenClauses" /> property of the result.</param>
/// <param name="elseResult">The <see cref="ElseResult" /> property of the result.</param>
/// <returns>This expression if no children changed, or an expression with the updated children.</returns>
public virtual CaseExpression Update(
SqlExpression? operand,
IReadOnlyList<CaseWhenClause> whenClauses,
SqlExpression? elseResult)
=> operand != Operand || !whenClauses.SequenceEqual(WhenClauses) || elseResult != ElseResult
? (operand == null
? new CaseExpression(whenClauses, elseResult)
: new CaseExpression(operand, whenClauses, elseResult))
: this;
/// <inheritdoc />
protected override void Print(ExpressionPrinter expressionPrinter)
{
expressionPrinter.Append("CASE");
if (Operand != null)
{
expressionPrinter.Append(" ");
expressionPrinter.Visit(Operand);
}
using (expressionPrinter.Indent())
{
foreach (var whenClause in WhenClauses)
{
expressionPrinter.AppendLine().Append("WHEN ");
expressionPrinter.Visit(whenClause.Test);
expressionPrinter.Append(" THEN ");
expressionPrinter.Visit(whenClause.Result);
}
if (ElseResult != null)
{
expressionPrinter.AppendLine().Append("ELSE ");
expressionPrinter.Visit(ElseResult);
}
}
expressionPrinter.AppendLine().Append("END");
}
/// <inheritdoc />
public override bool Equals(object? obj)
=> obj != null
&& (ReferenceEquals(this, obj)
|| obj is CaseExpression caseExpression
&& Equals(caseExpression));
private bool Equals(CaseExpression caseExpression)
=> base.Equals(caseExpression)
&& (Operand == null ? caseExpression.Operand == null : Operand.Equals(caseExpression.Operand))
&& WhenClauses.SequenceEqual(caseExpression.WhenClauses)
&& (ElseResult == null ? caseExpression.ElseResult == null : ElseResult.Equals(caseExpression.ElseResult));
/// <inheritdoc />
public override int GetHashCode()
{
var hash = new HashCode();
hash.Add(base.GetHashCode());
hash.Add(Operand);
for (var i = 0; i < WhenClauses.Count; i++)
{
hash.Add(WhenClauses[i]);
}
hash.Add(ElseResult);
return hash.ToHashCode();
}
}
}
| 41.331492 | 141 | 0.563962 | [
"Apache-2.0"
] | Mousavi310/efcore | src/EFCore.Relational/Query/SqlExpressions/CaseExpression.cs | 7,481 | C# |
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class HelloUETarget : TargetRules
{
public HelloUETarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V2;
ExtraModuleNames.Add("HelloUE");
}
}
| 21.866667 | 55 | 0.771341 | [
"MIT"
] | david-pp/UEExampleProjects | HelloUE/Source/HelloUE.Target.cs | 328 | C# |
// Copyright (c) 1995-2009 held by the author(s). All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the names of the Naval Postgraduate School (NPS)
// Modeling Virtual Environments and Simulation (MOVES) Institute
// (http://www.nps.edu and http://www.MovesInstitute.org)
// nor the names of its contributors may be used to endorse or
// promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All
// rights reserved. This work is licensed under the BSD open source license,
// available at https://www.movesinstitute.org/licenses/bsd.html
//
// Author: DMcG
// Modified for use with C#:
// - Peter Smith (Naval Air Warfare Center - Training Systems Division)
// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Text;
using System.Xml.Serialization;
using OpenDis.Core;
namespace OpenDis.Dis1995
{
/// <summary>
/// Section 5.3.5.3. Receipt of supplies is communiated
/// </summary>
[Serializable]
[XmlRoot]
[XmlInclude(typeof(EntityID))]
[XmlInclude(typeof(SupplyQuantity))]
public partial class ResupplyReceivedPdu : LogisticsPdu, IEquatable<ResupplyReceivedPdu>
{
/// <summary>
/// Entity that is receiving service
/// </summary>
private EntityID _receivingEntityID = new EntityID();
/// <summary>
/// Entity that is supplying
/// </summary>
private EntityID _supplyingEntityID = new EntityID();
/// <summary>
/// how many supplies are being offered
/// </summary>
private byte _numberOfSupplyTypes;
/// <summary>
/// padding
/// </summary>
private short _padding1;
/// <summary>
/// padding
/// </summary>
private byte _padding2;
private List<SupplyQuantity> _supplies = new List<SupplyQuantity>();
/// <summary>
/// Initializes a new instance of the <see cref="ResupplyReceivedPdu"/> class.
/// </summary>
public ResupplyReceivedPdu()
{
PduType = (byte)7;
}
/// <summary>
/// Implements the operator !=.
/// </summary>
/// <param name="left">The left operand.</param>
/// <param name="right">The right operand.</param>
/// <returns>
/// <c>true</c> if operands are not equal; otherwise, <c>false</c>.
/// </returns>
public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right)
{
return !(left == right);
}
/// <summary>
/// Implements the operator ==.
/// </summary>
/// <param name="left">The left operand.</param>
/// <param name="right">The right operand.</param>
/// <returns>
/// <c>true</c> if both operands are equal; otherwise, <c>false</c>.
/// </returns>
public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right)
{
if (object.ReferenceEquals(left, right))
{
return true;
}
if (((object)left == null) || ((object)right == null))
{
return false;
}
return left.Equals(right);
}
public override int GetMarshalledSize()
{
int marshalSize = 0;
marshalSize = base.GetMarshalledSize();
marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID
marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID
marshalSize += 1; // this._numberOfSupplyTypes
marshalSize += 2; // this._padding1
marshalSize += 1; // this._padding2
for (int idx = 0; idx < this._supplies.Count; idx++)
{
SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx];
marshalSize += listElement.GetMarshalledSize();
}
return marshalSize;
}
/// <summary>
/// Gets or sets the Entity that is receiving service
/// </summary>
[XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")]
public EntityID ReceivingEntityID
{
get
{
return this._receivingEntityID;
}
set
{
this._receivingEntityID = value;
}
}
/// <summary>
/// Gets or sets the Entity that is supplying
/// </summary>
[XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")]
public EntityID SupplyingEntityID
{
get
{
return this._supplyingEntityID;
}
set
{
this._supplyingEntityID = value;
}
}
/// <summary>
/// Gets or sets the how many supplies are being offered
/// </summary>
/// <remarks>
/// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose.
/// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value.
/// The method is simply here for completeness and should not be used for any computations.
/// </remarks>
[XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")]
public byte NumberOfSupplyTypes
{
get
{
return this._numberOfSupplyTypes;
}
set
{
this._numberOfSupplyTypes = value;
}
}
/// <summary>
/// Gets or sets the padding
/// </summary>
[XmlElement(Type = typeof(short), ElementName = "padding1")]
public short Padding1
{
get
{
return this._padding1;
}
set
{
this._padding1 = value;
}
}
/// <summary>
/// Gets or sets the padding
/// </summary>
[XmlElement(Type = typeof(byte), ElementName = "padding2")]
public byte Padding2
{
get
{
return this._padding2;
}
set
{
this._padding2 = value;
}
}
/// <summary>
/// Gets the supplies
/// </summary>
[XmlElement(ElementName = "suppliesList", Type = typeof(List<SupplyQuantity>))]
public List<SupplyQuantity> Supplies
{
get
{
return this._supplies;
}
}
/// <summary>
/// Automatically sets the length of the marshalled data, then calls the marshal method.
/// </summary>
/// <param name="dos">The DataOutputStream instance to which the PDU is marshaled.</param>
public override void MarshalAutoLengthSet(DataOutputStream dos)
{
// Set the length prior to marshalling data
this.Length = (ushort)this.GetMarshalledSize();
this.Marshal(dos);
}
/// <summary>
/// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
/// </summary>
/// <param name="dos">The DataOutputStream instance to which the PDU is marshaled.</param>
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")]
public override void Marshal(DataOutputStream dos)
{
base.Marshal(dos);
if (dos != null)
{
try
{
this._receivingEntityID.Marshal(dos);
this._supplyingEntityID.Marshal(dos);
dos.WriteUnsignedByte((byte)this._supplies.Count);
dos.WriteShort((short)this._padding1);
dos.WriteByte((byte)this._padding2);
for (int idx = 0; idx < this._supplies.Count; idx++)
{
SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx];
aSupplyQuantity.Marshal(dos);
}
}
catch (Exception e)
{
if (PduBase.TraceExceptions)
{
Trace.WriteLine(e);
Trace.Flush();
}
this.RaiseExceptionOccured(e);
if (PduBase.ThrowExceptions)
{
throw e;
}
}
}
}
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")]
public override void Unmarshal(DataInputStream dis)
{
base.Unmarshal(dis);
if (dis != null)
{
try
{
this._receivingEntityID.Unmarshal(dis);
this._supplyingEntityID.Unmarshal(dis);
this._numberOfSupplyTypes = dis.ReadUnsignedByte();
this._padding1 = dis.ReadShort();
this._padding2 = dis.ReadByte();
for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++)
{
SupplyQuantity anX = new SupplyQuantity();
anX.Unmarshal(dis);
this._supplies.Add(anX);
}
}
catch (Exception e)
{
if (PduBase.TraceExceptions)
{
Trace.WriteLine(e);
Trace.Flush();
}
this.RaiseExceptionOccured(e);
if (PduBase.ThrowExceptions)
{
throw e;
}
}
}
}
/// <summary>
/// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging.
/// This will be modified in the future to provide a better display. Usage:
/// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
/// where pdu is an object representing a single pdu and sb is a StringBuilder.
/// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
/// </summary>
/// <param name="sb">The StringBuilder instance to which the PDU is written to.</param>
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")]
public override void Reflection(StringBuilder sb)
{
sb.AppendLine("<ResupplyReceivedPdu>");
base.Reflection(sb);
try
{
sb.AppendLine("<receivingEntityID>");
this._receivingEntityID.Reflection(sb);
sb.AppendLine("</receivingEntityID>");
sb.AppendLine("<supplyingEntityID>");
this._supplyingEntityID.Reflection(sb);
sb.AppendLine("</supplyingEntityID>");
sb.AppendLine("<supplies type=\"byte\">" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + "</supplies>");
sb.AppendLine("<padding1 type=\"short\">" + this._padding1.ToString(CultureInfo.InvariantCulture) + "</padding1>");
sb.AppendLine("<padding2 type=\"byte\">" + this._padding2.ToString(CultureInfo.InvariantCulture) + "</padding2>");
for (int idx = 0; idx < this._supplies.Count; idx++)
{
sb.AppendLine("<supplies" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"SupplyQuantity\">");
SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx];
aSupplyQuantity.Reflection(sb);
sb.AppendLine("</supplies" + idx.ToString(CultureInfo.InvariantCulture) + ">");
}
sb.AppendLine("</ResupplyReceivedPdu>");
}
catch (Exception e)
{
if (PduBase.TraceExceptions)
{
Trace.WriteLine(e);
Trace.Flush();
}
this.RaiseExceptionOccured(e);
if (PduBase.ThrowExceptions)
{
throw e;
}
}
}
/// <summary>
/// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
/// </summary>
/// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
/// <returns>
/// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
/// </returns>
public override bool Equals(object obj)
{
return this == obj as ResupplyReceivedPdu;
}
/// <summary>
/// Compares for reference AND value equality.
/// </summary>
/// <param name="obj">The object to compare with this instance.</param>
/// <returns>
/// <c>true</c> if both operands are equal; otherwise, <c>false</c>.
/// </returns>
public bool Equals(ResupplyReceivedPdu obj)
{
bool ivarsEqual = true;
if (obj.GetType() != this.GetType())
{
return false;
}
ivarsEqual = base.Equals(obj);
if (!this._receivingEntityID.Equals(obj._receivingEntityID))
{
ivarsEqual = false;
}
if (!this._supplyingEntityID.Equals(obj._supplyingEntityID))
{
ivarsEqual = false;
}
if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes)
{
ivarsEqual = false;
}
if (this._padding1 != obj._padding1)
{
ivarsEqual = false;
}
if (this._padding2 != obj._padding2)
{
ivarsEqual = false;
}
if (this._supplies.Count != obj._supplies.Count)
{
ivarsEqual = false;
}
if (ivarsEqual)
{
for (int idx = 0; idx < this._supplies.Count; idx++)
{
if (!this._supplies[idx].Equals(obj._supplies[idx]))
{
ivarsEqual = false;
}
}
}
return ivarsEqual;
}
/// <summary>
/// HashCode Helper
/// </summary>
/// <param name="hash">The hash value.</param>
/// <returns>The new hash value.</returns>
private static int GenerateHash(int hash)
{
hash = hash << (5 + hash);
return hash;
}
/// <summary>
/// Gets the hash code.
/// </summary>
/// <returns>The hash code.</returns>
public override int GetHashCode()
{
int result = 0;
result = GenerateHash(result) ^ base.GetHashCode();
result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode();
result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode();
result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode();
result = GenerateHash(result) ^ this._padding1.GetHashCode();
result = GenerateHash(result) ^ this._padding2.GetHashCode();
if (this._supplies.Count > 0)
{
for (int idx = 0; idx < this._supplies.Count; idx++)
{
result = GenerateHash(result) ^ this._supplies[idx].GetHashCode();
}
}
return result;
}
}
}
| 36.43222 | 144 | 0.520546 | [
"BSD-2-Clause"
] | cdettmering-unity/open-dis-csharp | CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs | 18,544 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.