/// <summary> /// Initializes a new instance of the <see cref="SubscriptionTemplateResource" /> class. /// </summary> /// <param name="AllowAdditional">Whether to allow additional properties beyond those specified or not.</param> /// <param name="Name">The name of the template (required).</param> /// <param name="PlanTemplate">A template to apply to all plans on a subscription using this template.</param> /// <param name="Properties">The customized properties that are present.</param> public SubscriptionTemplateResource(bool?AllowAdditional = default(bool?), string Name = default(string), TemplateResource PlanTemplate = default(TemplateResource), List <PropertyDefinitionResource> Properties = default(List <PropertyDefinitionResource>)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for SubscriptionTemplateResource and cannot be null"); } else { this.Name = Name; } this.AllowAdditional = AllowAdditional; this.PlanTemplate = PlanTemplate; this.Properties = Properties; }
/// <summary> /// Initializes a new instance of the <see cref="StoreItemTemplateResource" /> class. /// </summary> /// <param name="AllowAdditional">Whether to allow additional properties beyond those specified or not.</param> /// <param name="Behaviors">The customized behaviors that are required or default for this type of item.</param> /// <param name="Name">The name of the template (required).</param> /// <param name="Properties">The customized properties that are present.</param> /// <param name="SkuTemplate">A template to apply to all skus on an item using this template.</param> public StoreItemTemplateResource(bool?AllowAdditional = default(bool?), List <ItemBehaviorDefinitionResource> Behaviors = default(List <ItemBehaviorDefinitionResource>), string Name = default(string), List <PropertyDefinitionResource> Properties = default(List <PropertyDefinitionResource>), TemplateResource SkuTemplate = default(TemplateResource)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for StoreItemTemplateResource and cannot be null"); } else { this.Name = Name; } this.AllowAdditional = AllowAdditional; this.Behaviors = Behaviors; this.Properties = Properties; this.SkuTemplate = SkuTemplate; }