Browse Source
* added GET operation to org subscription endpoint * adding back removed using statement * addressing unused import and lint warnings * whitespace lint fix * successful local format * add NotSelfHostOnly attribute * add endpoint summary and return detailspm-14496-non-root-self-hosted-images
3 changed files with 76 additions and 0 deletions
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel.DataAnnotations; |
||||
|
||||
namespace Bit.Api.Billing.Public.Models; |
||||
|
||||
public class OrganizationSubscriptionDetailsResponseModel : IValidatableObject |
||||
{ |
||||
public PasswordManagerSubscriptionDetails PasswordManager { get; set; } |
||||
public SecretsManagerSubscriptionDetails SecretsManager { get; set; } |
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) |
||||
{ |
||||
if (PasswordManager == null && SecretsManager == null) |
||||
{ |
||||
yield return new ValidationResult("At least one of PasswordManager or SecretsManager must be provided."); |
||||
} |
||||
|
||||
yield return ValidationResult.Success; |
||||
} |
||||
} |
||||
public class PasswordManagerSubscriptionDetails |
||||
{ |
||||
public int? Seats { get; set; } |
||||
public int? MaxAutoScaleSeats { get; set; } |
||||
public short? Storage { get; set; } |
||||
} |
||||
|
||||
public class SecretsManagerSubscriptionDetails |
||||
{ |
||||
public int? Seats { get; set; } |
||||
public int? MaxAutoScaleSeats { get; set; } |
||||
public int? ServiceAccounts { get; set; } |
||||
public int? MaxAutoScaleServiceAccounts { get; set; } |
||||
} |
||||
Loading…
Reference in new issue