|
| 1 | +namespace Sdk4me.GraphQL |
| 2 | +{ |
| 3 | + /// <summary> |
| 4 | + /// The <see href="https://developer.4me.com/graphql/object/slacoveragegroup/">SlaCoverageGroup</see> object. |
| 5 | + /// </summary> |
| 6 | + public class SlaCoverageGroup : Node |
| 7 | + { |
| 8 | + /// <summary> |
| 9 | + /// The account this record belongs to. |
| 10 | + /// </summary> |
| 11 | + [JsonProperty("account")] |
| 12 | + public Account? Account { get; internal set; } |
| 13 | + |
| 14 | + /// <summary> |
| 15 | + /// The date and time at which the record was created. |
| 16 | + /// </summary> |
| 17 | + [JsonProperty("createdAt")] |
| 18 | + public DateTime? CreatedAt { get; internal set; } |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// Any additional information about the SLA coverage group. |
| 22 | + /// </summary> |
| 23 | + [JsonProperty("description")] |
| 24 | + public string? Description { get; internal set; } |
| 25 | + |
| 26 | + [JsonProperty("descriptionAttachments")] |
| 27 | + internal NodeCollection<Attachment>? DescriptionAttachmentsCollection { get; set; } |
| 28 | + |
| 29 | + /// <summary> |
| 30 | + /// The attachments used in the <c>description</c> field. |
| 31 | + /// </summary> |
| 32 | + public DataList<Attachment>? DescriptionAttachments |
| 33 | + { |
| 34 | + get => DescriptionAttachmentsCollection?.Data; |
| 35 | + } |
| 36 | + |
| 37 | + /// <summary> |
| 38 | + /// Whether the SLA coverage group may no longer be related to other records. |
| 39 | + /// </summary> |
| 40 | + [JsonProperty("disabled")] |
| 41 | + public bool? Disabled { get; internal set; } |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// The name of the SLA coverage group. |
| 45 | + /// </summary> |
| 46 | + [JsonProperty("name")] |
| 47 | + public string? Name { get; internal set; } |
| 48 | + |
| 49 | + [JsonProperty("people")] |
| 50 | + internal NodeCollection<Person>? PeopleCollection { get; set; } |
| 51 | + |
| 52 | + /// <summary> |
| 53 | + /// People of the SLA coverage group. |
| 54 | + /// </summary> |
| 55 | + public DataList<Person>? People |
| 56 | + { |
| 57 | + get => PeopleCollection?.Data; |
| 58 | + } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// The phrase used to filter the people. |
| 62 | + /// </summary> |
| 63 | + [JsonProperty("searchPhrase")] |
| 64 | + public string? SearchPhrase { get; internal set; } |
| 65 | + |
| 66 | + [JsonProperty("slas")] |
| 67 | + internal NodeCollection<ServiceLevelAgreement>? SlasCollection { get; set; } |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// Service level agreements linked to the SLA coverage group. |
| 71 | + /// </summary> |
| 72 | + public DataList<ServiceLevelAgreement>? Slas |
| 73 | + { |
| 74 | + get => SlasCollection?.Data; |
| 75 | + } |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// An identifier for the client application submitting the resource or the name of an external system. |
| 79 | + /// </summary> |
| 80 | + [JsonProperty("source")] |
| 81 | + public string? Source { get; internal set; } |
| 82 | + |
| 83 | + /// <summary> |
| 84 | + /// The unique identifier of the resource in an external system. |
| 85 | + /// </summary> |
| 86 | + [JsonProperty("sourceID")] |
| 87 | + public string? SourceID { get; internal set; } |
| 88 | + |
| 89 | + /// <summary> |
| 90 | + /// The date and time of the last update of the record. If the record has no updates it contains the <c>createdAt</c> value. |
| 91 | + /// </summary> |
| 92 | + [JsonProperty("updatedAt")] |
| 93 | + public DateTime? UpdatedAt { get; internal set; } |
| 94 | + |
| 95 | + internal override HashSet<QueryPageInfo> GetQueryPageInfo(string fieldName, int depth) |
| 96 | + { |
| 97 | + HashSet<QueryPageInfo> retval = new(); |
| 98 | + retval.AddRange(DescriptionAttachmentsCollection?.GetQueryPageInfo("descriptionAttachments", depth + 1)); |
| 99 | + retval.AddRange(PeopleCollection?.GetQueryPageInfo("people", depth + 1)); |
| 100 | + retval.AddRange(SlasCollection?.GetQueryPageInfo("slas", depth + 1)); |
| 101 | + return retval; |
| 102 | + } |
| 103 | + |
| 104 | + internal override void AddToCollection(object data) |
| 105 | + { |
| 106 | + DescriptionAttachments?.AddRange((data as SlaCoverageGroup)?.DescriptionAttachments); |
| 107 | + People?.AddRange((data as SlaCoverageGroup)?.People); |
| 108 | + Slas?.AddRange((data as SlaCoverageGroup)?.Slas); |
| 109 | + } |
| 110 | + } |
| 111 | +} |
0 commit comments