Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/AuthTokenPromotionResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public static async System.Threading.Tasks.Task<AuthTokenPromotionResource> Upda
return await UpdateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a AuthTokenPromotionResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/BulkConsentsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ public List<KeyValuePair<string, string>> GetParams()


}

}

1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/BulkConsentsResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public static async System.Threading.Tasks.Task<BulkConsentsResource> CreateAsyn
return await CreateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a BulkConsentsResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/BulkContactsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ public List<KeyValuePair<string, string>> GetParams()


}

}

1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/BulkContactsResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public static async System.Threading.Tasks.Task<BulkContactsResource> CreateAsyn
return await CreateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a BulkContactsResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/Credential/AwsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> Delete a Credential from your account </summary>
public class DeleteAwsOptions : IOptions<AwsResource>
{
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public static async System.Threading.Tasks.Task<AwsResource> CreateAsync(
return await CreateAsync(options, client);
}
#endif


/// <summary> Delete a Credential from your account </summary>
/// <param name="options"> Delete Aws parameters </param>
Expand Down Expand Up @@ -431,6 +432,7 @@ public static async System.Threading.Tasks.Task<AwsResource> UpdateAsync(
return await UpdateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a AwsResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> Delete a Credential from your account </summary>
public class DeletePublicKeyOptions : IOptions<PublicKeyResource>
{
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/Accounts/V1/Credential/PublicKeyResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public static async System.Threading.Tasks.Task<PublicKeyResource> CreateAsync(
return await CreateAsync(options, client);
}
#endif


/// <summary> Delete a Credential from your account </summary>
/// <param name="options"> Delete PublicKey parameters </param>
Expand Down Expand Up @@ -431,6 +432,7 @@ public static async System.Threading.Tasks.Task<PublicKeyResource> UpdateAsync(
return await UpdateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a PublicKeyResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/SafelistOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> Remove a phone number or phone number 1k prefix from SafeList. </summary>
public class DeleteSafelistOptions : IOptions<SafelistResource>
{
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/SafelistResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public static async System.Threading.Tasks.Task<SafelistResource> CreateAsync(
return await CreateAsync(options, client);
}
#endif


/// <summary> Remove a phone number or phone number 1k prefix from SafeList. </summary>
/// <param name="options"> Delete Safelist parameters </param>
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> Delete the secondary Auth Token from your account </summary>
public class DeleteSecondaryAuthTokenOptions : IOptions<SecondaryAuthTokenResource>
{
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public static async System.Threading.Tasks.Task<SecondaryAuthTokenResource> Crea
return await CreateAsync(options, client);
}
#endif


/// <summary> Delete the secondary Auth Token from your account </summary>
/// <param name="options"> Delete SecondaryAuthToken parameters </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ private static Request BuildReadRequest(ReadDependentPhoneNumberOptions options,

string path = "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathAddressSid = options.PathAddressSid;
path = path.Replace("{"+"AddressSid"+"}", PathAddressSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Api/V2010/Account/AddressOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> delete </summary>
public class DeleteAddressOptions : IOptions<AddressResource>
{
Expand Down
14 changes: 8 additions & 6 deletions src/Twilio/Rest/Api/V2010/Account/AddressResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static async System.Threading.Tasks.Task<AddressResource> CreateAsync(
return await CreateAsync(options, client);
}
#endif


/// <summary> delete </summary>
/// <param name="options"> Delete Address parameters </param>
Expand All @@ -151,10 +152,10 @@ private static Request BuildDeleteRequest(DeleteAddressOptions options, ITwilioR

string path = "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -219,10 +220,10 @@ private static Request BuildFetchRequest(FetchAddressOptions options, ITwilioRes

string path = "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -429,10 +430,10 @@ private static Request BuildUpdateRequest(UpdateAddressOptions options, ITwilioR

string path = "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Post,
Expand Down Expand Up @@ -534,6 +535,7 @@ public static async System.Threading.Tasks.Task<AddressResource> UpdateAsync(
return await UpdateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a AddressResource object
Expand Down
1 change: 1 addition & 0 deletions src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public List<KeyValuePair<string, string>> GetParams()


}

/// <summary> Delete the application by the specified application sid </summary>
public class DeleteApplicationOptions : IOptions<ApplicationResource>
{
Expand Down
14 changes: 8 additions & 6 deletions src/Twilio/Rest/Api/V2010/Account/ApplicationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public static async System.Threading.Tasks.Task<ApplicationResource> CreateAsync
return await CreateAsync(options, client);
}
#endif


/// <summary> Delete the application by the specified application sid </summary>
/// <param name="options"> Delete Application parameters </param>
Expand All @@ -175,10 +176,10 @@ private static Request BuildDeleteRequest(DeleteApplicationOptions options, ITwi

string path = "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Delete,
Expand Down Expand Up @@ -243,10 +244,10 @@ private static Request BuildFetchRequest(FetchApplicationOptions options, ITwili

string path = "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down Expand Up @@ -441,10 +442,10 @@ private static Request BuildUpdateRequest(UpdateApplicationOptions options, ITwi

string path = "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathSid = options.PathSid;
path = path.Replace("{"+"Sid"+"}", PathSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Post,
Expand Down Expand Up @@ -574,6 +575,7 @@ public static async System.Threading.Tasks.Task<ApplicationResource> UpdateAsync
return await UpdateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a ApplicationResource object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ private static Request BuildFetchRequest(FetchAuthorizedConnectAppOptions option

string path = "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathConnectAppSid = options.PathConnectAppSid;
path = path.Replace("{"+"ConnectAppSid"+"}", PathConnectAppSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadLocalOptions options, ITwilioRestCli

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadMachineToMachineOptions options, ITw

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadMobileOptions options, ITwilioRestCl

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadNationalOptions options, ITwilioRest

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadSharedCostOptions options, ITwilioRe

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadTollFreeOptions options, ITwilioRest

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadVoipOptions options, ITwilioRestClie

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildFetchRequest(FetchAvailablePhoneNumberCountryOptions

string path = "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCountryCode = options.PathCountryCode.ToString();
path = path.Replace("{"+"CountryCode"+"}", PathCountryCode);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
4 changes: 2 additions & 2 deletions src/Twilio/Rest/Api/V2010/Account/Call/EventResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ private static Request BuildReadRequest(ReadEventOptions options, ITwilioRestCli

string path = "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json";

string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);
string PathCallSid = options.PathCallSid;
path = path.Replace("{"+"CallSid"+"}", PathCallSid);
string PathAccountSid = options.PathAccountSid ?? client.AccountSid;
path = path.Replace("{"+"AccountSid"+"}", PathAccountSid);

return new Request(
HttpMethod.Get,
Expand Down
Loading
Loading