Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateDraftInput" /> class.
        /// </summary>


        /// <param name="Category">Category of action.</param>



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



        /// <param name="Config">Configuration to support request and response processing.</param>



        /// <param name="Contract">Action contract.</param>



        /// <param name="Secure">Indication of whether or not the action is designed to accept sensitive data.</param>



        /// <param name="Version">Version of current Draft (required).</param>


        public UpdateDraftInput(string Category = null, string Name = null, ActionConfig Config = null, ActionContractInput Contract = null, bool?Secure = null, int?Version = null)
        {
            // to ensure "Version" is required (not null)
            if (Version == null)
            {
                throw new InvalidDataException("Version is a required property for UpdateDraftInput and cannot be null");
            }
            else
            {
                this.Version = Version;
            }



            this.Category = Category;



            this.Name = Name;



            this.Config = Config;



            this.Contract = Contract;



            this.Secure = Secure;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateActionInput" /> class.
 /// </summary>
 /// <param name="Category">Category of action, Can be up to 256 characters long.</param>
 /// <param name="Name">Name of action, Can be up to 256 characters long.</param>
 /// <param name="Config">Configuration to support request and response processing.</param>
 /// <param name="Version">Version of this action (required).</param>
 public UpdateActionInput(string Category = null, string Name = null, ActionConfig Config = null, int?Version = null)
 {
     this.Category = Category;
     this.Name     = Name;
     this.Config   = Config;
     this.Version  = Version;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateDraftInput" /> class.
 /// </summary>
 /// <param name="Category">Category of action, Can be up to 256 characters long.</param>
 /// <param name="Name">Name of action, Can be up to 256 characters long.</param>
 /// <param name="Config">Configuration to support request and response processing.</param>
 /// <param name="Contract">Action contract.</param>
 /// <param name="Secure">Indication of whether or not the action is designed to accept sensitive data.</param>
 /// <param name="Version">Version of current Draft (required).</param>
 public UpdateDraftInput(string Category = null, string Name = null, ActionConfig Config = null, ActionContractInput Contract = null, bool?Secure = null, int?Version = null)
 {
     this.Category = Category;
     this.Name     = Name;
     this.Config   = Config;
     this.Contract = Contract;
     this.Secure   = Secure;
     this.Version  = Version;
 }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Action" /> class.
        /// </summary>



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



        /// <param name="IntegrationId">The ID of the integration for which this action is associated.</param>



        /// <param name="Category">Category of Action.</param>



        /// <param name="Contract">Action contract.</param>



        /// <param name="Version">Version of this action.</param>



        /// <param name="Secure">Indication of whether or not the action is designed to accept sensitive data.</param>



        /// <param name="Config">Configuration to support request and response processing.</param>



        public Action(string Name = null, string IntegrationId = null, string Category = null, ActionContract Contract = null, int?Version = null, bool?Secure = null, ActionConfig Config = null)
        {
            this.Name = Name;



            this.IntegrationId = IntegrationId;



            this.Category = Category;



            this.Contract = Contract;



            this.Version = Version;



            this.Secure = Secure;



            this.Config = Config;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PostActionInput" /> class.
 /// </summary>
 /// <param name="Category">Category of action, Can be up to 256 characters long (required).</param>
 /// <param name="Name">Name of action, Can be up to 256 characters long (required).</param>
 /// <param name="IntegrationId">The ID of the integration this action is associated to (required).</param>
 /// <param name="Config">Configuration to support request and response processing (required).</param>
 /// <param name="Contract">Action contract (required).</param>
 /// <param name="Secure">Indication of whether or not the action is designed to accept sensitive data.</param>
 public PostActionInput(string Category = null, string Name = null, string IntegrationId = null, ActionConfig Config = null, ActionContractInput Contract = null, bool?Secure = null)
 {
     this.Category      = Category;
     this.Name          = Name;
     this.IntegrationId = IntegrationId;
     this.Config        = Config;
     this.Contract      = Contract;
     this.Secure        = Secure;
 }
Example #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PostActionInput" /> class.
        /// </summary>


        /// <param name="Category">Category of action (required).</param>



        /// <param name="Name">Name of action (required).</param>



        /// <param name="IntegrationId">The ID of the integration this action is associated to (required).</param>



        /// <param name="Config">Configuration to support request and response processing (required).</param>



        /// <param name="Contract">Action contract (required).</param>



        /// <param name="Secure">Indication of whether or not the action is designed to accept sensitive data.</param>


        public PostActionInput(string Category = null, string Name = null, string IntegrationId = null, ActionConfig Config = null, ActionContractInput Contract = null, bool?Secure = null)
        {
            // to ensure "Category" is required (not null)
            if (Category == null)
            {
                throw new InvalidDataException("Category is a required property for PostActionInput and cannot be null");
            }
            else
            {
                this.Category = Category;
            }



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



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



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



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



            this.Secure = Secure;
        }