Skip to content

Commit c153f44

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@ed3c8598.
1 parent cf26451 commit c153f44

File tree

7 files changed

+513
-13
lines changed

7 files changed

+513
-13
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", "{4D0594A7-CDCF-48F3-B6D1-EF35954A4BCC}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{463D4A6C-0164-4D40-A643-2AFF5DAAF519}"
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-
{4D0594A7-CDCF-48F3-B6D1-EF35954A4BCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{4D0594A7-CDCF-48F3-B6D1-EF35954A4BCC}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{4D0594A7-CDCF-48F3-B6D1-EF35954A4BCC}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{4D0594A7-CDCF-48F3-B6D1-EF35954A4BCC}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{463D4A6C-0164-4D40-A643-2AFF5DAAF519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{463D4A6C-0164-4D40-A643-2AFF5DAAF519}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{463D4A6C-0164-4D40-A643-2AFF5DAAF519}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{463D4A6C-0164-4D40-A643-2AFF5DAAF519}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/AudienceDefinition.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ protected AudienceDefinition() { }
6969
/// </summary>
7070
/// <param name="type">The underlying data type being segmented for this audience. Possible values: users, accounts. (required).</param>
7171
/// <param name="query">The query language string defining the audience segmentation criteria. For guidance on using the query language, see the [Segment documentation site](https://segment.com/docs/api/public-api/query-language). (required).</param>
72-
public AudienceDefinition(TypeEnum type = default(TypeEnum), string query = default(string))
72+
/// <param name="targetEntity">The target entity slug..</param>
73+
public AudienceDefinition(TypeEnum type = default(TypeEnum), string query = default(string), string targetEntity = default(string))
7374
{
7475
this.Type = type;
7576
// to ensure "query" is required (not null)
@@ -78,6 +79,7 @@ protected AudienceDefinition() { }
7879
throw new ArgumentNullException("query is a required property for AudienceDefinition and cannot be null");
7980
}
8081
this.Query = query;
82+
this.TargetEntity = targetEntity;
8183
}
8284

8385
/// <summary>
@@ -87,6 +89,13 @@ protected AudienceDefinition() { }
8789
[DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)]
8890
public string Query { get; set; }
8991

92+
/// <summary>
93+
/// The target entity slug.
94+
/// </summary>
95+
/// <value>The target entity slug.</value>
96+
[DataMember(Name = "targetEntity", EmitDefaultValue = false)]
97+
public string TargetEntity { get; set; }
98+
9099
/// <summary>
91100
/// Returns the string presentation of the object
92101
/// </summary>
@@ -97,6 +106,7 @@ public override string ToString()
97106
sb.Append("class AudienceDefinition {\n");
98107
sb.Append(" Type: ").Append(Type).Append("\n");
99108
sb.Append(" Query: ").Append(Query).Append("\n");
109+
sb.Append(" TargetEntity: ").Append(TargetEntity).Append("\n");
100110
sb.Append("}\n");
101111
return sb.ToString();
102112
}
@@ -140,6 +150,11 @@ public bool Equals(AudienceDefinition input)
140150
this.Query == input.Query ||
141151
(this.Query != null &&
142152
this.Query.Equals(input.Query))
153+
) &&
154+
(
155+
this.TargetEntity == input.TargetEntity ||
156+
(this.TargetEntity != null &&
157+
this.TargetEntity.Equals(input.TargetEntity))
143158
);
144159
}
145160

@@ -157,6 +172,10 @@ public override int GetHashCode()
157172
{
158173
hashCode = (hashCode * 59) + this.Query.GetHashCode();
159174
}
175+
if (this.TargetEntity != null)
176+
{
177+
hashCode = (hashCode * 59) + this.TargetEntity.GetHashCode();
178+
}
160179
return hashCode;
161180
}
162181
}

src/Segment.PublicApi/Model/AudienceDefinitionWithoutType.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ protected AudienceDefinitionWithoutType() { }
4141
/// Initializes a new instance of the <see cref="AudienceDefinitionWithoutType" /> class.
4242
/// </summary>
4343
/// <param name="query">The query language string defining the audience segmentation criteria. For guidance on using the query language, see the [Segment documentation site](https://segment.com/docs/api/public-api/query-language). (required).</param>
44-
public AudienceDefinitionWithoutType(string query = default(string))
44+
/// <param name="targetEntity">The target entity slug..</param>
45+
public AudienceDefinitionWithoutType(string query = default(string), string targetEntity = default(string))
4546
{
4647
// to ensure "query" is required (not null)
4748
if (query == null)
4849
{
4950
throw new ArgumentNullException("query is a required property for AudienceDefinitionWithoutType and cannot be null");
5051
}
5152
this.Query = query;
53+
this.TargetEntity = targetEntity;
5254
}
5355

5456
/// <summary>
@@ -58,6 +60,13 @@ protected AudienceDefinitionWithoutType() { }
5860
[DataMember(Name = "query", IsRequired = true, EmitDefaultValue = true)]
5961
public string Query { get; set; }
6062

63+
/// <summary>
64+
/// The target entity slug.
65+
/// </summary>
66+
/// <value>The target entity slug.</value>
67+
[DataMember(Name = "targetEntity", EmitDefaultValue = false)]
68+
public string TargetEntity { get; set; }
69+
6170
/// <summary>
6271
/// Returns the string presentation of the object
6372
/// </summary>
@@ -67,6 +76,7 @@ public override string ToString()
6776
StringBuilder sb = new StringBuilder();
6877
sb.Append("class AudienceDefinitionWithoutType {\n");
6978
sb.Append(" Query: ").Append(Query).Append("\n");
79+
sb.Append(" TargetEntity: ").Append(TargetEntity).Append("\n");
7080
sb.Append("}\n");
7181
return sb.ToString();
7282
}
@@ -106,6 +116,11 @@ public bool Equals(AudienceDefinitionWithoutType input)
106116
this.Query == input.Query ||
107117
(this.Query != null &&
108118
this.Query.Equals(input.Query))
119+
) &&
120+
(
121+
this.TargetEntity == input.TargetEntity ||
122+
(this.TargetEntity != null &&
123+
this.TargetEntity.Equals(input.TargetEntity))
109124
);
110125
}
111126

@@ -122,6 +137,10 @@ public override int GetHashCode()
122137
{
123138
hashCode = (hashCode * 59) + this.Query.GetHashCode();
124139
}
140+
if (this.TargetEntity != null)
141+
{
142+
hashCode = (hashCode * 59) + this.TargetEntity.GetHashCode();
143+
}
125144
return hashCode;
126145
}
127146
}

0 commit comments

Comments
 (0)