-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ac/pm-15957/domain-claim-single-org-policy-e…
- Loading branch information
Showing
4 changed files
with
76 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -580,7 +580,6 @@ jobs: | |
ref: 'main', | ||
inputs: { | ||
server_branch: process.env.GITHUB_REF | ||
is_workflow_call: true | ||
} | ||
}); | ||
|
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
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
src/Api/Billing/Public/Models/Response/OrganizationSubscriptionDetailsResponseModel.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,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; } | ||
} |