This repository was archived by the owner on Sep 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathJobResultsArgs.cs
130 lines (116 loc) · 3.9 KB
/
JobResultsArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
* Copyright 2012 Splunk, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"): you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
namespace Splunk
{
/// <summary>
/// The <see cref="JobResultsArgs"/> class contains arguments for getting
/// job results using the <see cref="Job" /> class.
/// </summary>
public class JobResultsArgs : Args
{
/// <summary>
/// Specifies the format for the returned output.
/// </summary>
// C# disallows nested classes from having the same name as
// properties. Use 'Enum' suffix to differentiate.
public enum OutputModeEnum
{
/// <summary>
/// Returns output in Atom format.
/// </summary>
[SplunkEnumValue("atom")]
Atom,
/// <summary>
/// Returns output in CSV format.
/// </summary>
[SplunkEnumValue("csv")]
Csv,
/// <summary>
/// Returns output in JSON format.
/// </summary>
[SplunkEnumValue("json")]
Json,
/// <summary>
/// Returns output in JSON_COLS format.
/// </summary>
[SplunkEnumValue("json_cols")]
JsonColumns,
/// <summary>
/// Returns output in JSON_ROWS format.
/// </summary>
[SplunkEnumValue("json_rows")]
JsonRows,
/// <summary>
/// Returns output in raw format.
/// </summary>
[SplunkEnumValue("raw")]
Raw,
/// <summary>
/// Returns output in XML format.
/// </summary>
[SplunkEnumValue("xml")]
Xml,
}
/* BEGIN AUTOGENERATED CODE */
/// <summary>
/// Sets the maximum number of results to return.
/// </summary>
public new int Count
{
set { this["count"] = value; }
}
/// <summary>
/// Sets a list of fields to return for the event set.
/// </summary>
public string[] FieldList
{
set { this["f"] = value; }
}
/// <summary>
/// Specifies the index of the first result (inclusive) from which to begin returning
/// data. This value is 0-indexed.
/// </summary>
/// <remarks>
/// <para>
/// Starting in Splunk 4.1, negative offsets are allowed and are added to the count to
/// compute the absolute offset (for example, offset=-1 is the last available
/// offset). Offsets in the results are always absolute and never negative.
/// </para>
/// <para>
/// This property's default value is "0".
/// </para>
/// </remarks>
public int Offset
{
set { this["offset"] = value; }
}
/// <summary>
/// Sets the format of the output.
/// </summary>
public OutputModeEnum OutputMode
{
set { this["output_mode"] = value.GetSplunkEnumValue(); }
}
/// <summary>
/// Sets the post-processing search to apply to results.
/// </summary>
public string Search
{
set { this["search"] = value; }
}
/* END AUTOGENERATED CODE */
}
}