-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeepL.Models.UsageResponse.g.cs
More file actions
178 lines (161 loc) · 7.85 KB
/
Copy pathDeepL.Models.UsageResponse.g.cs
File metadata and controls
178 lines (161 loc) · 7.85 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#pragma warning disable CS0618 // Type or member is obsolete
#nullable enable
namespace DeepL
{
/// <summary>
///
/// </summary>
public sealed partial class UsageResponse
{
/// <summary>
/// Characters translated so far in the current billing period.<br/>
/// Example: 180118
/// </summary>
/// <example>180118</example>
[global::System.Text.Json.Serialization.JsonPropertyName("character_count")]
public long? CharacterCount { get; set; }
/// <summary>
/// Current maximum number of characters that can be translated per billing period. If cost control is set, the cost control limit will be returned in this field.<br/>
/// Example: 1250000
/// </summary>
/// <example>1250000</example>
[global::System.Text.Json.Serialization.JsonPropertyName("character_limit")]
public long? CharacterLimit { get; set; }
/// <summary>
/// Only present for API Pro users. Per-product usage details.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("products")]
public global::System.Collections.Generic.IList<global::DeepL.UsageResponseProduct>? Products { get; set; }
/// <summary>
/// Only present for API Pro users. Total characters used by this API key in the current period.<br/>
/// Example: 636
/// </summary>
/// <example>636</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key_character_count")]
public int? ApiKeyCharacterCount { get; set; }
/// <summary>
/// Only present for API Pro users. Character limit for this API key in the current period.<br/>
/// Example: 1000000000000
/// </summary>
/// <example>1000000000000</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key_character_limit")]
public long? ApiKeyCharacterLimit { get; set; }
/// <summary>
/// Deprecated. Always returns 0. Use speech_to_text_minutes_count instead.<br/>
/// Example: 0
/// </summary>
/// <example>0</example>
[global::System.Text.Json.Serialization.JsonPropertyName("speech_to_text_milliseconds_count")]
[global::System.Obsolete("This property marked as deprecated.")]
public int? SpeechToTextMillisecondsCount { get; set; }
/// <summary>
/// Deprecated. Always returns 0. Use speech_to_text_minutes_limit instead.<br/>
/// Example: 0
/// </summary>
/// <example>0</example>
[global::System.Text.Json.Serialization.JsonPropertyName("speech_to_text_milliseconds_limit")]
[global::System.Obsolete("This property marked as deprecated.")]
public int? SpeechToTextMillisecondsLimit { get; set; }
/// <summary>
/// Only present for API Pro users. Minutes of speech-to-text used in the current period. Milliseconds are rounded up to the nearest minute.<br/>
/// Example: 30
/// </summary>
/// <example>30</example>
[global::System.Text.Json.Serialization.JsonPropertyName("speech_to_text_minutes_count")]
public int? SpeechToTextMinutesCount { get; set; }
/// <summary>
/// Only present for API Pro users. Maximum minutes of speech-to-text that can be used in the current billing period.<br/>
/// Example: 600
/// </summary>
/// <example>600</example>
[global::System.Text.Json.Serialization.JsonPropertyName("speech_to_text_minutes_limit")]
public int? SpeechToTextMinutesLimit { get; set; }
/// <summary>
/// Only present for API Pro users. Start time of the current billing period (ISO 8601).<br/>
/// Example: 2025-05-13T09:18:42Z
/// </summary>
/// <example>2025-05-13T09:18:42Z</example>
[global::System.Text.Json.Serialization.JsonPropertyName("start_time")]
public global::System.DateTime? StartTime { get; set; }
/// <summary>
/// Only present for API Pro users. End time of the current billing period (ISO 8601).<br/>
/// Example: 2025-06-13T09:18:42Z
/// </summary>
/// <example>2025-06-13T09:18:42Z</example>
[global::System.Text.Json.Serialization.JsonPropertyName("end_time")]
public global::System.DateTime? EndTime { get; set; }
/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// Initializes a new instance of the <see cref="UsageResponse" /> class.
/// </summary>
/// <param name="characterCount">
/// Characters translated so far in the current billing period.<br/>
/// Example: 180118
/// </param>
/// <param name="characterLimit">
/// Current maximum number of characters that can be translated per billing period. If cost control is set, the cost control limit will be returned in this field.<br/>
/// Example: 1250000
/// </param>
/// <param name="products">
/// Only present for API Pro users. Per-product usage details.
/// </param>
/// <param name="apiKeyCharacterCount">
/// Only present for API Pro users. Total characters used by this API key in the current period.<br/>
/// Example: 636
/// </param>
/// <param name="apiKeyCharacterLimit">
/// Only present for API Pro users. Character limit for this API key in the current period.<br/>
/// Example: 1000000000000
/// </param>
/// <param name="speechToTextMinutesCount">
/// Only present for API Pro users. Minutes of speech-to-text used in the current period. Milliseconds are rounded up to the nearest minute.<br/>
/// Example: 30
/// </param>
/// <param name="speechToTextMinutesLimit">
/// Only present for API Pro users. Maximum minutes of speech-to-text that can be used in the current billing period.<br/>
/// Example: 600
/// </param>
/// <param name="startTime">
/// Only present for API Pro users. Start time of the current billing period (ISO 8601).<br/>
/// Example: 2025-05-13T09:18:42Z
/// </param>
/// <param name="endTime">
/// Only present for API Pro users. End time of the current billing period (ISO 8601).<br/>
/// Example: 2025-06-13T09:18:42Z
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public UsageResponse(
long? characterCount,
long? characterLimit,
global::System.Collections.Generic.IList<global::DeepL.UsageResponseProduct>? products,
int? apiKeyCharacterCount,
long? apiKeyCharacterLimit,
int? speechToTextMinutesCount,
int? speechToTextMinutesLimit,
global::System.DateTime? startTime,
global::System.DateTime? endTime)
{
this.CharacterCount = characterCount;
this.CharacterLimit = characterLimit;
this.Products = products;
this.ApiKeyCharacterCount = apiKeyCharacterCount;
this.ApiKeyCharacterLimit = apiKeyCharacterLimit;
this.SpeechToTextMinutesCount = speechToTextMinutesCount;
this.SpeechToTextMinutesLimit = speechToTextMinutesLimit;
this.StartTime = startTime;
this.EndTime = endTime;
}
/// <summary>
/// Initializes a new instance of the <see cref="UsageResponse" /> class.
/// </summary>
public UsageResponse()
{
}
}
}