/// <summary>
        /// Initializes a new instance of the <see cref="ClientApp" /> class.
        /// </summary>



        /// <param name="IntegrationType">Type of the integration.</param>



        /// <param name="IntendedState">Configured state of the integration. (required).</param>



        /// <param name="Config">Configuration information for the integration..</param>



        /// <param name="ReportedState">Last reported status of the integration..</param>



        /// <param name="Attributes">Read-only attributes for the integration..</param>



        public ClientApp(IntegrationType IntegrationType = null, IntendedStateEnum?IntendedState = null, ClientAppConfigurationInfo Config = null, IntegrationStatusInfo ReportedState = null, Dictionary <string, string> Attributes = null)
        {
            // to ensure "IntendedState" is required (not null)
            if (IntendedState == null)
            {
                throw new InvalidDataException("IntendedState is a required property for ClientApp and cannot be null");
            }
            else
            {
                this.IntendedState = IntendedState;
            }



            this.IntegrationType = IntegrationType;



            this.Config = Config;



            this.ReportedState = ReportedState;



            this.Attributes = Attributes;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientApp" /> class.
 /// </summary>
 /// <param name="IntegrationType">Type of the integration.</param>
 /// <param name="IntendedState">Configured state of the integration. (required).</param>
 /// <param name="Config">Configuration information for the integration..</param>
 /// <param name="ReportedState">Last reported status of the integration..</param>
 /// <param name="Attributes">Read-only attributes for the integration..</param>
 public ClientApp(IntegrationType IntegrationType = null, IntendedStateEnum?IntendedState = null, ClientAppConfigurationInfo Config = null, IntegrationStatusInfo ReportedState = null, Dictionary <string, string> Attributes = null)
 {
     this.IntegrationType = IntegrationType;
     this.IntendedState   = IntendedState;
     this.Config          = Config;
     this.ReportedState   = ReportedState;
     this.Attributes      = Attributes;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateIntegrationRequest" /> class.
        /// </summary>



        /// <param name="Name">The name of the integration, used to distinguish this integration from others of the same type. (required).</param>



        /// <param name="IntegrationType">Type of the integration to create. (required).</param>



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



            // to ensure "IntegrationType" is required (not null)
            if (IntegrationType == null)
            {
                throw new InvalidDataException("IntegrationType is a required property for CreateIntegrationRequest and cannot be null");
            }
            else
            {
                this.IntegrationType = IntegrationType;
            }
        }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateIntegrationRequest" /> class.
 /// </summary>
 /// <param name="Name">The name of the integration, used to distinguish this integration from others of the same type. (required).</param>
 /// <param name="IntegrationType">Type of the integration to create. (required).</param>
 public CreateIntegrationRequest(string Name = null, IntegrationType IntegrationType = null)
 {
     this.Name            = Name;
     this.IntegrationType = IntegrationType;
 }