-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for managing Branding Phone Provider settings (#780)
- Loading branch information
Showing
10 changed files
with
293 additions
and
40 deletions.
There are no files selected for viewing
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
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
11 changes: 11 additions & 0 deletions
11
src/Auth0.ManagementApi/Models/Branding/BrandingPhoneProvider.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,11 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class BrandingPhoneProvider : BrandingPhoneProviderBase | ||
{ | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
} | ||
} | ||
|
34 changes: 34 additions & 0 deletions
34
src/Auth0.ManagementApi/Models/Branding/BrandingPhoneProviderBase.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,34 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
/// <summary> | ||
/// Phone provider configuration schema | ||
/// </summary> | ||
public class BrandingPhoneProviderBase | ||
{ | ||
/// <summary> | ||
/// Name of the phone notification provider | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the provider is enabled (false) or disabled (true). | ||
/// </summary> | ||
[JsonProperty("disabled")] | ||
public bool? Disabled { get; set; } | ||
|
||
[JsonProperty("configuration")] | ||
public dynamic Configuration { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Provider credentials required to use authenticate to the provider. | ||
/// </summary> | ||
public class BrandingCredential | ||
{ | ||
[JsonProperty("auth_token")] | ||
public string AuthToken { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Auth0.ManagementApi/Models/Branding/BrandingPhoneProviderCreateRequest.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,11 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
|
||
public class BrandingPhoneProviderCreateRequest : BrandingPhoneProviderBase | ||
{ | ||
[JsonProperty("credentials")] | ||
public BrandingCredential Credentials { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Auth0.ManagementApi/Models/Branding/BrandingPhoneProviderGetRequest.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,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
public class BrandingPhoneProviderGetRequest | ||
{ | ||
/// <summary> | ||
/// Whether the provider is enabled (false) or disabled (true). | ||
/// </summary> | ||
[JsonProperty("disabled")] | ||
public bool? Disabled { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Auth0.ManagementApi/Models/Branding/BrandingPhoneProviderUpdateRequest.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,11 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models | ||
{ | ||
|
||
public class BrandingPhoneProviderUpdateRequest : BrandingPhoneProviderBase | ||
{ | ||
[JsonProperty("credentials")] | ||
public BrandingCredential Credentials { get; set; } | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.