From 9fd36fe5e78e8204cb49cb8a038e42085ecf912d Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Sun, 10 Dec 2023 21:14:48 +0800 Subject: [PATCH] chore(mgmt): add quota of private pipeline and trigger in Subscription endpoint (#239) Because - we need to show more details for subscription quota This commit - add quota of private pipeline and trigger in Subscription endpoint --- core/mgmt/v1beta/mgmt.proto | 11 ++++++----- openapiv2/openapiv2.swagger.yaml | 13 ++++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/core/mgmt/v1beta/mgmt.proto b/core/mgmt/v1beta/mgmt.proto index f1ef1e2f..3871e1ae 100644 --- a/core/mgmt/v1beta/mgmt.proto +++ b/core/mgmt/v1beta/mgmt.proto @@ -848,8 +848,8 @@ message DeleteOrganizationMembershipResponse {} message Subscription { // Quota message Quota { - // PipelineTrigger - message PipelineTrigger { + // QuotaDetail + message QuotaDetail { // quota int32 quota = 1; // used @@ -857,9 +857,10 @@ message Subscription { // 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; diff --git a/openapiv2/openapiv2.swagger.yaml b/openapiv2/openapiv2.swagger.yaml index 8e8a1133..5e706399 100644 --- a/openapiv2/openapiv2.swagger.yaml +++ b/openapiv2/openapiv2.swagger.yaml @@ -6425,7 +6425,7 @@ definitions: $ref: '#/definitions/v1betaRole' title: role title: Share Code - QuotaPipelineTrigger: + QuotaQuotaDetail: type: object properties: quota: @@ -6440,7 +6440,7 @@ definitions: type: integer format: int32 title: remain - title: PipelineTrigger + title: QuotaDetail SessionService: type: string enum: @@ -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