Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KhalilMohammad committed Jun 22, 2023
1 parent 3809bfe commit 3883be5
Show file tree
Hide file tree
Showing 42 changed files with 1,849 additions and 71 deletions.
60 changes: 60 additions & 0 deletions src/Telnyx.net/Entities/AccessIPAddresses/AccessIPAddress.cs
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; }

}
}
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; }
}
}
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; }

}
}
53 changes: 53 additions & 0 deletions src/Telnyx.net/Entities/AccessIPRanges/AccessIPRanges.cs
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; }
}
}
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 src/Telnyx.net/Entities/AccessIPRanges/AccessIPRangesListOption.cs
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; }
}
}
17 changes: 17 additions & 0 deletions src/Telnyx.net/Entities/AccessToken/AccessToken.cs
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; }


}
}
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; }

}
}
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;
}
}
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; }

}
}
Loading

0 comments on commit 3883be5

Please sign in to comment.