Skip to content

Commit 7db655e

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@a6d7679e.
1 parent 787c56a commit 7db655e

File tree

3 files changed

+45
-7
lines changed

3 files changed

+45
-7
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", "{295C6CD5-7066-43C3-B9B4-104CBAB00138}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{BA6859A5-B45F-4154-8311-79C481A00430}"
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-
{295C6CD5-7066-43C3-B9B4-104CBAB00138}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{295C6CD5-7066-43C3-B9B4-104CBAB00138}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{295C6CD5-7066-43C3-B9B4-104CBAB00138}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{295C6CD5-7066-43C3-B9B4-104CBAB00138}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{BA6859A5-B45F-4154-8311-79C481A00430}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{BA6859A5-B45F-4154-8311-79C481A00430}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{BA6859A5-B45F-4154-8311-79C481A00430}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{BA6859A5-B45F-4154-8311-79C481A00430}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/AddDestinationToAudienceAlphaOutput.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ protected AddDestinationToAudienceAlphaOutput() { }
4242
/// </summary>
4343
/// <param name="connection">connection (required).</param>
4444
/// <param name="idSyncConfiguration">The id sync configuration for the Destination - array of external ids with their strategies. (required).</param>
45-
public AddDestinationToAudienceAlphaOutput(Connection connection = default(Connection), List<IDSyncConfigurationInput> idSyncConfiguration = default(List<IDSyncConfigurationInput>))
45+
/// <param name="connectionSettings">The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown..</param>
46+
public AddDestinationToAudienceAlphaOutput(Connection connection = default(Connection), List<IDSyncConfigurationInput> idSyncConfiguration = default(List<IDSyncConfigurationInput>), Object connectionSettings = default(Object))
4647
{
4748
// to ensure "connection" is required (not null)
4849
if (connection == null)
@@ -56,6 +57,7 @@ protected AddDestinationToAudienceAlphaOutput() { }
5657
throw new ArgumentNullException("idSyncConfiguration is a required property for AddDestinationToAudienceAlphaOutput and cannot be null");
5758
}
5859
this.IdSyncConfiguration = idSyncConfiguration;
60+
this.ConnectionSettings = connectionSettings;
5961
}
6062

6163
/// <summary>
@@ -71,6 +73,13 @@ protected AddDestinationToAudienceAlphaOutput() { }
7173
[DataMember(Name = "idSyncConfiguration", IsRequired = true, EmitDefaultValue = true)]
7274
public List<IDSyncConfigurationInput> IdSyncConfiguration { get; set; }
7375

76+
/// <summary>
77+
/// The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.
78+
/// </summary>
79+
/// <value>The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.</value>
80+
[DataMember(Name = "connectionSettings", EmitDefaultValue = true)]
81+
public Object ConnectionSettings { get; set; }
82+
7483
/// <summary>
7584
/// Returns the string presentation of the object
7685
/// </summary>
@@ -81,6 +90,7 @@ public override string ToString()
8190
sb.Append("class AddDestinationToAudienceAlphaOutput {\n");
8291
sb.Append(" Connection: ").Append(Connection).Append("\n");
8392
sb.Append(" IdSyncConfiguration: ").Append(IdSyncConfiguration).Append("\n");
93+
sb.Append(" ConnectionSettings: ").Append(ConnectionSettings).Append("\n");
8494
sb.Append("}\n");
8595
return sb.ToString();
8696
}
@@ -126,6 +136,11 @@ public bool Equals(AddDestinationToAudienceAlphaOutput input)
126136
this.IdSyncConfiguration != null &&
127137
input.IdSyncConfiguration != null &&
128138
this.IdSyncConfiguration.SequenceEqual(input.IdSyncConfiguration)
139+
) &&
140+
(
141+
this.ConnectionSettings == input.ConnectionSettings ||
142+
(this.ConnectionSettings != null &&
143+
this.ConnectionSettings.Equals(input.ConnectionSettings))
129144
);
130145
}
131146

@@ -146,6 +161,10 @@ public override int GetHashCode()
146161
{
147162
hashCode = (hashCode * 59) + this.IdSyncConfiguration.GetHashCode();
148163
}
164+
if (this.ConnectionSettings != null)
165+
{
166+
hashCode = (hashCode * 59) + this.ConnectionSettings.GetHashCode();
167+
}
149168
return hashCode;
150169
}
151170
}

src/Segment.PublicApi/Model/SimpleDestination.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ protected SimpleDestination() { }
5050
/// <param name="destinationId">The Destination id. (required).</param>
5151
/// <param name="metadata">metadata.</param>
5252
/// <param name="idSyncConfiguration">ID Sync configuration - array of external IDs with their strategies..</param>
53-
public SimpleDestination(string id = default(string), string name = default(string), string sourceId = default(string), bool enabled = default(bool), string createdAt = default(string), string updatedAt = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>), string destinationId = default(string), Metadata metadata = default(Metadata), List<IDSyncConfigurationInput> idSyncConfiguration = default(List<IDSyncConfigurationInput>))
53+
/// <param name="connectionSettings">The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown..</param>
54+
public SimpleDestination(string id = default(string), string name = default(string), string sourceId = default(string), bool enabled = default(bool), string createdAt = default(string), string updatedAt = default(string), Dictionary<string, Object> settings = default(Dictionary<string, Object>), string destinationId = default(string), Metadata metadata = default(Metadata), List<IDSyncConfigurationInput> idSyncConfiguration = default(List<IDSyncConfigurationInput>), Object connectionSettings = default(Object))
5455
{
5556
// to ensure "id" is required (not null)
5657
if (id == null)
@@ -92,6 +93,7 @@ protected SimpleDestination() { }
9293
this.Name = name;
9394
this.Metadata = metadata;
9495
this.IdSyncConfiguration = idSyncConfiguration;
96+
this.ConnectionSettings = connectionSettings;
9597
}
9698

9799
/// <summary>
@@ -163,6 +165,13 @@ protected SimpleDestination() { }
163165
[DataMember(Name = "idSyncConfiguration", EmitDefaultValue = false)]
164166
public List<IDSyncConfigurationInput> IdSyncConfiguration { get; set; }
165167

168+
/// <summary>
169+
/// The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.
170+
/// </summary>
171+
/// <value>The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.</value>
172+
[DataMember(Name = "connectionSettings", EmitDefaultValue = true)]
173+
public Object ConnectionSettings { get; set; }
174+
166175
/// <summary>
167176
/// Returns the string presentation of the object
168177
/// </summary>
@@ -181,6 +190,7 @@ public override string ToString()
181190
sb.Append(" DestinationId: ").Append(DestinationId).Append("\n");
182191
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
183192
sb.Append(" IdSyncConfiguration: ").Append(IdSyncConfiguration).Append("\n");
193+
sb.Append(" ConnectionSettings: ").Append(ConnectionSettings).Append("\n");
184194
sb.Append("}\n");
185195
return sb.ToString();
186196
}
@@ -266,6 +276,11 @@ public bool Equals(SimpleDestination input)
266276
this.IdSyncConfiguration != null &&
267277
input.IdSyncConfiguration != null &&
268278
this.IdSyncConfiguration.SequenceEqual(input.IdSyncConfiguration)
279+
) &&
280+
(
281+
this.ConnectionSettings == input.ConnectionSettings ||
282+
(this.ConnectionSettings != null &&
283+
this.ConnectionSettings.Equals(input.ConnectionSettings))
269284
);
270285
}
271286

@@ -315,6 +330,10 @@ public override int GetHashCode()
315330
{
316331
hashCode = (hashCode * 59) + this.IdSyncConfiguration.GetHashCode();
317332
}
333+
if (this.ConnectionSettings != null)
334+
{
335+
hashCode = (hashCode * 59) + this.ConnectionSettings.GetHashCode();
336+
}
318337
return hashCode;
319338
}
320339
}

0 commit comments

Comments
 (0)