github.com/cloudwan/edgelq-sdk@v1.15.4/limits/proto/v1alpha2/plan.proto (about) 1 syntax = "proto3"; 2 3 package ntt.limits.v1alpha2; 4 5 import "edgelq-sdk/iam/proto/v1alpha2/common.proto"; 6 import "edgelq-sdk/limits/proto/v1alpha2/common.proto"; 7 import "edgelq-sdk/meta/proto/v1alpha2/service.proto"; 8 import "google/api/resource.proto"; 9 import "goten-sdk/types/meta.proto"; 10 11 option go_package = "github.com/cloudwan/edgelq-sdk/limits/resources/v1alpha2/plan;plan"; 12 option java_multiple_files = true; 13 option java_outer_classname = "PlanProto"; 14 option java_package = "com.ntt.limits.pb.v1alpha2"; 15 16 // Plan is a bundle with set of limits for various resources. 17 // Those resources should be mostly from service plan references, 18 // but it can also include resources from imported services too. 19 message Plan { 20 option (google.api.resource) = { 21 type : "limits.edgelq.com/Plan" 22 pattern : "plans/{plan}" 23 }; 24 25 // Name of Plan 26 // When creating a new instance, this field is optional and if not provided, 27 // it will be generated automatically. Last ID segment must conform to the 28 // following regex: [a-zA-Z0-9_.-]{1,128} 29 string name = 1; 30 31 string display_name = 2; 32 33 // Primary service to which this plan applies 34 string service = 3; 35 36 // List of limits per each resource. Resources may belong to different 37 // services (dependant services) 38 repeated Allowance resource_limits = 4; 39 40 // Plan level 41 PlanLevel plan_level = 6; 42 43 // Business tier 44 ntt.iam.v1alpha2.BusinessTier business_tier = 7; 45 46 // Metadata 47 goten.types.Meta metadata = 5; 48 49 // PlanLevel defines entity level for whom plan can be assigned 50 enum PlanLevel { 51 UNDEFINED = 0; 52 53 SYSTEM = 1; 54 55 ORGANIZATION = 2; 56 57 PROJECT = 3; 58 } 59 }