Skip to content

Commit 38976b2

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@821c48bc.
1 parent 7a12a91 commit 38976b2

9 files changed

+19
-243
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", "{A391E01A-8E40-4622-9210-50F4370DA7C4}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{361C4E28-7E41-4BCD-94E4-FB20FA190B22}"
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-
{A391E01A-8E40-4622-9210-50F4370DA7C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{A391E01A-8E40-4622-9210-50F4370DA7C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{A391E01A-8E40-4622-9210-50F4370DA7C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{A391E01A-8E40-4622-9210-50F4370DA7C4}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{361C4E28-7E41-4BCD-94E4-FB20FA190B22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{361C4E28-7E41-4BCD-94E4-FB20FA190B22}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{361C4E28-7E41-4BCD-94E4-FB20FA190B22}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{361C4E28-7E41-4BCD-94E4-FB20FA190B22}.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: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,6 @@ namespace Segment.PublicApi.Model
3232
[DataContract(Name = "AudienceDefinition")]
3333
public partial class AudienceDefinition : IEquatable<AudienceDefinition>, IValidatableObject
3434
{
35-
/// <summary>
36-
/// The underlying data type being segmented for this audience. Possible values: users, accounts.
37-
/// </summary>
38-
/// <value>The underlying data type being segmented for this audience. Possible values: users, accounts.</value>
39-
[JsonConverter(typeof(StringEnumConverter))]
40-
public enum TypeEnum
41-
{
42-
/// <summary>
43-
/// Enum ACCOUNTS for value: ACCOUNTS
44-
/// </summary>
45-
[EnumMember(Value = "ACCOUNTS")]
46-
ACCOUNTS = 1,
47-
48-
/// <summary>
49-
/// Enum USERS for value: USERS
50-
/// </summary>
51-
[EnumMember(Value = "USERS")]
52-
USERS = 2
53-
}
54-
55-
56-
/// <summary>
57-
/// The underlying data type being segmented for this audience. Possible values: users, accounts.
58-
/// </summary>
59-
/// <value>The underlying data type being segmented for this audience. Possible values: users, accounts.</value>
60-
[DataMember(Name = "type", EmitDefaultValue = false)]
61-
public TypeEnum? Type { get; set; }
6235
/// <summary>
6336
/// Initializes a new instance of the <see cref="AudienceDefinition" /> class.
6437
/// </summary>
@@ -67,18 +40,16 @@ protected AudienceDefinition() { }
6740
/// <summary>
6841
/// Initializes a new instance of the <see cref="AudienceDefinition" /> class.
6942
/// </summary>
70-
/// <param name="type">The underlying data type being segmented for this audience. Possible values: users, accounts..</param>
7143
/// <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>
7244
/// <param name="targetEntity">The target entity slug..</param>
73-
public AudienceDefinition(TypeEnum? type = default(TypeEnum?), string query = default(string), string targetEntity = default(string))
45+
public AudienceDefinition(string query = default(string), string targetEntity = default(string))
7446
{
7547
// to ensure "query" is required (not null)
7648
if (query == null)
7749
{
7850
throw new ArgumentNullException("query is a required property for AudienceDefinition and cannot be null");
7951
}
8052
this.Query = query;
81-
this.Type = type;
8253
this.TargetEntity = targetEntity;
8354
}
8455

@@ -104,7 +75,6 @@ public override string ToString()
10475
{
10576
StringBuilder sb = new StringBuilder();
10677
sb.Append("class AudienceDefinition {\n");
107-
sb.Append(" Type: ").Append(Type).Append("\n");
10878
sb.Append(" Query: ").Append(Query).Append("\n");
10979
sb.Append(" TargetEntity: ").Append(TargetEntity).Append("\n");
11080
sb.Append("}\n");
@@ -142,10 +112,6 @@ public bool Equals(AudienceDefinition input)
142112
return false;
143113
}
144114
return
145-
(
146-
this.Type == input.Type ||
147-
this.Type.Equals(input.Type)
148-
) &&
149115
(
150116
this.Query == input.Query ||
151117
(this.Query != null &&
@@ -167,7 +133,6 @@ public override int GetHashCode()
167133
unchecked // Overflow is fine, just wrap
168134
{
169135
int hashCode = 41;
170-
hashCode = (hashCode * 59) + this.Type.GetHashCode();
171136
if (this.Query != null)
172137
{
173138
hashCode = (hashCode * 59) + this.Query.GetHashCode();

src/Segment.PublicApi/Model/AudienceDefinitionWithoutType.cs

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/Segment.PublicApi/Model/AudienceOptions.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@ public partial class AudienceOptions : IEquatable<AudienceOptions>, IValidatable
3636
/// Initializes a new instance of the <see cref="AudienceOptions" /> class.
3737
/// </summary>
3838
/// <param name="includeHistoricalData">Determines whether data prior to the audience being created is included when determining audience membership. Note that including historical data may be needed in order to properly handle the definition specified. In these cases, Segment will automatically handle including historical data and the response will return the includeHistoricalData parameter as true..</param>
39-
/// <param name="includeAnonymousUsers">Determines whether anonymous users should be included when determining audience membership..</param>
4039
/// <param name="filterByExternalIds">The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set..</param>
4140
/// <param name="backfillEventDataDays">If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership..</param>
42-
public AudienceOptions(bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool), List<string> filterByExternalIds = default(List<string>), decimal backfillEventDataDays = default(decimal))
41+
public AudienceOptions(bool includeHistoricalData = default(bool), List<string> filterByExternalIds = default(List<string>), decimal backfillEventDataDays = default(decimal))
4342
{
4443
this.IncludeHistoricalData = includeHistoricalData;
45-
this.IncludeAnonymousUsers = includeAnonymousUsers;
4644
this.FilterByExternalIds = filterByExternalIds;
4745
this.BackfillEventDataDays = backfillEventDataDays;
4846
}
@@ -54,13 +52,6 @@ public partial class AudienceOptions : IEquatable<AudienceOptions>, IValidatable
5452
[DataMember(Name = "includeHistoricalData", EmitDefaultValue = true)]
5553
public bool IncludeHistoricalData { get; set; }
5654

57-
/// <summary>
58-
/// Determines whether anonymous users should be included when determining audience membership.
59-
/// </summary>
60-
/// <value>Determines whether anonymous users should be included when determining audience membership.</value>
61-
[DataMember(Name = "includeAnonymousUsers", EmitDefaultValue = true)]
62-
public bool IncludeAnonymousUsers { get; set; }
63-
6455
/// <summary>
6556
/// The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set.
6657
/// </summary>
@@ -84,7 +75,6 @@ public override string ToString()
8475
StringBuilder sb = new StringBuilder();
8576
sb.Append("class AudienceOptions {\n");
8677
sb.Append(" IncludeHistoricalData: ").Append(IncludeHistoricalData).Append("\n");
87-
sb.Append(" IncludeAnonymousUsers: ").Append(IncludeAnonymousUsers).Append("\n");
8878
sb.Append(" FilterByExternalIds: ").Append(FilterByExternalIds).Append("\n");
8979
sb.Append(" BackfillEventDataDays: ").Append(BackfillEventDataDays).Append("\n");
9080
sb.Append("}\n");
@@ -126,10 +116,6 @@ public bool Equals(AudienceOptions input)
126116
this.IncludeHistoricalData == input.IncludeHistoricalData ||
127117
this.IncludeHistoricalData.Equals(input.IncludeHistoricalData)
128118
) &&
129-
(
130-
this.IncludeAnonymousUsers == input.IncludeAnonymousUsers ||
131-
this.IncludeAnonymousUsers.Equals(input.IncludeAnonymousUsers)
132-
) &&
133119
(
134120
this.FilterByExternalIds == input.FilterByExternalIds ||
135121
this.FilterByExternalIds != null &&
@@ -152,7 +138,6 @@ public override int GetHashCode()
152138
{
153139
int hashCode = 41;
154140
hashCode = (hashCode * 59) + this.IncludeHistoricalData.GetHashCode();
155-
hashCode = (hashCode * 59) + this.IncludeAnonymousUsers.GetHashCode();
156141
if (this.FilterByExternalIds != null)
157142
{
158143
hashCode = (hashCode * 59) + this.FilterByExternalIds.GetHashCode();

0 commit comments

Comments
 (0)