Skip to content

Commit

Permalink
chore(mgmt): add quota of private pipeline and trigger in Subscriptio…
Browse files Browse the repository at this point in the history
…n endpoint (#239)

Because

- we need to show more details for subscription quota

This commit

- add quota of private pipeline and trigger in Subscription endpoint
  • Loading branch information
donch1989 authored Dec 10, 2023
1 parent 5c9e4f0 commit 9fd36fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
11 changes: 6 additions & 5 deletions core/mgmt/v1beta/mgmt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -848,18 +848,19 @@ message DeleteOrganizationMembershipResponse {}
message Subscription {
// Quota
message Quota {
// PipelineTrigger
message PipelineTrigger {
// QuotaDetail
message QuotaDetail {
// quota
int32 quota = 1;
// used
int32 used = 2;
// remain
int32 remain = 3;
}

// pipeline
PipelineTrigger pipeline_trigger = 1;
// pipeline trigger
QuotaDetail private_pipeline_trigger = 1;
// private pipeline
QuotaDetail private_pipeline = 2;
}
// plan
string plan = 1;
Expand Down
13 changes: 8 additions & 5 deletions openapiv2/openapiv2.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6425,7 +6425,7 @@ definitions:
$ref: '#/definitions/v1betaRole'
title: role
title: Share Code
QuotaPipelineTrigger:
QuotaQuotaDetail:
type: object
properties:
quota:
Expand All @@ -6440,7 +6440,7 @@ definitions:
type: integer
format: int32
title: remain
title: PipelineTrigger
title: QuotaDetail
SessionService:
type: string
enum:
Expand All @@ -6460,9 +6460,12 @@ definitions:
SubscriptionQuota:
type: object
properties:
pipeline_trigger:
$ref: '#/definitions/QuotaPipelineTrigger'
title: pipeline
private_pipeline_trigger:
$ref: '#/definitions/QuotaQuotaDetail'
title: pipeline trigger
private_pipeline:
$ref: '#/definitions/QuotaQuotaDetail'
title: private pipeline
title: Quota
UserUsageDataConnectorExecuteData:
type: object
Expand Down

0 comments on commit 9fd36fe

Please sign in to comment.