Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36294a6

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0364960e.
1 parent bd40cdf commit 36294a6

File tree

6 files changed

+96
-19
lines changed

6 files changed

+96
-19
lines changed

Segment.PublicApi.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{A44A806A-A45D-473B-9A35-11F9F6214C78}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{3293BD7B-E821-4148-9C13-A05D3DABBB9E}"
66
EndProject
77
Global
88
GlobalSection(SolutionConfigurationPlatforms) = preSolution
99
Debug|Any CPU = Debug|Any CPU
1010
Release|Any CPU = Release|Any CPU
1111
EndGlobalSection
1212
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13-
{A44A806A-A45D-473B-9A35-11F9F6214C78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{A44A806A-A45D-473B-9A35-11F9F6214C78}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{A44A806A-A45D-473B-9A35-11F9F6214C78}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{A44A806A-A45D-473B-9A35-11F9F6214C78}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{3293BD7B-E821-4148-9C13-A05D3DABBB9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{3293BD7B-E821-4148-9C13-A05D3DABBB9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{3293BD7B-E821-4148-9C13-A05D3DABBB9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{3293BD7B-E821-4148-9C13-A05D3DABBB9E}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/CreateFunctionV1Input.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,29 @@ public enum ResourceTypeEnum
4545
[EnumMember(Value = "DESTINATION")]
4646
DESTINATION = 1,
4747

48+
/// <summary>
49+
/// Enum INSERT for value: INSERT
50+
/// </summary>
51+
[EnumMember(Value = "INSERT")]
52+
INSERT = 2,
53+
4854
/// <summary>
4955
/// Enum INSERTDESTINATION for value: INSERT_DESTINATION
5056
/// </summary>
5157
[EnumMember(Value = "INSERT_DESTINATION")]
52-
INSERTDESTINATION = 2,
58+
INSERTDESTINATION = 3,
5359

5460
/// <summary>
5561
/// Enum INSERTSOURCE for value: INSERT_SOURCE
5662
/// </summary>
5763
[EnumMember(Value = "INSERT_SOURCE")]
58-
INSERTSOURCE = 3,
64+
INSERTSOURCE = 4,
5965

6066
/// <summary>
6167
/// Enum SOURCE for value: SOURCE
6268
/// </summary>
6369
[EnumMember(Value = "SOURCE")]
64-
SOURCE = 4
70+
SOURCE = 5
6571
}
6672

6773

src/Segment.PublicApi/Model/CreateInsertFunctionInstanceAlphaInput.cs

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,39 @@ namespace Segment.PublicApi.Model
3232
[DataContract(Name = "CreateInsertFunctionInstanceAlphaInput")]
3333
public partial class CreateInsertFunctionInstanceAlphaInput : IEquatable<CreateInsertFunctionInstanceAlphaInput>, IValidatableObject
3434
{
35+
/// <summary>
36+
/// The Integration type for the insert Function instance.
37+
/// </summary>
38+
/// <value>The Integration type for the insert Function instance.</value>
39+
[JsonConverter(typeof(StringEnumConverter))]
40+
public enum IntegrationTypeEnum
41+
{
42+
/// <summary>
43+
/// Enum DESTINATION for value: DESTINATION
44+
/// </summary>
45+
[EnumMember(Value = "DESTINATION")]
46+
DESTINATION = 1,
47+
48+
/// <summary>
49+
/// Enum JOURNEY for value: JOURNEY
50+
/// </summary>
51+
[EnumMember(Value = "JOURNEY")]
52+
JOURNEY = 2,
53+
54+
/// <summary>
55+
/// Enum SOURCE for value: SOURCE
56+
/// </summary>
57+
[EnumMember(Value = "SOURCE")]
58+
SOURCE = 3
59+
}
60+
61+
62+
/// <summary>
63+
/// The Integration type for the insert Function instance.
64+
/// </summary>
65+
/// <value>The Integration type for the insert Function instance.</value>
66+
[DataMember(Name = "integrationType", IsRequired = true, EmitDefaultValue = true)]
67+
public IntegrationTypeEnum IntegrationType { get; set; }
3568
/// <summary>
3669
/// Initializes a new instance of the <see cref="CreateInsertFunctionInstanceAlphaInput" /> class.
3770
/// </summary>
@@ -40,12 +73,13 @@ protected CreateInsertFunctionInstanceAlphaInput() { }
4073
/// <summary>
4174
/// Initializes a new instance of the <see cref="CreateInsertFunctionInstanceAlphaInput" /> class.
4275
/// </summary>
43-
/// <param name="functionId">Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_ prefix from the id. (required).</param>
76+
/// <param name="functionId">Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_/ifn_ prefix from the id. (required).</param>
4477
/// <param name="integrationId">The Source or Destination id to be connected. (required).</param>
4578
/// <param name="enabled">Whether this insert Function instance should be enabled for the Destination..</param>
4679
/// <param name="name">Defines the display name of the insert Function instance. (required).</param>
4780
/// <param name="settings">An object that contains settings for this insert Function instance based on the settings present in the insert Function class. (required).</param>
48-
public CreateInsertFunctionInstanceAlphaInput(string functionId = default(string), string integrationId = default(string), bool enabled = default(bool), string name = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>))
81+
/// <param name="integrationType">The Integration type for the insert Function instance. (required).</param>
82+
public CreateInsertFunctionInstanceAlphaInput(string functionId = default(string), string integrationId = default(string), bool enabled = default(bool), string name = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>), IntegrationTypeEnum integrationType = default(IntegrationTypeEnum))
4983
{
5084
// to ensure "functionId" is required (not null)
5185
if (functionId == null)
@@ -71,13 +105,14 @@ protected CreateInsertFunctionInstanceAlphaInput() { }
71105
throw new ArgumentNullException("settings is a required property for CreateInsertFunctionInstanceAlphaInput and cannot be null");
72106
}
73107
this.Settings = settings;
108+
this.IntegrationType = integrationType;
74109
this.Enabled = enabled;
75110
}
76111

77112
/// <summary>
78-
/// Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_ prefix from the id.
113+
/// Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_/ifn_ prefix from the id.
79114
/// </summary>
80-
/// <value>Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_ prefix from the id.</value>
115+
/// <value>Insert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_/ifn_ prefix from the id.</value>
81116
[DataMember(Name = "functionId", IsRequired = true, EmitDefaultValue = true)]
82117
public string FunctionId { get; set; }
83118

@@ -122,6 +157,7 @@ public override string ToString()
122157
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
123158
sb.Append(" Name: ").Append(Name).Append("\n");
124159
sb.Append(" Settings: ").Append(Settings).Append("\n");
160+
sb.Append(" IntegrationType: ").Append(IntegrationType).Append("\n");
125161
sb.Append("}\n");
126162
return sb.ToString();
127163
}
@@ -181,6 +217,10 @@ public bool Equals(CreateInsertFunctionInstanceAlphaInput input)
181217
this.Settings != null &&
182218
input.Settings != null &&
183219
this.Settings.SequenceEqual(input.Settings)
220+
) &&
221+
(
222+
this.IntegrationType == input.IntegrationType ||
223+
this.IntegrationType.Equals(input.IntegrationType)
184224
);
185225
}
186226

@@ -210,6 +250,7 @@ public override int GetHashCode()
210250
{
211251
hashCode = (hashCode * 59) + this.Settings.GetHashCode();
212252
}
253+
hashCode = (hashCode * 59) + this.IntegrationType.GetHashCode();
213254
return hashCode;
214255
}
215256
}

src/Segment.PublicApi/Model/FunctionV1.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,29 @@ public enum ResourceTypeEnum
4545
[EnumMember(Value = "DESTINATION")]
4646
DESTINATION = 1,
4747

48+
/// <summary>
49+
/// Enum INSERT for value: INSERT
50+
/// </summary>
51+
[EnumMember(Value = "INSERT")]
52+
INSERT = 2,
53+
4854
/// <summary>
4955
/// Enum INSERTDESTINATION for value: INSERT_DESTINATION
5056
/// </summary>
5157
[EnumMember(Value = "INSERT_DESTINATION")]
52-
INSERTDESTINATION = 2,
58+
INSERTDESTINATION = 3,
5359

5460
/// <summary>
5561
/// Enum INSERTSOURCE for value: INSERT_SOURCE
5662
/// </summary>
5763
[EnumMember(Value = "INSERT_SOURCE")]
58-
INSERTSOURCE = 3,
64+
INSERTSOURCE = 4,
5965

6066
/// <summary>
6167
/// Enum SOURCE for value: SOURCE
6268
/// </summary>
6369
[EnumMember(Value = "SOURCE")]
64-
SOURCE = 4
70+
SOURCE = 5
6571
}
6672

6773

src/Segment.PublicApi/Model/InsertFunctionInstanceAlpha.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected InsertFunctionInstanceAlpha() { }
4949
/// <param name="updatedAt">updatedAt (required).</param>
5050
/// <param name="settings">settings (required).</param>
5151
/// <param name="encryptedSettings">encryptedSettings (required).</param>
52-
public InsertFunctionInstanceAlpha(string id = default(string), string name = default(string), string integrationId = default(string), string classId = default(string), bool enabled = default(bool), string createdAt = default(string), string updatedAt = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>), Dictionary<string, Object> encryptedSettings = default(Dictionary<string, Object>))
52+
/// <param name="integrationType">integrationType.</param>
53+
public InsertFunctionInstanceAlpha(string id = default(string), string name = default(string), string integrationId = default(string), string classId = default(string), bool enabled = default(bool), string createdAt = default(string), string updatedAt = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>), Dictionary<string, Object> encryptedSettings = default(Dictionary<string, Object>), Object integrationType = default(Object))
5354
{
5455
// to ensure "id" is required (not null)
5556
if (id == null)
@@ -95,6 +96,7 @@ protected InsertFunctionInstanceAlpha() { }
9596
}
9697
this.EncryptedSettings = encryptedSettings;
9798
this.Name = name;
99+
this.IntegrationType = integrationType;
98100
}
99101

100102
/// <summary>
@@ -151,6 +153,12 @@ protected InsertFunctionInstanceAlpha() { }
151153
[DataMember(Name = "encryptedSettings", IsRequired = true, EmitDefaultValue = true)]
152154
public Dictionary<string, Object> EncryptedSettings { get; set; }
153155

156+
/// <summary>
157+
/// Gets or Sets IntegrationType
158+
/// </summary>
159+
[DataMember(Name = "integrationType", EmitDefaultValue = true)]
160+
public Object IntegrationType { get; set; }
161+
154162
/// <summary>
155163
/// Returns the string presentation of the object
156164
/// </summary>
@@ -168,6 +176,7 @@ public override string ToString()
168176
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
169177
sb.Append(" Settings: ").Append(Settings).Append("\n");
170178
sb.Append(" EncryptedSettings: ").Append(EncryptedSettings).Append("\n");
179+
sb.Append(" IntegrationType: ").Append(IntegrationType).Append("\n");
171180
sb.Append("}\n");
172181
return sb.ToString();
173182
}
@@ -248,6 +257,11 @@ public bool Equals(InsertFunctionInstanceAlpha input)
248257
this.EncryptedSettings != null &&
249258
input.EncryptedSettings != null &&
250259
this.EncryptedSettings.SequenceEqual(input.EncryptedSettings)
260+
) &&
261+
(
262+
this.IntegrationType == input.IntegrationType ||
263+
(this.IntegrationType != null &&
264+
this.IntegrationType.Equals(input.IntegrationType))
251265
);
252266
}
253267

@@ -293,6 +307,10 @@ public override int GetHashCode()
293307
{
294308
hashCode = (hashCode * 59) + this.EncryptedSettings.GetHashCode();
295309
}
310+
if (this.IntegrationType != null)
311+
{
312+
hashCode = (hashCode * 59) + this.IntegrationType.GetHashCode();
313+
}
296314
return hashCode;
297315
}
298316
}

src/Segment.PublicApi/Model/ListFunctionItemV1.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,29 @@ public enum ResourceTypeEnum
4545
[EnumMember(Value = "DESTINATION")]
4646
DESTINATION = 1,
4747

48+
/// <summary>
49+
/// Enum INSERT for value: INSERT
50+
/// </summary>
51+
[EnumMember(Value = "INSERT")]
52+
INSERT = 2,
53+
4854
/// <summary>
4955
/// Enum INSERTDESTINATION for value: INSERT_DESTINATION
5056
/// </summary>
5157
[EnumMember(Value = "INSERT_DESTINATION")]
52-
INSERTDESTINATION = 2,
58+
INSERTDESTINATION = 3,
5359

5460
/// <summary>
5561
/// Enum INSERTSOURCE for value: INSERT_SOURCE
5662
/// </summary>
5763
[EnumMember(Value = "INSERT_SOURCE")]
58-
INSERTSOURCE = 3,
64+
INSERTSOURCE = 4,
5965

6066
/// <summary>
6167
/// Enum SOURCE for value: SOURCE
6268
/// </summary>
6369
[EnumMember(Value = "SOURCE")]
64-
SOURCE = 4
70+
SOURCE = 5
6571
}
6672

6773

0 commit comments

Comments
 (0)