1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-07 19:07:45 +01:00

[AC-1418] Add new update SM subscription request model

This commit is contained in:
Shane Melton 2023-06-27 16:34:01 -07:00
parent 9c85576973
commit d6fb4b6ba9
No known key found for this signature in database

View File

@ -0,0 +1,40 @@
export class OrganizationSmSubscriptionUpdateRequest {
/**
* The number of seats to add or remove from the subscription.
*/
seatAdjustment: number;
/**
* The maximum number of seats that can be auto-scaled for the subscription.
*/
maxAutoscaleSeats?: number;
/**
* The number of additional service accounts to add or remove from the subscription.
*/
serviceAccountAdjustment: number;
/**
* The maximum number of additional service accounts that can be auto-scaled for the subscription.
*/
maxAutoscaleServiceAccounts?: number;
/**
* Build a subscription update request for the Secrets Manager product type.
* @param seatAdjustment - The number of seats to add or remove from the subscription.
* @param serviceAccountAdjustment - The number of additional service accounts to add or remove from the subscription.
* @param maxAutoscaleSeats - The maximum number of seats that can be auto-scaled for the subscription.
* @param maxAutoscaleServiceAccounts - The maximum number of additional service accounts that can be auto-scaled for the subscription.
*/
constructor(
seatAdjustment: number,
serviceAccountAdjustment: number,
maxAutoscaleSeats?: number,
maxAutoscaleServiceAccounts?: number
) {
this.seatAdjustment = seatAdjustment;
this.serviceAccountAdjustment = serviceAccountAdjustment;
this.maxAutoscaleSeats = maxAutoscaleSeats;
this.maxAutoscaleServiceAccounts = maxAutoscaleServiceAccounts;
}
}