-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3809bfe
commit 3883be5
Showing
42 changed files
with
1,849 additions
and
71 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
src/Telnyx.net/Entities/AccessIPAddresses/AccessIPAddress.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
| ||
|
||
using Newtonsoft.Json; | ||
using System; | ||
using Telnyx.net.Entities.Enum.AccessIPAddresses; | ||
|
||
namespace Telnyx.net.Entities.AccessIPAddresses | ||
{ | ||
public class AccessIPAddress : TelnyxEntity | ||
{ | ||
/// <summary> | ||
/// The ISO 8601 formatted date indicating when the resource was created. | ||
/// </summary> | ||
[JsonProperty("created_at")] | ||
public DateTime CreatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The description of the resource. | ||
/// </summary> | ||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the resource. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The IP address value. | ||
/// </summary> | ||
[JsonProperty("ip_address")] | ||
public string IpAddress { get; set; } | ||
|
||
/// <summary> | ||
/// The source value. | ||
/// </summary> | ||
[JsonProperty("source")] | ||
public string Source { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the Cloudflare sync. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public CloudflareSyncStatus Status { get; set; } | ||
|
||
/// <summary> | ||
/// The ISO 8601 formatted date indicating when the resource was last updated. | ||
/// </summary> | ||
[JsonProperty("updated_at")] | ||
public DateTime UpdatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The ID of the user. | ||
/// </summary> | ||
[JsonProperty("user_id")] | ||
public string UserId { get; set; } | ||
|
||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Telnyx.net/Entities/AccessIPAddresses/AccessIPAddressCreateOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Telnyx.net.Entities.Enum.AccessIPAddresses; | ||
|
||
namespace Telnyx.net.Entities.AccessIPAddresses | ||
{ | ||
public class AccessIPAddressCreateOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The description. | ||
/// </summary> | ||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// The IP address. | ||
/// </summary> | ||
[JsonProperty("ip_address")] | ||
public string IpAddress { get; set; } | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/Telnyx.net/Entities/AccessIPAddresses/AccessIPAddressListOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Telnyx.net.Entities.Enum.AccessIPAddresses; | ||
|
||
namespace Telnyx.net.Entities.AccessIPAddresses | ||
{ | ||
public class AccessIPAddressListOptions : ListOptions | ||
{ | ||
/// <summary> | ||
/// Filter by the IP source. | ||
/// </summary> | ||
[JsonProperty("filter[ip_source]")] | ||
public string IpSource { get; set; } | ||
|
||
/// <summary> | ||
/// Filter by the IP address. | ||
/// </summary> | ||
[JsonProperty("filter[ip_address]")] | ||
public string IpAddress { get; set; } | ||
|
||
/// <summary> | ||
/// Filter by the status of the Cloudflare sync. | ||
/// </summary> | ||
[JsonProperty("filter[status]")] | ||
public CloudflareSyncStatus Status { get; set; } | ||
|
||
/// <summary> | ||
/// Filter by the created date after the specified datetime. | ||
/// </summary> | ||
[JsonProperty("filter[created_at][gt]")] | ||
public string CreatedAtGreaterThan { get; set; } | ||
|
||
/// <summary> | ||
/// Filter by the created date before the specified datetime. | ||
/// </summary> | ||
[JsonProperty("filter[created_at][lt]")] | ||
public string CreatedAtLessThan { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Telnyx.net.Entities.Enum.AccessIPRanges; | ||
|
||
namespace Telnyx.net.Entities.AccessIPRanges | ||
{ | ||
public class AccessIPRanges : TelnyxEntity | ||
{ | ||
/// <summary> | ||
/// The CIDR block. | ||
/// </summary> | ||
[JsonProperty("cidr_block")] | ||
public string CidrBlock { get; set; } | ||
|
||
/// <summary> | ||
/// The created date. | ||
/// </summary> | ||
[JsonProperty("created_at")] | ||
public DateTime CreatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The description. | ||
/// </summary> | ||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// The ID. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The status. | ||
/// </summary> | ||
[JsonProperty("status")] | ||
public CloudflareSyncStatus Status { get; set; } | ||
|
||
/// <summary> | ||
/// The updated date. | ||
/// </summary> | ||
[JsonProperty("updated_at")] | ||
public DateTime UpdatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The user ID. | ||
/// </summary> | ||
[JsonProperty("user_id")] | ||
public string UserId { get; set; } | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Telnyx.net/Entities/AccessIPRanges/AccessIPRangesCreateOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Telnyx.net.Entities.AccessIPRanges | ||
{ | ||
public class AccessIPRangesCreateOption : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The CIDR block. | ||
/// </summary> | ||
[JsonProperty("cidr_block")] | ||
public string CidrBlock { get; set; } | ||
|
||
/// <summary> | ||
/// The description. | ||
/// </summary> | ||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
|
||
|
||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/Telnyx.net/Entities/AccessIPRanges/AccessIPRangesListOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Telnyx.net.Entities.Enum.AccessIPRanges; | ||
|
||
namespace Telnyx.net.Entities.AccessIPRanges | ||
{ | ||
public class AccessIPRangesListOption : ListOptions | ||
{ | ||
/// <summary> | ||
/// The CIDR block. | ||
/// </summary> | ||
[JsonProperty("filter[cidr_block]")] | ||
public string CidrBlock { get; set; } | ||
|
||
/// <summary> | ||
/// The CIDR block starts with. | ||
/// </summary> | ||
[JsonProperty("filter[cidr_block][startswith]")] | ||
public string CidrBlockStartsWith { get; set; } | ||
|
||
/// <summary> | ||
/// The CIDR block ends with. | ||
/// </summary> | ||
[JsonProperty("filter[cidr_block][endswith]")] | ||
public string CidrBlockEndsWith { get; set; } | ||
|
||
/// <summary> | ||
/// The CIDR block contains. | ||
/// </summary> | ||
[JsonProperty("filter[cidr_block][contains]")] | ||
public string CidrBlockContains { get; set; } | ||
|
||
/// <summary> | ||
/// The status. | ||
/// </summary> | ||
[JsonProperty("filter[status]")] | ||
public CloudflareSyncStatus Status { get; set; } | ||
|
||
/// <summary> | ||
/// The created at greater than filter. | ||
/// </summary> | ||
[JsonProperty("filter[created_at][gt]")] | ||
public DateTime CreatedAtGreaterThan { get; set; } | ||
|
||
/// <summary> | ||
/// The created at less than filter. | ||
/// </summary> | ||
[JsonProperty("filter[created_at][lt]")] | ||
public DateTime CreatedAtLessThan { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Telnyx.net.Entities.AccessToken | ||
{ | ||
public class AccessTokenCreate : TelnyxEntity | ||
{ | ||
/// <summary> | ||
/// Identifies the resource. | ||
/// </summary> | ||
public string Response { get; set; } | ||
|
||
|
||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/Telnyx.net/Entities/AuthenticationProviders/AuthenticationProviderCreateOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Telnyx.net.Entities.AuthenticationProviders | ||
{ | ||
public class AuthenticationProviderCreateOption : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The active status of the authentication provider. | ||
/// </summary> | ||
[JsonProperty("active")] | ||
public bool Active { get; set; } | ||
|
||
/// <summary> | ||
/// Full contact name. | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// The settings associated with the authentication provider. | ||
/// </summary> | ||
[JsonProperty("settings")] | ||
public SettingsObject Settings { get; set; } | ||
|
||
/// <summary> | ||
/// The URL for the identity provider metadata file to populate the settings automatically. If the settings attribute is provided, that will be used instead. | ||
/// </summary> | ||
[JsonProperty("settings_url")] | ||
public string SettingsUrl { get; set; } | ||
|
||
/// <summary> | ||
/// The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | ||
/// </summary> | ||
[JsonProperty("short_name")] | ||
public string ShortName { get; set; } | ||
|
||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Telnyx.net/Entities/AuthenticationProviders/AuthenticationProviderListOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Telnyx.net.Entities.Enum.AuthenticationProviders; | ||
using Telnyx.net.Services.PhoneNumbers.Orders.Comments; | ||
|
||
namespace Telnyx.net.Entities.AuthenticationProviders | ||
{ | ||
public class AuthenticationProviderListOption : ListOptions | ||
{ | ||
[JsonProperty("sort")] | ||
public Sort Sort { get; set; } = Sort.Name; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
src/Telnyx.net/Entities/AuthenticationProviders/AuthenticationProviders.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime; | ||
using System.Text; | ||
using System.Xml.Linq; | ||
|
||
namespace Telnyx.net.Entities.AuthenticationProviders | ||
{ | ||
public class AuthenticationProviders : TelnyxEntity | ||
{ | ||
/// <summary> | ||
/// The active status of the authentication provider. | ||
/// </summary> | ||
[JsonProperty("active")] | ||
public bool Active { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public DateTime CreatedAt { get; set; } | ||
|
||
[JsonProperty("id")] | ||
public Guid Id { get; set; } | ||
|
||
/// <summary> | ||
/// Full contact name. | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("organization_id")] | ||
public Guid OrganizationId { get; set; } | ||
|
||
[JsonProperty("record_type")] | ||
public string RecordType { get; set; } | ||
|
||
/// <summary> | ||
/// The settings associated with the authentication provider. | ||
/// </summary> | ||
[JsonProperty("settings")] | ||
public SettingsObject Settings { get; set; } | ||
|
||
/// <summary> | ||
/// The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | ||
/// </summary> | ||
[JsonProperty("short_name")] | ||
public string ShortName { get; set; } | ||
|
||
[JsonProperty("updated_at")] | ||
public DateTime UpdatedAt { get; set; } | ||
|
||
} | ||
} |
Oops, something went wrong.