/// <summary> /// Initializes a new instance of the <see cref="PutReleaseRequest" /> class. /// </summary> /// <param name="ReleaseName">The release name (required).</param> /// <param name="ReleaseDescription">The release description.</param> /// <param name="SdlcStatusType">The release SDLC status type (required).</param> /// <param name="OwnerId">The owner id for the release (required).</param> public PutReleaseRequest(string ReleaseName = default(string), string ReleaseDescription = default(string), SdlcStatusTypeEnum SdlcStatusType = default(SdlcStatusTypeEnum), int?OwnerId = default(int?)) { // to ensure "ReleaseName" is required (not null) if (ReleaseName == null) { throw new InvalidDataException("ReleaseName is a required property for PutReleaseRequest and cannot be null"); } else { this.ReleaseName = ReleaseName; } // to ensure "SdlcStatusType" is required (not null) if (SdlcStatusType == null) { throw new InvalidDataException("SdlcStatusType is a required property for PutReleaseRequest and cannot be null"); } else { this.SdlcStatusType = SdlcStatusType; } // to ensure "OwnerId" is required (not null) if (OwnerId == null) { throw new InvalidDataException("OwnerId is a required property for PutReleaseRequest and cannot be null"); } else { this.OwnerId = OwnerId; } this.ReleaseDescription = ReleaseDescription; }
/// <summary> /// Initializes a new instance of the <see cref="PostReleaseRequest" /> class. /// </summary> /// <param name="ApplicationId">The application id (required).</param> /// <param name="ReleaseName">The release name (required).</param> /// <param name="ReleaseDescription">The release description.</param> /// <param name="CopyState">Indicates if copy state is used.</param> /// <param name="CopyStateReleaseId">The release id to use if CopyState is trueS.</param> /// <param name="SdlcStatusType">The release SDLC status type (required).</param> public PostReleaseRequest(int?ApplicationId = default(int?), string ReleaseName = default(string), string ReleaseDescription = default(string), bool?CopyState = default(bool?), int?CopyStateReleaseId = default(int?), SdlcStatusTypeEnum SdlcStatusType = default(SdlcStatusTypeEnum)) { // to ensure "ApplicationId" is required (not null) if (ApplicationId == null) { throw new InvalidDataException("ApplicationId is a required property for PostReleaseRequest and cannot be null"); } else { this.ApplicationId = ApplicationId; } // to ensure "ReleaseName" is required (not null) if (ReleaseName == null) { throw new InvalidDataException("ReleaseName is a required property for PostReleaseRequest and cannot be null"); } else { this.ReleaseName = ReleaseName; } // to ensure "SdlcStatusType" is required (not null) if (SdlcStatusType == null) { throw new InvalidDataException("SdlcStatusType is a required property for PostReleaseRequest and cannot be null"); } else { this.SdlcStatusType = SdlcStatusType; } this.ReleaseDescription = ReleaseDescription; this.CopyState = CopyState; this.CopyStateReleaseId = CopyStateReleaseId; }
/// <summary> /// Initializes a new instance of the <see cref="PostApplicationRequest" /> class. /// </summary> /// <param name="ApplicationName">The application title (required).</param> /// <param name="ApplicationDescription">Description of the application that will help you manage multiple applications.</param> /// <param name="ApplicationType">Indicates if the application is a mobile application (required).</param> /// <param name="ReleaseName">The release name (required).</param> /// <param name="ReleaseDescription">Description to add additional details that help describe the release.</param> /// <param name="EmailList">List the email addresses of additional people who should be informed of activity related to this release. Separate multiple email addresses with a semicolon or comma.</param> /// <param name="OwnerId">Select an Owner from the list of registered users in your tenant. The \"Owner\" receives all email notifications related to this application (required).</param> /// <param name="Attributes">Application attributes. This is an array of key/value objects. Example, [{\"Attribute 1\": \"value 1\"}, {\"Attribute 2\": \"value 2\"}, {\"Attribute 3\": \"value 3\"} ].</param> /// <param name="BusinessCriticalityType">The business criticality id (required).</param> /// <param name="SdlcStatusType">The SDLC status id (required).</param> public PostApplicationRequest(string ApplicationName = default(string), string ApplicationDescription = default(string), ApplicationTypeEnum ApplicationType = default(ApplicationTypeEnum), string ReleaseName = default(string), string ReleaseDescription = default(string), string EmailList = default(string), int?OwnerId = default(int?), List <ApplicationAttribute> Attributes = default(List <ApplicationAttribute>), BusinessCriticalityTypeEnum BusinessCriticalityType = default(BusinessCriticalityTypeEnum), SdlcStatusTypeEnum SdlcStatusType = default(SdlcStatusTypeEnum)) { // to ensure "ApplicationName" is required (not null) if (ApplicationName == null) { throw new InvalidDataException("ApplicationName is a required property for PostApplicationRequest and cannot be null"); } else { this.ApplicationName = ApplicationName; } // to ensure "ApplicationType" is required (not null) if (ApplicationType == null) { throw new InvalidDataException("ApplicationType is a required property for PostApplicationRequest and cannot be null"); } else { this.ApplicationType = ApplicationType; } // to ensure "ReleaseName" is required (not null) if (ReleaseName == null) { throw new InvalidDataException("ReleaseName is a required property for PostApplicationRequest and cannot be null"); } else { this.ReleaseName = ReleaseName; } // to ensure "OwnerId" is required (not null) if (OwnerId == null) { throw new InvalidDataException("OwnerId is a required property for PostApplicationRequest and cannot be null"); } else { this.OwnerId = OwnerId; } // to ensure "BusinessCriticalityType" is required (not null) if (BusinessCriticalityType == null) { throw new InvalidDataException("BusinessCriticalityType is a required property for PostApplicationRequest and cannot be null"); } else { this.BusinessCriticalityType = BusinessCriticalityType; } // to ensure "SdlcStatusType" is required (not null) if (SdlcStatusType == null) { throw new InvalidDataException("SdlcStatusType is a required property for PostApplicationRequest and cannot be null"); } else { this.SdlcStatusType = SdlcStatusType; } this.ApplicationDescription = ApplicationDescription; this.ReleaseDescription = ReleaseDescription; this.EmailList = EmailList; this.Attributes = Attributes; }