-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
IOptions.cs
69 lines (62 loc) · 1.91 KB
/
IOptions.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
namespace Microsoft.Azure.Batch.Protocol.Models
{
using System;
/// <summary>
/// Optional arguments applicable to all service requests.
/// </summary>
public interface IOptions
{
/// <summary>
/// Caller generated request identity, in the form of a GUID with no
/// decoration such as curly braces e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
/// </summary>
Guid? ClientRequestId { get; set; }
/// <summary>
/// Specifies if the server should return the client-request-id
/// identifier in the response.
/// </summary>
bool? ReturnClientRequestId { get; set; }
}
/// <summary>
/// Optional arguments for service requests which support timeouts.
/// </summary>
public interface ITimeoutOptions : IOptions
{
/// <summary>
/// Sets the maximum time that the server can spend processing the
/// request, in seconds. The default is 30 seconds.
/// </summary>
int? Timeout { get; set; }
}
/// <summary>
/// Represents an options object supporting the OData $filter parameter.
/// </summary>
public interface IODataFilter
{
/// <summary>
/// Gets or sets the OData $filter clause.
/// </summary>
string Filter { get; set; }
}
/// <summary>
/// Represents an options object supporting the OData $select parameter.
/// </summary>
public interface IODataSelect
{
/// <summary>
/// Gets or sets the OData $select clause.
/// </summary>
string Select { get; set; }
}
/// <summary>
/// Represents an options object supporting the OData $expand parameter.
/// </summary>
public interface IODataExpand
{
/// <summary>
/// Gets or sets the OData $expand clause.
/// </summary>
string Expand { get; set; }
}
}