Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private static Request BuildCreateRequest(CreateAssistantsKnowledgeOptions optio
string path = "/v1/Assistants/{assistantId}/Knowledge/{id}";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Post,
Expand Down Expand Up @@ -118,9 +118,9 @@ private static Request BuildDeleteRequest(DeleteAssistantsKnowledgeOptions optio
string path = "/v1/Assistants/{assistantId}/Knowledge/{id}";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -186,7 +186,7 @@ private static Request BuildReadRequest(ReadAssistantsKnowledgeOptions options,
string path = "/v1/Assistants/{assistantId}/Knowledge";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private static Request BuildCreateRequest(CreateAssistantsToolOptions options, I
string path = "/v1/Assistants/{assistantId}/Tools/{id}";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Post,
Expand Down Expand Up @@ -118,9 +118,9 @@ private static Request BuildDeleteRequest(DeleteAssistantsToolOptions options, I
string path = "/v1/Assistants/{assistantId}/Tools/{id}";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -186,7 +186,7 @@ private static Request BuildReadRequest(ReadAssistantsToolOptions options, ITwil
string path = "/v1/Assistants/{assistantId}/Tools";

string PathAssistantId = options.PathAssistantId;
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);

return new Request(
HttpMethod.Get,
Expand Down
4 changes: 2 additions & 2 deletions src/Twilio/Rest/Assistants/V1/Assistant/FeedbackResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static Request BuildCreateRequest(CreateFeedbackOptions options, ITwilio
string path = "/v1/Assistants/{id}/Feedbacks";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Post,
Expand Down Expand Up @@ -156,7 +156,7 @@ private static Request BuildReadRequest(ReadFeedbackOptions options, ITwilioRest
string path = "/v1/Assistants/{id}/Feedbacks";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/Assistant/MessageResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static Request BuildCreateRequest(CreateMessageOptions options, ITwilioR
string path = "/v1/Assistants/{id}/Messages";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Post,
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Assistants/V1/AssistantResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private static Request BuildDeleteRequest(DeleteAssistantOptions options, ITwili
string path = "/v1/Assistants/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -524,7 +524,7 @@ private static Request BuildFetchRequest(FetchAssistantOptions options, ITwilioR
string path = "/v1/Assistants/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -707,7 +707,7 @@ private static Request BuildUpdateRequest(UpdateAssistantOptions options, ITwili
string path = "/v1/Assistants/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Put,
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/Knowledge/ChunkResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildReadRequest(ReadChunkOptions options, ITwilioRestCli
string path = "/v1/Knowledge/{id}/Chunks";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildFetchRequest(FetchKnowledgeStatusOptions options, IT
string path = "/v1/Knowledge/{id}/Status";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Assistants/V1/KnowledgeResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private static Request BuildDeleteRequest(DeleteKnowledgeOptions options, ITwili
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -346,7 +346,7 @@ private static Request BuildFetchRequest(FetchKnowledgeOptions options, ITwilioR
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -533,7 +533,7 @@ private static Request BuildUpdateRequest(UpdateKnowledgeOptions options, ITwili
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Put,
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/Session/MessageResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildReadRequest(ReadMessageOptions options, ITwilioRestC
string path = "/v1/Sessions/{sessionId}/Messages";

string PathSessionId = options.PathSessionId;
path = path.Replace("{"+"SessionId"+"}", PathSessionId);
path = path.Replace("{"+"sessionId"+"}", PathSessionId);

return new Request(
HttpMethod.Get,
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/SessionResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildFetchRequest(FetchSessionOptions options, ITwilioRes
string path = "/v1/Sessions/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Assistants/V1/ToolResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private static Request BuildDeleteRequest(DeleteToolOptions options, ITwilioRest
string path = "/v1/Tools/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -431,7 +431,7 @@ private static Request BuildFetchRequest(FetchToolOptions options, ITwilioRestCl
string path = "/v1/Tools/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -618,7 +618,7 @@ private static Request BuildUpdateRequest(UpdateToolOptions options, ITwilioRest
string path = "/v1/Tools/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Put,
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Knowledge/V1/Knowledge/ChunkResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildReadRequest(ReadChunkOptions options, ITwilioRestCli
string path = "/v1/Knowledge/{id}/Chunks";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static Request BuildFetchRequest(FetchKnowledgeStatusOptions options, IT
string path = "/v1/Knowledge/{id}/Status";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Knowledge/V1/KnowledgeResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private static Request BuildDeleteRequest(DeleteKnowledgeOptions options, ITwili
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -339,7 +339,7 @@ private static Request BuildFetchRequest(FetchKnowledgeOptions options, ITwilioR
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -522,7 +522,7 @@ private static Request BuildUpdateRequest(UpdateKnowledgeOptions options, ITwili
string path = "/v1/Knowledge/{id}";

string PathId = options.PathId;
path = path.Replace("{"+"Id"+"}", PathId);
path = path.Replace("{"+"id"+"}", PathId);

return new Request(
HttpMethod.Put,
Expand Down
Loading