github.com/cloudwan/edgelq-sdk@v1.15.4/meta/proto/v1alpha2/region.proto (about) 1 syntax = "proto3"; 2 3 package ntt.meta.v1alpha2; 4 5 import "google/api/resource.proto"; 6 import "goten-sdk/types/meta.proto"; 7 8 option go_package = "github.com/cloudwan/edgelq-sdk/meta/resources/v1alpha2/region;region"; 9 option java_multiple_files = true; 10 option java_outer_classname = "RegionProto"; 11 option java_package = "com.ntt.meta.pb.v1alpha2"; 12 13 // Region Resource 14 message Region { 15 option (google.api.resource) = { 16 type : "meta.edgelq.com/Region" 17 pattern : "regions/{region}" 18 }; 19 20 // Name of Region 21 // When creating a new instance, this field is optional and if not provided, 22 // it will be generated automatically. Last ID segment must conform to the 23 // following regex: [a-z][a-z0-9\-]{0,28}[a-z0-9] 24 string name = 1; 25 26 // Region title 27 string title = 2; 28 29 // Region domain, for example us-west.edgelq.com 30 string domain = 3; 31 32 // Region location 33 RegionLocation location = 4; 34 35 // Whether is default. Only one record is allowed to have this attribute on. 36 bool is_default = 5; 37 38 // Hardcoded scores regarding connectivity preference. 39 repeated RegionConnectivityPreference connectivity_scores = 6; 40 41 // Metadata 42 goten.types.Meta metadata = 7; 43 44 // RegionLocation describes deployment location of a region. 45 message RegionLocation { 46 string continent = 1; 47 48 string country = 2; 49 50 string agglomeration = 3; 51 52 string city = 4; 53 54 string cloud = 5; 55 } 56 57 // RegionConnectivityPreference is a hardcoded connectivity score to other 58 // region. 59 message RegionConnectivityPreference { 60 // Destination region 61 string dest = 2; 62 63 // Hardcoded score 64 int32 score = 3; 65 } 66 }