/// <summary> /// Initializes a new instance of the <see cref="PolicyResponse" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="description">Description of what the policy is entitling.</param> /// <param name="applications">Applications to which the policy applies.</param> /// <param name="grant">grant.</param> /// <param name="selectors">Selectors that this policy will be applied to.</param> /// <param name="_for">\"For Specification\" for when the policy is to be applied.</param> /// <param name="_if">\"If Specification\" for when the policy is to be applied.</param> /// <param name="when">when.</param> /// <param name="how">how.</param> /// <param name="links">links.</param> public PolicyResponse(PolicyId id = default(PolicyId), string description = default(string), List <string> applications = default(List <string>), Grant grant = default(Grant), List <SelectorDefinition> selectors = default(List <SelectorDefinition>), List <ForSpec> _for = default(List <ForSpec>), List <IfExpression> _if = default(List <IfExpression>), WhenSpec when = default(WhenSpec), HowSpec how = default(HowSpec), List <Link> links = default(List <Link>)) { this.Description = description; this.Applications = applications; this.Selectors = selectors; this.For = _for; this.If = _if; this.Links = links; this.Id = id; this.Description = description; this.Applications = applications; this.Grant = grant; this.Selectors = selectors; this.For = _for; this.If = _if; this.When = when; this.How = how; this.Links = links; }
/// <summary> /// Initializes a new instance of the <see cref="AttachedPolicyDefinitionResponse" /> class. /// </summary> /// <param name="sourceRole">sourceRole.</param> /// <param name="roleHierarchyIndex">roleHierarchyIndex.</param> /// <param name="description">description.</param> /// <param name="applications">applications.</param> /// <param name="policyType">policyType.</param> /// <param name="id">id.</param> /// <param name="grant">grant.</param> /// <param name="selectors">selectors.</param> /// <param name="_for">_for.</param> /// <param name="_if">_if.</param> /// <param name="when">when.</param> /// <param name="how">how.</param> public AttachedPolicyDefinitionResponse(RoleId sourceRole = default(RoleId), int?roleHierarchyIndex = default(int?), string description = default(string), List <string> applications = default(List <string>), PolicyType policyType = default(PolicyType), PolicyId id = default(PolicyId), Grant grant = default(Grant), List <SelectorDefinition> selectors = default(List <SelectorDefinition>), List <ForSpec> _for = default(List <ForSpec>), List <IfExpression> _if = default(List <IfExpression>), WhenSpec when = default(WhenSpec), HowSpec how = default(HowSpec)) { this.Description = description; this.Applications = applications; this.Selectors = selectors; this.For = _for; this.If = _if; this.SourceRole = sourceRole; this.RoleHierarchyIndex = roleHierarchyIndex; this.Description = description; this.Applications = applications; this.PolicyType = policyType; this.Id = id; this.Grant = grant; this.Selectors = selectors; this.For = _for; this.If = _if; this.When = when; this.How = how; }