Skip to content

Commit 1421ab5

Browse files
committed
chore(other): Apply manual changes
1 parent 1606f4e commit 1421ab5

File tree

22 files changed

+216
-33
lines changed

22 files changed

+216
-33
lines changed

src/IBM.WatsonDeveloperCloud.Assistant.v1/IBM.WatsonDeveloperCloud.Assistant.v1.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
<Version>2.7.0</Version>
1616
</PropertyGroup>
1717

18+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
19+
<DebugType>full</DebugType>
20+
<DebugSymbols>true</DebugSymbols>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
24+
<DebugType>full</DebugType>
25+
<DebugSymbols>true</DebugSymbols>
26+
</PropertyGroup>
27+
1828
<ItemGroup>
1929
<ProjectReference Include="..\IBM.WatsonDeveloperCloud\IBM.WatsonDeveloperCloud.csproj" />
2030
</ItemGroup>

src/IBM.WatsonDeveloperCloud.Conversation.v1/IBM.WatsonDeveloperCloud.Conversation.v1.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
<Version>2.7.0</Version>
1616
</PropertyGroup>
1717

18+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
19+
<DebugType>full</DebugType>
20+
<DebugSymbols>true</DebugSymbols>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
24+
<DebugType>full</DebugType>
25+
<DebugSymbols>true</DebugSymbols>
26+
</PropertyGroup>
27+
1828
<ItemGroup>
1929
<ProjectReference Include="..\IBM.WatsonDeveloperCloud\IBM.WatsonDeveloperCloud.csproj" />
2030
</ItemGroup>

src/IBM.WatsonDeveloperCloud.Discovery.v1/DiscoveryService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ public CreateEventResponse CreateEvent(CreateEventObject queryEvent, Dictionary<
28042804
/// <param name="resultType">The type of result to consider when calculating the metric. (optional)</param>
28052805
/// <param name="customData">Custom data object to pass data including custom request headers.</param>
28062806
/// <returns><see cref="MetricResponse" />MetricResponse</returns>
2807-
public MetricResponse GetMetricsEventRate(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null)
2807+
public MetricResponse GetMetricsEventRate(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null)
28082808
{
28092809

28102810
if(string.IsNullOrEmpty(VersionDate))
@@ -2859,7 +2859,7 @@ public MetricResponse GetMetricsEventRate(DateTime startTime = null, DateTime en
28592859
/// <param name="resultType">The type of result to consider when calculating the metric. (optional)</param>
28602860
/// <param name="customData">Custom data object to pass data including custom request headers.</param>
28612861
/// <returns><see cref="MetricResponse" />MetricResponse</returns>
2862-
public MetricResponse GetMetricsQuery(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null)
2862+
public MetricResponse GetMetricsQuery(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null)
28632863
{
28642864

28652865
if(string.IsNullOrEmpty(VersionDate))
@@ -2916,7 +2916,7 @@ public MetricResponse GetMetricsQuery(DateTime startTime = null, DateTime endTim
29162916
/// <param name="resultType">The type of result to consider when calculating the metric. (optional)</param>
29172917
/// <param name="customData">Custom data object to pass data including custom request headers.</param>
29182918
/// <returns><see cref="MetricResponse" />MetricResponse</returns>
2919-
public MetricResponse GetMetricsQueryEvent(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null)
2919+
public MetricResponse GetMetricsQueryEvent(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null)
29202920
{
29212921

29222922
if(string.IsNullOrEmpty(VersionDate))
@@ -2972,7 +2972,7 @@ public MetricResponse GetMetricsQueryEvent(DateTime startTime = null, DateTime e
29722972
/// <param name="resultType">The type of result to consider when calculating the metric. (optional)</param>
29732973
/// <param name="customData">Custom data object to pass data including custom request headers.</param>
29742974
/// <returns><see cref="MetricResponse" />MetricResponse</returns>
2975-
public MetricResponse GetMetricsQueryNoResults(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null)
2975+
public MetricResponse GetMetricsQueryNoResults(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null)
29762976
{
29772977

29782978
if(string.IsNullOrEmpty(VersionDate))

src/IBM.WatsonDeveloperCloud.Discovery.v1/IBM.WatsonDeveloperCloud.Discovery.v1.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
<Version>2.7.0</Version>
1616
</PropertyGroup>
1717

18+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
19+
<DebugType>full</DebugType>
20+
<DebugSymbols>true</DebugSymbols>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
24+
<DebugType>full</DebugType>
25+
<DebugSymbols>true</DebugSymbols>
26+
</PropertyGroup>
27+
1828
<ItemGroup>
1929
<ProjectReference Include="..\IBM.WatsonDeveloperCloud\IBM.WatsonDeveloperCloud.csproj" />
2030
</ItemGroup>

src/IBM.WatsonDeveloperCloud.Discovery.v1/IDiscoveryService.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
*
1616
*/
1717

18+
using System;
1819
using System.Collections.Generic;
1920
using System.Runtime.Serialization;
2021
using IBM.WatsonDeveloperCloud.Discovery.v1.Model;
22+
using Environment = IBM.WatsonDeveloperCloud.Discovery.v1.Model.Environment;
2123

2224
namespace IBM.WatsonDeveloperCloud.Discovery.v1
2325
{
@@ -66,10 +68,10 @@ public partial interface IDiscoveryService
6668
TrainingExample UpdateTrainingExample(string environmentId, string collectionId, string queryId, string exampleId, TrainingExamplePatch body, Dictionary<string, object> customData = null);
6769
BaseModel DeleteUserData(string customerId, Dictionary<string, object> customData = null);
6870
CreateEventResponse CreateEvent(CreateEventObject queryEvent, Dictionary<string, object> customData = null);
69-
MetricResponse GetMetricsEventRate(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null);
70-
MetricResponse GetMetricsQuery(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null);
71-
MetricResponse GetMetricsQueryEvent(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null);
72-
MetricResponse GetMetricsQueryNoResults(DateTime startTime = null, DateTime endTime = null, string resultType = null, Dictionary<string, object> customData = null);
71+
MetricResponse GetMetricsEventRate(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null);
72+
MetricResponse GetMetricsQuery(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null);
73+
MetricResponse GetMetricsQueryEvent(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null);
74+
MetricResponse GetMetricsQueryNoResults(DateTime? startTime = null, DateTime? endTime = null, string resultType = null, Dictionary<string, object> customData = null);
7375
MetricTokenResponse GetMetricsQueryTokenEvent(long? count = null, Dictionary<string, object> customData = null);
7476
LogQueryResponse QueryLog(string filter = null, string query = null, long? count = null, long? offset = null, List<string> sort = null, Dictionary<string, object> customData = null);
7577
Credentials CreateCredentials(string environmentId, Credentials credentialsParameter, Dictionary<string, object> customData = null);

src/IBM.WatsonDeveloperCloud.Discovery.v1/Model/CreateEnvironmentRequest.cs

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
using System;
1819
using System.Runtime.Serialization;
1920
using Newtonsoft.Json;
2021
using Newtonsoft.Json.Converters;
@@ -89,13 +90,41 @@ public enum SizeEnum
8990
/// </summary>
9091
[EnumMember(Value = "XXXL")]
9192
XXXL
92-
}
93-
93+
}
94+
9495
/// <summary>
9596
/// Size of the environment.
9697
/// </summary>
97-
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
98-
public SizeEnum? Size { get; set; }
98+
[Obsolete("Integer size is deprecated. Please use StringSize.")]
99+
public long? Size
100+
{
101+
get
102+
{
103+
int size;
104+
int.TryParse(_convertedSize, out size);
105+
return size;
106+
}
107+
set { _convertedSize = value.ToString(); }
108+
}
109+
/// <summary>
110+
/// Size of the environment.
111+
/// </summary>
112+
public SizeEnum? StringSize
113+
{
114+
get
115+
{
116+
SizeEnum size;
117+
Enum.TryParse(_convertedSize, out size);
118+
return size;
119+
}
120+
set { _convertedSize = value.ToString(); }
121+
}
122+
/// <summary>
123+
/// Size of the environment
124+
/// </summary>
125+
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
126+
private string _convertedSize;
127+
99128
/// <summary>
100129
/// Name that identifies the environment.
101130
/// </summary>

src/IBM.WatsonDeveloperCloud.Discovery.v1/Model/Environment.cs

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,40 @@ public enum SizeEnum
125125
/// Status of the environment.
126126
/// </summary>
127127
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
128-
public StatusEnum? Status { get; set; }
128+
public StatusEnum? Status { get; set; }
129129
/// <summary>
130130
/// Size of the environment.
131131
/// </summary>
132-
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
133-
public SizeEnum? Size { get; set; }
132+
[Obsolete("Integer size is deprecated. Please use StringSize.")]
133+
public long? Size
134+
{
135+
get
136+
{
137+
int size;
138+
int.TryParse(_convertedSize, out size);
139+
return size;
140+
}
141+
set { _convertedSize = value.ToString(); }
142+
}
143+
/// <summary>
144+
/// Size of the environment.
145+
/// </summary>
146+
public SizeEnum? StringSize
147+
{
148+
get
149+
{
150+
SizeEnum size;
151+
Enum.TryParse(_convertedSize, out size);
152+
return size;
153+
}
154+
set { _convertedSize = value.ToString(); }
155+
}
156+
/// <summary>
157+
/// Size of the environment
158+
/// </summary>
159+
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
160+
private string _convertedSize;
161+
134162
/// <summary>
135163
/// Unique identifier for the environment.
136164
/// </summary>

src/IBM.WatsonDeveloperCloud.Discovery.v1/Model/EventData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class EventData : BaseModel
4040
/// in the log was used.
4141
/// </summary>
4242
[JsonProperty("client_timestamp", NullValueHandling = NullValueHandling.Ignore)]
43-
public DateTime ClientTimestamp { get; set; }
43+
public DateTime? ClientTimestamp { get; set; }
4444
/// <summary>
4545
/// The rank of the result item which the event is associated with.
4646
/// </summary>

src/IBM.WatsonDeveloperCloud.Discovery.v1/Model/LogQueryResponseResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ public enum ResultTypeEnum
163163
/// Date that the log result was created. Returned in `YYYY-MM-DDThh:mm:ssZ` format.
164164
/// </summary>
165165
[JsonProperty("created_timestamp", NullValueHandling = NullValueHandling.Ignore)]
166-
public DateTime CreatedTimestamp { get; set; }
166+
public DateTime? CreatedTimestamp { get; set; }
167167
/// <summary>
168168
/// Date specified by the user when recording an event. Returned in `YYYY-MM-DDThh:mm:ssZ` format. Only returned
169169
/// with logs of type **event**.
170170
/// </summary>
171171
[JsonProperty("client_timestamp", NullValueHandling = NullValueHandling.Ignore)]
172-
public DateTime ClientTimestamp { get; set; }
172+
public DateTime? ClientTimestamp { get; set; }
173173
/// <summary>
174174
/// Identifier that corresponds to the **natural_language_query** string used in the original or associated
175175
/// query. All **event** and **query** log entries that have the same original **natural_language_query** string

src/IBM.WatsonDeveloperCloud.Discovery.v1/Model/MetricAggregationResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class MetricAggregationResult : BaseModel
2929
/// Date in string form representing the start of this interval.
3030
/// </summary>
3131
[JsonProperty("key_as_string", NullValueHandling = NullValueHandling.Ignore)]
32-
public DateTime KeyAsString { get; set; }
32+
public DateTime? KeyAsString { get; set; }
3333
/// <summary>
3434
/// Unix epoch time equivalent of the **key_as_string**, that represents the start of this interval.
3535
/// </summary>

0 commit comments

Comments
 (0)