/// <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="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; }
/// <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; }
/// <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; }