@@ -32,6 +32,39 @@ namespace Segment.PublicApi.Model
32
32
[ DataContract ( Name = "CreateInsertFunctionInstanceAlphaInput" ) ]
33
33
public partial class CreateInsertFunctionInstanceAlphaInput : IEquatable < CreateInsertFunctionInstanceAlphaInput > , IValidatableObject
34
34
{
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 ; }
35
68
/// <summary>
36
69
/// Initializes a new instance of the <see cref="CreateInsertFunctionInstanceAlphaInput" /> class.
37
70
/// </summary>
@@ -40,12 +73,13 @@ protected CreateInsertFunctionInstanceAlphaInput() { }
40
73
/// <summary>
41
74
/// Initializes a new instance of the <see cref="CreateInsertFunctionInstanceAlphaInput" /> class.
42
75
/// </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>
44
77
/// <param name="integrationId">The Source or Destination id to be connected. (required).</param>
45
78
/// <param name="enabled">Whether this insert Function instance should be enabled for the Destination..</param>
46
79
/// <param name="name">Defines the display name of the insert Function instance. (required).</param>
47
80
/// <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 ) )
49
83
{
50
84
// to ensure "functionId" is required (not null)
51
85
if ( functionId == null )
@@ -71,13 +105,14 @@ protected CreateInsertFunctionInstanceAlphaInput() { }
71
105
throw new ArgumentNullException ( "settings is a required property for CreateInsertFunctionInstanceAlphaInput and cannot be null" ) ;
72
106
}
73
107
this . Settings = settings ;
108
+ this . IntegrationType = integrationType ;
74
109
this . Enabled = enabled ;
75
110
}
76
111
77
112
/// <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.
79
114
/// </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>
81
116
[ DataMember ( Name = "functionId" , IsRequired = true , EmitDefaultValue = true ) ]
82
117
public string FunctionId { get ; set ; }
83
118
@@ -122,6 +157,7 @@ public override string ToString()
122
157
sb . Append ( " Enabled: " ) . Append ( Enabled ) . Append ( "\n " ) ;
123
158
sb . Append ( " Name: " ) . Append ( Name ) . Append ( "\n " ) ;
124
159
sb . Append ( " Settings: " ) . Append ( Settings ) . Append ( "\n " ) ;
160
+ sb . Append ( " IntegrationType: " ) . Append ( IntegrationType ) . Append ( "\n " ) ;
125
161
sb . Append ( "}\n " ) ;
126
162
return sb . ToString ( ) ;
127
163
}
@@ -181,6 +217,10 @@ public bool Equals(CreateInsertFunctionInstanceAlphaInput input)
181
217
this . Settings != null &&
182
218
input . Settings != null &&
183
219
this . Settings . SequenceEqual ( input . Settings )
220
+ ) &&
221
+ (
222
+ this . IntegrationType == input . IntegrationType ||
223
+ this . IntegrationType . Equals ( input . IntegrationType )
184
224
) ;
185
225
}
186
226
@@ -210,6 +250,7 @@ public override int GetHashCode()
210
250
{
211
251
hashCode = ( hashCode * 59 ) + this . Settings . GetHashCode ( ) ;
212
252
}
253
+ hashCode = ( hashCode * 59 ) + this . IntegrationType . GetHashCode ( ) ;
213
254
return hashCode ;
214
255
}
215
256
}
0 commit comments