Skip to content

Commit a8ec87b

Browse files
committed
chore: update merge conflicts
1 parent 76d317e commit a8ec87b

File tree

7 files changed

+44
-37
lines changed

7 files changed

+44
-37
lines changed

examples/csharp/src/Twilio/Rest/FlexApi/V1/Credential/NewCredentialsOptions.cs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,56 +27,56 @@ namespace Twilio.Rest.FlexApi.V1.Credential
2727
/// <summary> create </summary>
2828
public class CreateNewCredentialsOptions : IOptions<NewCredentialsResource>
2929
{
30-
31-
30+
31+
3232
public string TestString { get; }
3333

34-
34+
3535
public bool? TestBoolean { get; set; }
3636

37-
37+
3838
public int? TestInteger { get; set; }
3939

40-
40+
4141
public decimal? TestNumber { get; set; }
4242

43-
44-
public float TestNumberFloat { get; set; }
4543

46-
47-
public double TestNumberDouble { get; set; }
44+
public float? TestNumberFloat { get; set; }
45+
46+
47+
public double? TestNumberDouble { get; set; }
48+
4849

49-
5050
public decimal? TestNumberInt32 { get; set; }
5151

52-
52+
5353
public long? TestNumberInt64 { get; set; }
5454

55-
55+
5656
public object TestObject { get; set; }
5757

58-
58+
5959
public DateTime? TestDateTime { get; set; }
6060

61-
61+
6262
public DateTime? TestDate { get; set; }
6363

64-
64+
6565
public NewCredentialsResource.StatusEnum TestEnum { get; set; }
6666

67-
67+
6868
public List<object> TestObjectArray { get; set; }
6969

70-
70+
7171
public object TestAnyType { get; set; }
7272

73-
73+
7474
public List<object> TestAnyArray { get; set; }
7575

76-
///<summary> A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. </summary>
76+
///<summary> A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. </summary>
7777
public List<NewCredentialsResource.PermissionsEnum> Permissions { get; set; }
7878

79-
79+
8080
public string SomeA2PThing { get; set; }
8181

8282

@@ -90,7 +90,7 @@ public CreateNewCredentialsOptions(string testString)
9090
Permissions = new List<NewCredentialsResource.PermissionsEnum>();
9191
}
9292

93-
93+
9494
/// <summary> Generate the necessary parameters </summary>
9595
public List<KeyValuePair<string, string>> GetParams()
9696
{
@@ -167,7 +167,7 @@ public List<KeyValuePair<string, string>> GetParams()
167167
return p;
168168
}
169169

170-
170+
171171

172172
}
173173

examples/csharp/src/Twilio/Rest/FlexApi/V1/Credential/NewCredentialsResource.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ namespace Twilio.Rest.FlexApi.V1.Credential
2929
{
3030
public class NewCredentialsResource : Resource
3131
{
32-
3332

34-
33+
34+
3535
public sealed class StatusEnum : StringEnum
3636
{
3737
private StatusEnum(string value) : base(value) {}
@@ -61,10 +61,10 @@ public static implicit operator PermissionsEnum(string value)
6161
public static readonly PermissionsEnum PostAll = new PermissionsEnum("post-all");
6262
}
6363

64-
64+
6565
private static Request BuildCreateRequest(CreateNewCredentialsOptions options, ITwilioRestClient client)
6666
{
67-
67+
6868
string path = "/v1/Credentials/AWS";
6969

7070

@@ -126,11 +126,11 @@ public static NewCredentialsResource Create(
126126
string testString,
127127
int? testInteger = null,
128128
DateTime? testDate = null,
129-
float testNumberFloat = null,
129+
float? testNumberFloat = null,
130130
object testObject = null,
131131
bool? testBoolean = null,
132132
decimal? testNumber = null,
133-
double testNumberDouble = null,
133+
double? testNumberDouble = null,
134134
decimal? testNumberInt32 = null,
135135
long? testNumberInt64 = null,
136136
DateTime? testDateTime = null,
@@ -171,11 +171,11 @@ public static async System.Threading.Tasks.Task<NewCredentialsResource> CreateAs
171171
string testString,
172172
int? testInteger = null,
173173
DateTime? testDate = null,
174-
float testNumberFloat = null,
174+
float? testNumberFloat = null,
175175
object testObject = null,
176176
bool? testBoolean = null,
177177
decimal? testNumber = null,
178-
double testNumberDouble = null,
178+
double? testNumberDouble = null,
179179
decimal? testNumberInt32 = null,
180180
long? testNumberInt64 = null,
181181
DateTime? testDateTime = null,
@@ -192,7 +192,7 @@ public static async System.Threading.Tasks.Task<NewCredentialsResource> CreateAs
192192
}
193193
#endif
194194

195-
195+
196196
/// <summary>
197197
/// Converts a JSON string into a NewCredentialsResource object
198198
/// </summary>
@@ -226,20 +226,20 @@ public static string ToJson(object model)
226226
}
227227
}
228228

229-
230-
///<summary> The account_sid </summary>
229+
230+
///<summary> The account_sid </summary>
231231
[JsonProperty("account_sid")]
232232
public string AccountSid { get; private set; }
233233

234-
///<summary> The sid </summary>
234+
///<summary> The sid </summary>
235235
[JsonProperty("sid")]
236236
public string Sid { get; private set; }
237237

238-
///<summary> The test_string </summary>
238+
///<summary> The test_string </summary>
239239
[JsonProperty("test_string")]
240240
public string TestString { get; private set; }
241241

242-
///<summary> The test_integer </summary>
242+
///<summary> The test_integer </summary>
243243
[JsonProperty("test_integer")]
244244
public int? TestInteger { get; private set; }
245245

src/main/java/com/twilio/oai/TwilioJavaGeneratorModern.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void processOpenAPI(final OpenAPI openAPI) {
7373
}
7474
boolean isV1 = ApplicationConstants.isV1.test(apiStdVersion);
7575
ResourceCacheContext.get().setV1(isV1);
76+
7677
String domain = twilioCodegen.getDomainFromOpenAPI(openAPI);
7778
String version = twilioCodegen.getVersionFromOpenAPI(openAPI);
7879
twilioCodegen.setDomain(domain);

src/main/java/com/twilio/oai/TwilioPythonGenerator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
package com.twilio.oai;
2+
3+
import com.twilio.oai.api.ApiResources;
4+
import com.twilio.oai.api.PythonApiResourceBuilder;
15
import com.twilio.oai.common.EnumConstants;
26
import com.twilio.oai.common.Utility;
37
import com.twilio.oai.resolver.IConventionMapper;

src/main/java/com/twilio/oai/java/feature/Inequality.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ private void addVendorExtension(Map<String, List<CodegenParameter>> groupedItems
7272
}
7373
}
7474
}
75+
7576
// Input: DateCreated, DateCreated>, DateCreated<
7677
// Output: DateCreated, DateCreated, DateCreated
7778
private String getBaseName(CodegenParameter codegenParameter) {

src/main/java/com/twilio/oai/java/format/JavaUpdateDefaultMapping.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
public class JavaUpdateDefaultMapping {
1111
HashSet<String> customFormatWithProperties = new HashSet<>();
12+
1213
/*
1314
If a property in the OpenAPI specification is defined as
1415
date_generated:

src/test/java/com/twilio/oai/TwilioGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void setUp() {
4848

4949
@Test
5050
public void launchGenerator() {
51-
final String pathname = "examples/spec/twilio_flex_v1.yaml";
51+
final String pathname = "examples/spec/twilio_api_v2010.yaml";
5252
File filesList[] ;
5353
File directoryPath = new File(pathname);
5454
if (directoryPath.isDirectory()) {

0 commit comments

Comments
 (0)