/// <summary>
 /// Initializes a new instance of the <see cref="SessionEndDetails" /> class.
 /// </summary>
 /// <param name="Type">The type of termination handling that resulted in the session end. It can be either Exit or Disconnect.</param>
 /// <param name="Reason">The reason for termination action. It can be due to an error or normal flow execution.</param>
 public SessionEndDetails(TypeEnum?Type = null, string Reason = null)
 {
     this.Type   = Type;
     this.Reason = Reason;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateDocumentSource" /> class.
 /// </summary>
 /// <param name="type">type.</param>
 /// <param name="embeddedData">embeddedData.</param>
 /// <param name="sourceURL">sourceURL.</param>
 public CreateDocumentSource(TypeEnum?type = default(TypeEnum?), System.IO.Stream embeddedData = default(System.IO.Stream), string sourceURL = default(string))
 {
     this.Type         = type;
     this.EmbeddedData = embeddedData;
     this.SourceURL    = sourceURL;
 }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AddressBookItem" /> class.
        /// </summary>
        /// <param name="currency">Currency, i.e &#x60;\&quot;BTC\&quot;&#x60;, &#x60;\&quot;ETH\&quot;&#x60; (required).</param>
        /// <param name="address">Address in proper format for currency (required).</param>
        /// <param name="type">Address book type.</param>
        /// <param name="creationTimestamp">The timestamp (seconds since the Unix epoch, with millisecond precision) (required).</param>
        public AddressBookItem(CurrencyEnum currency = default(CurrencyEnum), string address = default(string), TypeEnum?type = default(TypeEnum?), int?creationTimestamp = default(int?))
        {
            // to ensure "currency" is required (not null)
            if (currency == null)
            {
                throw new InvalidDataException("currency is a required property for AddressBookItem and cannot be null");
            }
            else
            {
                this.Currency = currency;
            }

            // to ensure "address" is required (not null)
            if (address == null)
            {
                throw new InvalidDataException("address is a required property for AddressBookItem and cannot be null");
            }
            else
            {
                this.Address = address;
            }

            // to ensure "creationTimestamp" is required (not null)
            if (creationTimestamp == null)
            {
                throw new InvalidDataException("creationTimestamp is a required property for AddressBookItem and cannot be null");
            }
            else
            {
                this.CreationTimestamp = creationTimestamp;
            }

            this.Type = type;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueConversationSocialExpressionEventTopicDisconnectReason" /> class.
 /// </summary>
 /// <param name="Type">Type.</param>
 /// <param name="Code">Code.</param>
 /// <param name="Phrase">Phrase.</param>
 public QueueConversationSocialExpressionEventTopicDisconnectReason(TypeEnum?Type = null, int?Code = null, string Phrase = null)
 {
     this.Type   = Type;
     this.Code   = Code;
     this.Phrase = Phrase;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LibraryDocumentEvent" /> class.
 /// </summary>
 /// <param name="ActingUserEmail">Email address of the user that created the event.</param>
 /// <param name="ActingUserIpAddress">The IP address of the user that created the event.</param>
 /// <param name="ActingUserName">The name of the acting user.</param>
 /// <param name="Comment">The event comment. For RECALLED or REJECTED, the reason given by the user that initiates the event. For DELEGATE or SHARE, the message from the acting user to the participant.</param>
 /// <param name="Date">The date of the audit event. Format would be yyyy-MM-dd&#39;T&#39;HH:mm:ssZ. For example, e.g 2016-02-25T18:46:19Z represents UTC time.</param>
 /// <param name="Description">A description of the audit event.</param>
 /// <param name="DeviceLocation">Location of the device that generated the event (This value may be null due to limited privileges).</param>
 /// <param name="DevicePhoneNumber">Phone number from the device used when the participation is completed on a mobile phone.</param>
 /// <param name="DigitalSignatureInfo">This is present for ESIGNED events when the participation is signed digitally.</param>
 /// <param name="InitiatingUserEmail">Email address of the user that initiated the event on behalf of the acting user when the account is shared. Will be empty if there is no account sharing in effect.</param>
 /// <param name="InitiatingUserName">Full name of the user that initiated the event on behalf of the acting user when the account is shared. Will be empty if there is no account sharing in effect.</param>
 /// <param name="ParticipantEmail">Email address of the user that is the participant for the event. This may be different than the acting user for certain event types. For example, for a DELEGATION event, this is the user who was delegated to.</param>
 /// <param name="ParticipantId">The unique identifier of the participant for the event. This may be different than the acting user for certain event types. For example, for a DELEGATION event, this is the user who was delegated to.</param>
 /// <param name="ParticipantRole">Role assumed by all participants in the participant set the participant belongs to (signer, approver etc.)..</param>
 /// <param name="SynchronizationId">A unique identifier linking offline events to synchronization events (specified for offline signing events and synchronization events, else null).</param>
 /// <param name="Type">Type of library document event.</param>
 /// <param name="VaultEventId">The identifier assigned by the vault provider for the vault event (if vaulted, otherwise null).</param>
 /// <param name="VaultProviderName">Name of the vault provider for the vault event (if vaulted, otherwise null).</param>
 /// <param name="VersionId">An ID which uniquely identifies the version of the document associated with this audit event.</param>
 public LibraryDocumentEvent(string ActingUserEmail = default(string), string ActingUserIpAddress = default(string), string ActingUserName = default(string), string Comment = default(string), DateTime?Date = default(DateTime?), string Description = default(string), LibDocEventDeviceLocation DeviceLocation = default(LibDocEventDeviceLocation), string DevicePhoneNumber = default(string), DigitalSignatureInfo DigitalSignatureInfo = default(DigitalSignatureInfo), string InitiatingUserEmail = default(string), string InitiatingUserName = default(string), string ParticipantEmail = default(string), string ParticipantId = default(string), ParticipantRoleEnum?ParticipantRole = default(ParticipantRoleEnum?), string SynchronizationId = default(string), TypeEnum?Type = default(TypeEnum?), string VaultEventId = default(string), string VaultProviderName = default(string), string VersionId = default(string))
 {
     this.ActingUserEmail     = ActingUserEmail;
     this.ActingUserIpAddress = ActingUserIpAddress;
     this.ActingUserName      = ActingUserName;
     this.Comment             = Comment;
     this.Date                 = Date;
     this.Description          = Description;
     this.DeviceLocation       = DeviceLocation;
     this.DevicePhoneNumber    = DevicePhoneNumber;
     this.DigitalSignatureInfo = DigitalSignatureInfo;
     this.InitiatingUserEmail  = InitiatingUserEmail;
     this.InitiatingUserName   = InitiatingUserName;
     this.ParticipantEmail     = ParticipantEmail;
     this.ParticipantId        = ParticipantId;
     this.ParticipantRole      = ParticipantRole;
     this.SynchronizationId    = SynchronizationId;
     this.Type                 = Type;
     this.VaultEventId         = VaultEventId;
     this.VaultProviderName    = VaultProviderName;
     this.VersionId            = VersionId;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResolutionDetailQueryFilter" /> class.
 /// </summary>
 /// <param name="Type">Boolean operation to apply to the provided predicates and clauses (required).</param>
 /// <param name="Clauses">Boolean 'and/or' logic with up to two-levels of nesting.</param>
 /// <param name="Predicates">Like a three-word sentence: (attribute-name) (operator) (target-value)..</param>
 public ResolutionDetailQueryFilter(TypeEnum?Type = null, List <ResolutionDetailQueryClause> Clauses = null, List <ResolutionDetailQueryPredicate> Predicates = null)
 {
     this.Type       = Type;
     this.Clauses    = Clauses;
     this.Predicates = Predicates;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueConversationMessageEventTopicMessageMediaParticipant" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Address">Address.</param>
 /// <param name="StartTime">StartTime.</param>
 /// <param name="ConnectedTime">ConnectedTime.</param>
 /// <param name="EndTime">EndTime.</param>
 /// <param name="StartHoldTime">StartHoldTime.</param>
 /// <param name="Purpose">Purpose.</param>
 /// <param name="State">State.</param>
 /// <param name="Direction">Direction.</param>
 /// <param name="DisconnectType">DisconnectType.</param>
 /// <param name="Held">Held.</param>
 /// <param name="WrapupRequired">WrapupRequired.</param>
 /// <param name="WrapupPrompt">WrapupPrompt.</param>
 /// <param name="User">User.</param>
 /// <param name="Queue">Queue.</param>
 /// <param name="Team">Team.</param>
 /// <param name="Attributes">Attributes.</param>
 /// <param name="ErrorInfo">ErrorInfo.</param>
 /// <param name="Script">Script.</param>
 /// <param name="WrapupTimeoutMs">WrapupTimeoutMs.</param>
 /// <param name="WrapupSkipped">WrapupSkipped.</param>
 /// <param name="AlertingTimeoutMs">AlertingTimeoutMs.</param>
 /// <param name="Provider">Provider.</param>
 /// <param name="ExternalContact">ExternalContact.</param>
 /// <param name="ExternalOrganization">ExternalOrganization.</param>
 /// <param name="Wrapup">Wrapup.</param>
 /// <param name="ConversationRoutingData">ConversationRoutingData.</param>
 /// <param name="Peer">Peer.</param>
 /// <param name="ScreenRecordingState">ScreenRecordingState.</param>
 /// <param name="FlaggedReason">FlaggedReason.</param>
 /// <param name="JourneyContext">JourneyContext.</param>
 /// <param name="StartAcwTime">StartAcwTime.</param>
 /// <param name="EndAcwTime">EndAcwTime.</param>
 /// <param name="Messages">Messages.</param>
 /// <param name="Type">Type.</param>
 /// <param name="RecipientCountry">RecipientCountry.</param>
 /// <param name="RecipientType">RecipientType.</param>
 public QueueConversationMessageEventTopicMessageMediaParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?ConnectedTime = null, DateTime?EndTime = null, DateTime?StartHoldTime = null, string Purpose = null, StateEnum?State = null, DirectionEnum?Direction = null, DisconnectTypeEnum?DisconnectType = null, bool?Held = null, bool?WrapupRequired = null, string WrapupPrompt = null, QueueConversationMessageEventTopicUriReference User = null, QueueConversationMessageEventTopicUriReference Queue = null, QueueConversationMessageEventTopicUriReference Team = null, Dictionary <string, string> Attributes = null, QueueConversationMessageEventTopicErrorBody ErrorInfo = null, QueueConversationMessageEventTopicUriReference Script = null, int?WrapupTimeoutMs = null, bool?WrapupSkipped = null, int?AlertingTimeoutMs = null, string Provider = null, QueueConversationMessageEventTopicUriReference ExternalContact = null, QueueConversationMessageEventTopicUriReference ExternalOrganization = null, QueueConversationMessageEventTopicWrapup Wrapup = null, QueueConversationMessageEventTopicConversationRoutingData ConversationRoutingData = null, string Peer = null, string ScreenRecordingState = null, FlaggedReasonEnum?FlaggedReason = null, QueueConversationMessageEventTopicJourneyContext JourneyContext = null, DateTime?StartAcwTime = null, DateTime?EndAcwTime = null, List <QueueConversationMessageEventTopicMessageDetails> Messages = null, TypeEnum?Type = null, string RecipientCountry = null, string RecipientType = null)
 {
     this.Id                      = Id;
     this.Name                    = Name;
     this.Address                 = Address;
     this.StartTime               = StartTime;
     this.ConnectedTime           = ConnectedTime;
     this.EndTime                 = EndTime;
     this.StartHoldTime           = StartHoldTime;
     this.Purpose                 = Purpose;
     this.State                   = State;
     this.Direction               = Direction;
     this.DisconnectType          = DisconnectType;
     this.Held                    = Held;
     this.WrapupRequired          = WrapupRequired;
     this.WrapupPrompt            = WrapupPrompt;
     this.User                    = User;
     this.Queue                   = Queue;
     this.Team                    = Team;
     this.Attributes              = Attributes;
     this.ErrorInfo               = ErrorInfo;
     this.Script                  = Script;
     this.WrapupTimeoutMs         = WrapupTimeoutMs;
     this.WrapupSkipped           = WrapupSkipped;
     this.AlertingTimeoutMs       = AlertingTimeoutMs;
     this.Provider                = Provider;
     this.ExternalContact         = ExternalContact;
     this.ExternalOrganization    = ExternalOrganization;
     this.Wrapup                  = Wrapup;
     this.ConversationRoutingData = ConversationRoutingData;
     this.Peer                    = Peer;
     this.ScreenRecordingState    = ScreenRecordingState;
     this.FlaggedReason           = FlaggedReason;
     this.JourneyContext          = JourneyContext;
     this.StartAcwTime            = StartAcwTime;
     this.EndAcwTime              = EndAcwTime;
     this.Messages                = Messages;
     this.Type                    = Type;
     this.RecipientCountry        = RecipientCountry;
     this.RecipientType           = RecipientType;
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse2014DataRelationshipsDebitAccountData" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type of the resource.</param>
 public InlineResponse2014DataRelationshipsDebitAccountData(string Id = default(string), TypeEnum?Type = default(TypeEnum?))
 {
     this.Id   = Id;
     this.Type = Type;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataProcResourceDetails" /> class.
 /// </summary>
 /// <param name="_class">_class (default to &quot;io.skymind.resource.model.subtypes.compute.DataProcResourceDetails&quot;).</param>
 /// <param name="resourceId">ID of the resource.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="subType">Resource subtype.</param>
 /// <param name="projectId">Project ID.</param>
 /// <param name="region">DataProc region.</param>
 /// <param name="sparkClusterName">Name of the spark cluster.</param>
 public DataProcResourceDetails(string _class = "io.skymind.resource.model.subtypes.compute.DataProcResourceDetails", long?resourceId = default(long?), TypeEnum?type = default(TypeEnum?), SubTypeEnum?subType = default(SubTypeEnum?), string projectId = default(string), string region = default(string), string sparkClusterName = default(string))
 {
     // use default value if no "_class" provided
     if (_class == null)
     {
         this.Class = "io.skymind.resource.model.subtypes.compute.DataProcResourceDetails";
     }
     else
     {
         this.Class = _class;
     }
     this.ResourceId       = resourceId;
     this.Type             = type;
     this.SubType          = subType;
     this.ProjectId        = projectId;
     this.Region           = region;
     this.SparkClusterName = sparkClusterName;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InputCollectionSearchNumeric" /> class.
 /// </summary>
 /// <param name="input">Collection of strings to search (required).</param>
 /// <param name="match">Number to match (required).</param>
 /// <param name="type">Type of number - integer or decimal (default to TypeEnum.Integer).</param>
 public InputCollectionSearchNumeric(List <decimal> input = default(List <decimal>), decimal match = default(decimal), TypeEnum?type = TypeEnum.Integer)
 {
     // to ensure "input" is required (not null)
     this.Input = input ?? throw new ArgumentNullException("input is a required property for InputCollectionSearchNumeric and cannot be null");
     this.Match = match;
     this.Type  = type;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TradeClientExtensionsModifyTransaction" /> class.
 /// </summary>
 /// <param name="Id">The Transaction&#39;s Identifier..</param>
 /// <param name="Time">The date/time when the Transaction was created..</param>
 /// <param name="UserID">The ID of the user that initiated the creation of the Transaction..</param>
 /// <param name="AccountID">The ID of the Account the Transaction was created for..</param>
 /// <param name="BatchID">The ID of the \&quot;batch\&quot; that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously..</param>
 /// <param name="RequestID">The Request ID of the request which generated the transaction..</param>
 /// <param name="Type">The Type of the Transaction. Always set to \&quot;TRADE_CLIENT_EXTENSIONS_MODIFY\&quot; for a TradeClientExtensionsModifyTransaction..</param>
 /// <param name="TradeID">The ID of the Trade who&#39;s client extensions are to be modified..</param>
 /// <param name="ClientTradeID">The original Client ID of the Trade who&#39;s client extensions are to be modified..</param>
 /// <param name="TradeClientExtensionsModify">TradeClientExtensionsModify.</param>
 public TradeClientExtensionsModifyTransaction(string Id = default(string), string Time = default(string), int?UserID = default(int?), string AccountID = default(string), string BatchID = default(string), string RequestID = default(string), TypeEnum?Type = default(TypeEnum?), string TradeID = default(string), string ClientTradeID = default(string), ClientExtensions TradeClientExtensionsModify = default(ClientExtensions))
 {
     this.Id            = Id;
     this.Time          = Time;
     this.UserID        = UserID;
     this.AccountID     = AccountID;
     this.BatchID       = BatchID;
     this.RequestID     = RequestID;
     this.Type          = Type;
     this.TradeID       = TradeID;
     this.ClientTradeID = ClientTradeID;
     this.TradeClientExtensionsModify = TradeClientExtensionsModify;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HypervProtectionSource" /> class.
 /// </summary>
 /// <param name="agents">Array of Agents on the Physical Protection Source.  Specifiles the agents running on the HyperV Protection Source and the status information..</param>
 /// <param name="backupType">Specifies the type of backup supported by the VM. &#39;kRctBackup&#39;, &#39;kVssBackup&#39; Specifies the type of an HyperV datastore object. &#39;kRctBackup&#39; indicates backup is done using RCT/checkpoints. &#39;kVssBackup&#39; indicates backup is done using VSS..</param>
 /// <param name="clusterName">Specifies the cluster name for &#39;kHostCluster&#39; objects..</param>
 /// <param name="datastoreInfo">datastoreInfo.</param>
 /// <param name="description">Specifies a description about the Protection Source..</param>
 /// <param name="hostType">Specifies host OS type for &#39;kVirtualMachine&#39; objects. &#39;kLinux&#39; indicates the Linux operating system. &#39;kWindows&#39; indicates the Microsoft Windows operating system. &#39;kAix&#39; indicates the IBM AIX operating system. &#39;kSolaris&#39; indicates the Oracle Solaris operating system..</param>
 /// <param name="hypervUuid">Specifies the UUID for &#39;kVirtualMachine&#39; HyperV objects..</param>
 /// <param name="name">Specifies the name of the HyperV Object..</param>
 /// <param name="tagAttributes">Specifies the list of VM Tag attributes associated with this Object..</param>
 /// <param name="type">Specifies the type of an HyperV Protection Source Object such as &#39;kSCVMMServer&#39;, &#39;kStandaloneHost&#39;, &#39;kNetwork&#39;, etc. overrideDescription: true Specifies the type of an HyperV Protection Source. &#39;kSCVMMServer&#39; indicates a collection of root folders clusters. &#39;kStandaloneHost&#39; indicates a single Nutanix cluster. &#39;kStandaloneCluster&#39; indicates a single Nutanix cluster. &#39;kHostGroup&#39; indicates a Nutanix cluster manageed by a Prism Central. &#39;kHost&#39; indicates an HyperV host. &#39;kHostCluster&#39; indicates a Nutanix cluster manageed by a Prism Central. &#39;kVirtualMachine&#39; indicates a Virtual Machine. &#39;kNetwork&#39; indicates a Virtual Machine network object. &#39;kDatastore&#39; represents a storage container object..</param>
 /// <param name="uuid">Specifies the UUID of the Object. This is unique within the HyperV environment..</param>
 /// <param name="vmInfo">vmInfo.</param>
 public HypervProtectionSource(List <AgentInformation> agents = default(List <AgentInformation>), BackupTypeEnum?backupType = default(BackupTypeEnum?), string clusterName = default(string), HypervDatastore datastoreInfo = default(HypervDatastore), string description = default(string), HostTypeEnum?hostType = default(HostTypeEnum?), string hypervUuid = default(string), string name = default(string), List <TagAttribute> tagAttributes = default(List <TagAttribute>), TypeEnum?type = default(TypeEnum?), string uuid = default(string), HypervVirtualMachine vmInfo = default(HypervVirtualMachine))
 {
     this.Agents        = agents;
     this.BackupType    = backupType;
     this.ClusterName   = clusterName;
     this.Description   = description;
     this.HostType      = hostType;
     this.HypervUuid    = hypervUuid;
     this.Name          = name;
     this.TagAttributes = tagAttributes;
     this.Type          = type;
     this.Uuid          = uuid;
     this.Agents        = agents;
     this.BackupType    = backupType;
     this.ClusterName   = clusterName;
     this.DatastoreInfo = datastoreInfo;
     this.Description   = description;
     this.HostType      = hostType;
     this.HypervUuid    = hypervUuid;
     this.Name          = name;
     this.TagAttributes = tagAttributes;
     this.Type          = type;
     this.Uuid          = uuid;
     this.VmInfo        = vmInfo;
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestoreTask" /> class.
 /// </summary>
 /// <param name="acropolisParameters">Specifies parameters for &#39;kAcropolis&#39; restore task..</param>
 /// <param name="archiveTaskUid">archiveTaskUid.</param>
 /// <param name="cloneViewParameters">cloneViewParameters.</param>
 /// <param name="continueOnError">Specifies if the Restore Task should continue when some operations on some objects fail. If true, the Cohesity Cluster ignores intermittent errors and restores as many objects as possible..</param>
 /// <param name="datastoreId">Specifies the datastore where the object&#39;s files are recovered to. This field is populated when objects are recovered to a different resource pool or to a different parent source. This field is not populated when objects are recovered to their original datastore locations in the original parent source..</param>
 /// <param name="endTimeUsecs">Specifies the end time of the Restore Task as a Unix epoch Timestamp (in microseconds). This field is only populated if the Restore Task completes..</param>
 /// <param name="error">error.</param>
 /// <param name="fullViewName">Specifies the full name of a View..</param>
 /// <param name="hypervParameters">Specifies additional parameters for &#39;kHyperV&#39; restore objects..</param>
 /// <param name="id">Specifies the id of the Restore Task assigned by Cohesity Cluster..</param>
 /// <param name="mountVolumesState">Specifies the states of mounting all the volumes onto a mount target for a &#39;kRecoverVMs&#39; Restore Task..</param>
 /// <param name="name">Specifies the name of the Restore Task. This field must be set and must be a unique name. (required).</param>
 /// <param name="newParentId">Specify a new registered parent Protection Source. If specified the selected objects are cloned or recovered to this new Protection Source. If not specified, objects are cloned or recovered to the original Protection Source that was managing them..</param>
 /// <param name="objects">Specifies a list of Protection Source objects or Protection Job objects (with specified Protection Source objects)..</param>
 /// <param name="restoreObjectState">Specifies the states of all the objects for the &#39;kRecoverVMs&#39; and &#39;kCloneVMs&#39; Restore Tasks..</param>
 /// <param name="startTimeUsecs">Specifies the start time for the Restore Task as a Unix epoch Timestamp (in microseconds)..</param>
 /// <param name="status">Specifies the overall status of the Restore Task. &#39;kReadyToSchedule&#39; indicates the Restore Task is waiting to be scheduled. &#39;kProgressMonitorCreated&#39; indicates the progress monitor for the Restore Task has been created. &#39;kRetrievedFromArchive&#39; indicates that the objects to restore have been retrieved from the specified archive. A Task will only ever transition to this state if a retrieval is necessary. &#39;kAdmitted&#39; indicates the task has been admitted. After a task has been admitted, its status does not move back to &#39;kReadyToSchedule&#39; state even if it is rescheduled. &#39;kInProgress&#39; indicates that the Restore Task is in progress. &#39;kFinishingProgressMonitor&#39; indicates that the Restore Task is finishing its progress monitoring. &#39;kFinished&#39; indicates that the Restore Task has finished. The status indicating success or failure is found in the error code that is stored with the Restore Task..</param>
 /// <param name="targetViewCreated">Is true if a new View was created by a &#39;kCloneVMs&#39; Restore Task. This field is only set for a &#39;kCloneVMs&#39; Restore Task..</param>
 /// <param name="type">Specifies the type of Restore Task.  &#39;kRecoverVMs&#39; specifies a Restore Task that recovers VMs. &#39;kCloneVMs&#39; specifies a Restore Task that clones VMs. &#39;kCloneView&#39; specifies a Restore Task that clones a View. &#39;kMountVolumes&#39; specifies a Restore Task that mounts volumes. &#39;kRestoreFiles&#39; specifies a Restore Task that recovers files and folders..</param>
 /// <param name="username">Specifies the Cohesity user who requested this Restore Task..</param>
 /// <param name="viewBoxId">Specifies the id of the Domain (View Box) where the View is stored..</param>
 /// <param name="vlanParameters">Specifies VLAN parameters for the restore operation..</param>
 /// <param name="vmwareParameters">Specifies additional parameters for &#39;kVmware&#39; restore objects..</param>
 public RestoreTask(AcropolisRestoreParameters acropolisParameters = default(AcropolisRestoreParameters), UniqueGlobalId8 archiveTaskUid = default(UniqueGlobalId8), View_ cloneViewParameters = default(View_), bool?continueOnError = default(bool?), long?datastoreId = default(long?), long?endTimeUsecs = default(long?), RestoreTaskError_ error = default(RestoreTaskError_), string fullViewName = default(string), HypervRestoreParameters hypervParameters = default(HypervRestoreParameters), long?id = default(long?), MountVolumesState mountVolumesState = default(MountVolumesState), string name = default(string), long?newParentId = default(long?), List <RestoreObject> objects = default(List <RestoreObject>), List <RestoreObjectState> restoreObjectState = default(List <RestoreObjectState>), long?startTimeUsecs = default(long?), StatusEnum?status = default(StatusEnum?), bool?targetViewCreated = default(bool?), TypeEnum?type = default(TypeEnum?), string username = default(string), long?viewBoxId = default(long?), VlanParameters vlanParameters = default(VlanParameters), VmwareRestoreParameters vmwareParameters = default(VmwareRestoreParameters))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for RestoreTask and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     this.AcropolisParameters = acropolisParameters;
     this.ArchiveTaskUid      = archiveTaskUid;
     this.CloneViewParameters = cloneViewParameters;
     this.ContinueOnError     = continueOnError;
     this.DatastoreId         = datastoreId;
     this.EndTimeUsecs        = endTimeUsecs;
     this.Error            = error;
     this.FullViewName     = fullViewName;
     this.HypervParameters = hypervParameters;
     this.Id = id;
     this.MountVolumesState  = mountVolumesState;
     this.NewParentId        = newParentId;
     this.Objects            = objects;
     this.RestoreObjectState = restoreObjectState;
     this.StartTimeUsecs     = startTimeUsecs;
     this.Status             = status;
     this.TargetViewCreated  = targetViewCreated;
     this.Type             = type;
     this.Username         = username;
     this.ViewBoxId        = viewBoxId;
     this.VlanParameters   = vlanParameters;
     this.VmwareParameters = vmwareParameters;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MapVariableProperties" /> class.
 /// </summary>
 /// <param name="type">type.</param>
 /// <param name="values">values.</param>
 public MapVariableProperties(TypeEnum?type = default(TypeEnum?), Dictionary <string, string> values = default(Dictionary <string, string>)) : base()
 {
     this.Type   = type;
     this.Values = values;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageConversationNotificationMessageMediaParticipant" /> class.
        /// </summary>


        /// <param name="Id">Id.</param>



        /// <param name="Name">Name.</param>



        /// <param name="Address">Address.</param>



        /// <param name="StartTime">StartTime.</param>



        /// <param name="ConnectedTime">ConnectedTime.</param>



        /// <param name="EndTime">EndTime.</param>



        /// <param name="StartHoldTime">StartHoldTime.</param>



        /// <param name="Purpose">Purpose.</param>



        /// <param name="State">State.</param>



        /// <param name="Direction">Direction.</param>



        /// <param name="DisconnectType">DisconnectType.</param>



        /// <param name="Held">Held.</param>



        /// <param name="WrapupRequired">WrapupRequired.</param>



        /// <param name="WrapupPrompt">WrapupPrompt.</param>



        /// <param name="User">User.</param>



        /// <param name="Queue">Queue.</param>



        /// <param name="Attributes">Attributes.</param>



        /// <param name="ErrorInfo">ErrorInfo.</param>



        /// <param name="Script">Script.</param>



        /// <param name="WrapupTimeoutMs">WrapupTimeoutMs.</param>



        /// <param name="WrapupSkipped">WrapupSkipped.</param>



        /// <param name="Provider">Provider.</param>



        /// <param name="ExternalContact">ExternalContact.</param>



        /// <param name="ExternalOrganization">ExternalOrganization.</param>



        /// <param name="Wrapup">Wrapup.</param>



        /// <param name="Peer">Peer.</param>



        /// <param name="ScreenRecordingState">ScreenRecordingState.</param>



        /// <param name="FlaggedReason">FlaggedReason.</param>



        /// <param name="Messages">Messages.</param>



        /// <param name="Type">Type.</param>



        /// <param name="RecipientCountry">RecipientCountry.</param>



        /// <param name="RecipientType">RecipientType.</param>


        public MessageConversationNotificationMessageMediaParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?ConnectedTime = null, DateTime?EndTime = null, DateTime?StartHoldTime = null, string Purpose = null, StateEnum?State = null, DirectionEnum?Direction = null, DisconnectTypeEnum?DisconnectType = null, bool?Held = null, bool?WrapupRequired = null, string WrapupPrompt = null, DocumentDataV2NotificationCreatedBy User = null, MessageConversationNotificationUriReference Queue = null, Dictionary <string, string> Attributes = null, MessageConversationNotificationErrorInfo ErrorInfo = null, MessageConversationNotificationUriReference Script = null, int?WrapupTimeoutMs = null, bool?WrapupSkipped = null, string Provider = null, MessageConversationNotificationUriReference ExternalContact = null, MessageConversationNotificationUriReference ExternalOrganization = null, ConversationNotificationWrapup Wrapup = null, string Peer = null, string ScreenRecordingState = null, FlaggedReasonEnum?FlaggedReason = null, List <MessageConversationNotificationMessages> Messages = null, TypeEnum?Type = null, string RecipientCountry = null, string RecipientType = null)
        {
            this.Id = Id;



            this.Name = Name;



            this.Address = Address;



            this.StartTime = StartTime;



            this.ConnectedTime = ConnectedTime;



            this.EndTime = EndTime;



            this.StartHoldTime = StartHoldTime;



            this.Purpose = Purpose;



            this.State = State;



            this.Direction = Direction;



            this.DisconnectType = DisconnectType;



            this.Held = Held;



            this.WrapupRequired = WrapupRequired;



            this.WrapupPrompt = WrapupPrompt;



            this.User = User;



            this.Queue = Queue;



            this.Attributes = Attributes;



            this.ErrorInfo = ErrorInfo;



            this.Script = Script;



            this.WrapupTimeoutMs = WrapupTimeoutMs;



            this.WrapupSkipped = WrapupSkipped;



            this.Provider = Provider;



            this.ExternalContact = ExternalContact;



            this.ExternalOrganization = ExternalOrganization;



            this.Wrapup = Wrapup;



            this.Peer = Peer;



            this.ScreenRecordingState = ScreenRecordingState;



            this.FlaggedReason = FlaggedReason;



            this.Messages = Messages;



            this.Type = Type;



            this.RecipientCountry = RecipientCountry;



            this.RecipientType = RecipientType;
        }
Beispiel #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatasourceLayout" /> class.
 /// </summary>
 /// <param name="DatasourceType">DatasourceType.</param>
 /// <param name="Type">Type.</param>
 /// <param name="Entities">Entities.</param>
 public DatasourceLayout(IdWithName DatasourceType = default(IdWithName), TypeEnum?Type = default(TypeEnum?), List <EntityDefinition> Entities = default(List <EntityDefinition>))
 {
     this.DatasourceType = DatasourceType;
     this.Type           = Type;
     this.Entities       = Entities;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdcontactsDataRelationshipsContactPeopleData" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type of the resource.</param>
 /// <param name="Attributes">Attributes.</param>
 public CompanyIdcontactsDataRelationshipsContactPeopleData(string Id = default(string), TypeEnum?Type = default(TypeEnum?), CompanyIdcontactsDataRelationshipsContactPeopleAttributes Attributes = default(CompanyIdcontactsDataRelationshipsContactPeopleAttributes))
 {
     this.Id         = Id;
     this.Type       = Type;
     this.Attributes = Attributes;
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdbankFeesidpaymentsData" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 /// <param name="attributes">attributes.</param>
 public CompanyIdbankFeesidpaymentsData(string id = default(string), TypeEnum?type = default(TypeEnum?), PaymentFormAttributes attributes = default(PaymentFormAttributes))
 {
     this.Id         = id;
     this.Type       = type;
     this.Attributes = attributes;
 }
Beispiel #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TermAttribute" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Type">Type.</param>
 public TermAttribute(string Id = null, string Name = null, TypeEnum?Type = null)
 {
     this.Id   = Id;
     this.Name = Name;
     this.Type = Type;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ViewProtectionSource" /> class.
 /// </summary>
 /// <param name="id">Specifies a unique id of a Protection Source for a View. The id is unique across Cohesity Clusters..</param>
 /// <param name="name">Specifies a human readable name of the Protection Source of a View..</param>
 /// <param name="type">Specifies the type of managed Object in a View Protection Source environment. Examples of View Objects include &#39;kViewBox&#39; or &#39;kView&#39;. &#39;kViewBox&#39; indicates Storage Domain as a Protection Source type. &#39;kView&#39; indicates View as a Protection Source type..</param>
 public ViewProtectionSource(UniversalId id = default(UniversalId), string name = default(string), TypeEnum?type = default(TypeEnum?))
 {
     this.Id   = id;
     this.Name = name;
     this.Type = type;
     this.Id   = id;
     this.Name = name;
     this.Type = type;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExpenseCategory" /> class.
 /// </summary>
 /// <param name="Uid">Uid.</param>
 /// <param name="Id">Id.</param>
 /// <param name="CompanyExpenseId">CompanyExpenseId.</param>
 /// <param name="Label">Label.</param>
 /// <param name="Description">Description.</param>
 /// <param name="Type">Type.</param>
 /// <param name="Amount">Amount.</param>
 /// <param name="Actions">Actions.</param>
 public ExpenseCategory(int?Uid = default(int?), int?Id = default(int?), int?CompanyExpenseId = default(int?), string Label = default(string), string Description = default(string), TypeEnum?Type = default(TypeEnum?), decimal?Amount = default(decimal?), List <ActionsEnum> Actions = default(List <ActionsEnum>))
 {
     this.Uid = Uid;
     this.Id  = Id;
     this.CompanyExpenseId = CompanyExpenseId;
     this.Label            = Label;
     this.Description      = Description;
     this.Type             = Type;
     this.Amount           = Amount;
     this.Actions          = Actions;
 }
Beispiel #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AzureProtectionSource_" /> class.
 /// </summary>
 /// <param name="hostType">Specifies the OS type of the Protection Source of type &#39;kVirtualMachine&#39; such as &#39;kWindows&#39; or &#39;kLinux&#39;. overrideDescription: true &#39;kLinux&#39; indicates the Linux operating system. &#39;kWindows&#39; indicates the Microsoft Windows operating system..</param>
 /// <param name="ipAddresses">ipAddresses.</param>
 /// <param name="location">Specifies the physical location of the resource group..</param>
 /// <param name="memoryMbytes">Specifies the amount of memory in MegaBytes of the Azure resource of type &#39;kComputeOptions&#39;..</param>
 /// <param name="name">Specifies the name of the Azure Object set by the Cloud Provider. If the provider did not set a name for the object, this field is not set..</param>
 /// <param name="numCores">Specifies the number of CPU cores of the Azure resource of type &#39;kComputeOptions&#39;..</param>
 /// <param name="resourceId">Specifies the unique Id of the resource in Azure environment..</param>
 /// <param name="type">Specifies the type of an Azure Protection Source Object such as &#39;kStorageContainer&#39;, &#39;kVirtualMachine&#39;, &#39;kVirtualNetwork&#39;, etc. Specifies the type of an Azure source entity. &#39;kSubscription&#39; indicates a billing unit within Azure account. &#39;kResourceGroup&#39; indicates a container that holds related resources. &#39;kVirtualMachine&#39; indicates a Virtual Machine in Azure environment. &#39;kStorageAccount&#39; represents a collection of storage containers. &#39;kStorageKey&#39; indicates a key required to access the storage account. &#39;kStorageContainer&#39; represents a storage container within a storage account. &#39;kStorageBlob&#39; represents a storage blog within a storage container. &#39;kNetworkSecurityGroup&#39; represents a network security group. &#39;kVirtualNetwork&#39; represents a virtual network. &#39;kSubnet&#39; represents a subnet within the virtual network. &#39;kComputeOptions&#39; indicates the number of CPU cores and memory size available for a type of a Virtual Machine..</param>
 public AzureProtectionSource_(HostTypeEnum?hostType = default(HostTypeEnum?), List <string> ipAddresses = default(List <string>), string location = default(string), long?memoryMbytes = default(long?), string name = default(string), int?numCores = default(int?), string resourceId = default(string), TypeEnum?type = default(TypeEnum?))
 {
     this.HostType     = hostType;
     this.IpAddresses  = ipAddresses;
     this.Location     = location;
     this.MemoryMbytes = memoryMbytes;
     this.Name         = name;
     this.NumCores     = numCores;
     this.ResourceId   = resourceId;
     this.Type         = type;
 }
Beispiel #23
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FlowVersion" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="CommitVersion">CommitVersion.</param>



        /// <param name="ConfigurationVersion">ConfigurationVersion.</param>



        /// <param name="Type">Type.</param>



        /// <param name="Secure">Secure.</param>



        /// <param name="CreatedBy">CreatedBy.</param>



        /// <param name="ConfigurationUri">ConfigurationUri.</param>



        /// <param name="DateCreated">DateCreated.</param>



        /// <param name="GenerationId">GenerationId.</param>



        /// <param name="PublishResultUri">PublishResultUri.</param>



        public FlowVersion(string Name = null, string CommitVersion = null, string ConfigurationVersion = null, TypeEnum?Type = null, bool?Secure = null, User CreatedBy = null, string ConfigurationUri = null, long?DateCreated = null, string GenerationId = null, string PublishResultUri = null)
        {
            this.Name = Name;



            this.CommitVersion = CommitVersion;



            this.ConfigurationVersion = ConfigurationVersion;



            this.Type = Type;



            this.Secure = Secure;



            this.CreatedBy = CreatedBy;



            this.ConfigurationUri = ConfigurationUri;



            this.DateCreated = DateCreated;



            this.GenerationId = GenerationId;



            this.PublishResultUri = PublishResultUri;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertRule" /> class.
 /// </summary>
 /// <param name="aggregationPeriod">aggregationPeriod.</param>
 /// <param name="aggregationType">aggregationType.</param>
 /// <param name="alertDestinationIds">alertDestinationIds.</param>
 /// <param name="applicationId">applicationId.</param>
 /// <param name="created">created.</param>
 /// <param name="enabled">enabled.</param>
 /// <param name="groupByField">groupByField.</param>
 /// <param name="id">id.</param>
 /// <param name="insideWorkingHours">insideWorkingHours.</param>
 /// <param name="name">name.</param>
 /// <param name="organizationId">organizationId.</param>
 /// <param name="searchPeriod">searchPeriod.</param>
 /// <param name="thresholdType">thresholdType.</param>
 /// <param name="thresholdValue">thresholdValue.</param>
 /// <param name="type">type.</param>
 /// <param name="updated">updated.</param>
 public AlertRule(string aggregationPeriod = default(string), AggregationTypeEnum?aggregationType = default(AggregationTypeEnum?), List <Guid?> alertDestinationIds = default(List <Guid?>), Guid?applicationId = default(Guid?), DateTime?created = default(DateTime?), bool?enabled = default(bool?), string groupByField = default(string), Guid?id = default(Guid?), bool?insideWorkingHours = default(bool?), string name = default(string), Guid?organizationId = default(Guid?), string searchPeriod = default(string), ThresholdTypeEnum?thresholdType = default(ThresholdTypeEnum?), double?thresholdValue = default(double?), TypeEnum?type = default(TypeEnum?), DateTime?updated = default(DateTime?))
 {
     this.AggregationPeriod   = aggregationPeriod;
     this.AggregationType     = aggregationType;
     this.AlertDestinationIds = alertDestinationIds;
     this.ApplicationId       = applicationId;
     this.Created             = created;
     this.Enabled             = enabled;
     this.GroupByField        = groupByField;
     this.Id = id;
     this.InsideWorkingHours = insideWorkingHours;
     this.Name           = name;
     this.OrganizationId = organizationId;
     this.SearchPeriod   = searchPeriod;
     this.ThresholdType  = thresholdType;
     this.ThresholdValue = thresholdValue;
     this.Type           = type;
     this.Updated        = updated;
 }
Beispiel #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SurveyAggregateQueryClause" /> class.
 /// </summary>
 /// <param name="Type">Boolean operation to apply to the provided predicates (required).</param>
 /// <param name="Predicates">Like a three-word sentence: (attribute-name) (operator) (target-value). (required).</param>
 public SurveyAggregateQueryClause(TypeEnum?Type = null, List <SurveyAggregateQueryPredicate> Predicates = null)
 {
     this.Type       = Type;
     this.Predicates = Predicates;
 }
Beispiel #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Deals" /> class.
 /// </summary>
 /// <param name="id">取引ID (required).</param>
 /// <param name="companyId">事業所ID (required).</param>
 /// <param name="issueDate">発生日 (yyyy-mm-dd) (required).</param>
 /// <param name="dueDate">支払期日 (yyyy-mm-dd).</param>
 /// <param name="amount">金額 (required).</param>
 /// <param name="dueAmount">支払金額.</param>
 /// <param name="type">収支区分 (収入: income, 支出: expense).</param>
 /// <param name="partnerId">取引先ID (required).</param>
 /// <param name="partnerCode">取引先コード.</param>
 /// <param name="refNumber">管理番号.</param>
 /// <param name="status">決済状況 (未決済: unsettled, 完了: settled) (required).</param>
 /// <param name="details">取引の明細行.</param>
 /// <param name="renews">取引の+更新行.</param>
 /// <param name="payments">取引の支払行.</param>
 /// <param name="receipts">証憑ファイル.</param>
 public Deals(int id = default(int), int companyId = default(int), string issueDate = default(string), string dueDate = default(string), int amount = default(int), int dueAmount = default(int), TypeEnum?type = default(TypeEnum?), int partnerId = default(int), string partnerCode = default(string), string refNumber = default(string), StatusEnum status = default(StatusEnum), List <DealsDetails> details = default(List <DealsDetails>), List <DealsRenews> renews = default(List <DealsRenews>), List <DealsPayments> payments = default(List <DealsPayments>), List <Receipt> receipts = default(List <Receipt>))
 {
     this.Id        = id;
     this.CompanyId = companyId;
     // to ensure "issueDate" is required (not null)
     this.IssueDate   = issueDate ?? throw new ArgumentNullException("issueDate is a required property for Deals and cannot be null");;
     this.Amount      = amount;
     this.PartnerId   = partnerId;
     this.Status      = status;
     this.DueDate     = dueDate;
     this.DueAmount   = dueAmount;
     this.Type        = type;
     this.PartnerCode = partnerCode;
     this.RefNumber   = refNumber;
     this.Details     = details;
     this.Renews      = renews;
     this.Payments    = payments;
     this.Receipts    = receipts;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentSurcharge" /> class.
 /// </summary>
 /// <param name="Name">The name of the surcharge..</param>
 /// <param name="AppliedMoney">The amount of money applied to the order as a result of the surcharge..</param>
 /// <param name="Rate">The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \&quot;0.7\&quot; corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set..</param>
 /// <param name="AmountMoney">The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set..</param>
 /// <param name="Type">Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group. See [V1PaymentSurchargeType](#type-v1paymentsurchargetype) for possible values.</param>
 /// <param name="Taxable">Indicates whether the surcharge is taxable..</param>
 /// <param name="Taxes">The list of taxes that should be applied to the surcharge..</param>
 /// <param name="SurchargeId">A Square-issued unique identifier associated with the surcharge..</param>
 public V1PaymentSurcharge(string Name = default(string), V1Money AppliedMoney = default(V1Money), string Rate = default(string), V1Money AmountMoney = default(V1Money), TypeEnum?Type = default(TypeEnum?), bool?Taxable = default(bool?), List <V1PaymentTax> Taxes = default(List <V1PaymentTax>), string SurchargeId = default(string))
 {
     this.Name         = Name;
     this.AppliedMoney = AppliedMoney;
     this.Rate         = Rate;
     this.AmountMoney  = AmountMoney;
     this.Type         = Type;
     this.Taxable      = Taxable;
     this.Taxes        = Taxes;
     this.SurchargeId  = SurchargeId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdcontactsidcontactCreditTransactionsData" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type of the resource.</param>
 /// <param name="Attributes">Attributes.</param>
 public CompanyIdcontactsidcontactCreditTransactionsData(string Id = default(string), TypeEnum?Type = default(TypeEnum?), CompanyIdcontactsidcontactCreditTransactionsDataAttributes Attributes = default(CompanyIdcontactsidcontactCreditTransactionsDataAttributes))
 {
     this.Id         = Id;
     this.Type       = Type;
     this.Attributes = Attributes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRelationshipsContactPeopleData" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 public ContactRelationshipsContactPeopleData(string id = default(string), TypeEnum?type = default(TypeEnum?))
 {
     this.Id   = id;
     this.Type = type;
 }
Beispiel #30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Order" /> class.
 /// </summary>
 /// <param name="text">User defined information. If not empty, must follow the rules below:  1. prefixed with &#x60;t-&#x60; 2. no longer than 28 bytes without &#x60;t-&#x60; prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) .</param>
 /// <param name="currencyPair">Currency pair (required).</param>
 /// <param name="type">Order type. limit - limit order (default to TypeEnum.Limit).</param>
 /// <param name="account">Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account (default to AccountEnum.Spot).</param>
 /// <param name="side">Order side (required).</param>
 /// <param name="amount">Trade amount (required).</param>
 /// <param name="price">Order price (required).</param>
 /// <param name="timeInForce">Time in force  - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee (default to TimeInForceEnum.Gtc).</param>
 /// <param name="iceberg">Amount to display for the iceberg order. Null or 0 for normal orders. Set to -1 to hide the amount totally.</param>
 /// <param name="autoBorrow">Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough..</param>
 /// <param name="autoRepay">Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that:  1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. &#x60;auto_borrow&#x60; and &#x60;auto_repay&#x60; cannot be both set to true in one order..</param>
 public Order(string text = default(string), string currencyPair = default(string), TypeEnum?type = TypeEnum.Limit, AccountEnum?account = AccountEnum.Spot, SideEnum side = default(SideEnum), string amount = default(string), string price = default(string), TimeInForceEnum?timeInForce = TimeInForceEnum.Gtc, string iceberg = default(string), bool autoBorrow = default(bool), bool autoRepay = default(bool))
 {
     // to ensure "currencyPair" is required (not null)
     this.CurrencyPair = currencyPair ?? throw new ArgumentNullException("currencyPair", "currencyPair is a required property for Order and cannot be null");
     this.Side         = side;
     // to ensure "amount" is required (not null)
     this.Amount = amount ?? throw new ArgumentNullException("amount", "amount is a required property for Order and cannot be null");
     // to ensure "price" is required (not null)
     this.Price       = price ?? throw new ArgumentNullException("price", "price is a required property for Order and cannot be null");
     this.Text        = text;
     this.Type        = type;
     this.Account     = account;
     this.TimeInForce = timeInForce;
     this.Iceberg     = iceberg;
     this.AutoBorrow  = autoBorrow;
     this.AutoRepay   = autoRepay;
 }