Skip to content

Commit

Permalink
chore(core): remove quota limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Dec 25, 2023
1 parent cd1acb9 commit 955ff13
Show file tree
Hide file tree
Showing 17 changed files with 119 additions and 197 deletions.
4 changes: 1 addition & 3 deletions common/openapi/v1beta/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
}
responses: {
key: "401";
value: {
description: "Returned when the client credentials are not valid.";
},
value: {description: "Returned when the client credentials are not valid."},
}
// TODO we can add more common responses here like 404. We'd need to
// reference the rpc error schema.
Expand Down
18 changes: 0 additions & 18 deletions core/mgmt/v1beta/mgmt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -846,26 +846,8 @@ message DeleteOrganizationMembershipResponse {}

// Subscription
message Subscription {
// Quota
message Quota {
// QuotaDetail
message QuotaDetail {
// quota
int32 quota = 1;
// used
int32 used = 2;
// remain
int32 remain = 3;
}
// pipeline trigger
QuotaDetail private_pipeline_trigger = 1;
// private pipeline
QuotaDetail private_pipeline = 2;
}
// plan
string plan = 1;
// plan
Quota quota = 2;
}

// GetUserSubscriptionRequest
Expand Down
1 change: 0 additions & 1 deletion core/mgmt/v1beta/mgmt_private_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ syntax = "proto3";
package core.mgmt.v1beta;

import "core/mgmt/v1beta/mgmt.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
Expand Down
1 change: 0 additions & 1 deletion core/mgmt/v1beta/mgmt_public_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package core.mgmt.v1beta;

import "core/mgmt/v1beta/metric.proto";
import "core/mgmt/v1beta/mgmt.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
Expand Down
1 change: 0 additions & 1 deletion core/usage/v1beta/usage_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ syntax = "proto3";
package core.usage.v1beta;

import "core/usage/v1beta/usage.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
Expand Down
3 changes: 1 addition & 2 deletions model/controller/v1alpha/controller_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ syntax = "proto3";

package model.controller.v1alpha;

import "model/controller/v1alpha/controller.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/visibility.proto";
import "model/controller/v1alpha/controller.proto";

// Controller service responds to incoming controller requests
service ControllerPrivateService {
Expand Down
3 changes: 1 addition & 2 deletions model/model/v1alpha/model_private_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ syntax = "proto3";

package model.model.v1alpha;

import "model/model/v1alpha/model.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/visibility.proto";
import "model/model/v1alpha/model.proto";

// Model service responds to internal access
service ModelPrivateService {
Expand Down
7 changes: 3 additions & 4 deletions model/model/v1alpha/model_public_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ syntax = "proto3";

package model.model.v1alpha;

import "model/model/v1alpha/model.proto";
import "model/model/v1alpha/model_definition.proto";
import "google/api/visibility.proto";

// Google API
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/visibility.proto";
import "model/model/v1alpha/model.proto";
import "model/model/v1alpha/model_definition.proto";

// Model service responds to external access
service ModelPublicService {
Expand Down
Loading

0 comments on commit 955ff13

Please sign in to comment.