github.com/cloudwan/edgelq-sdk@v1.15.4/applications/fixtures/v1/applications.pb.permissions.go (about) 1 // Code generated by protoc-gen-ntt-iam 2 // DO NOT EDIT!!! 3 4 package fixtures 5 6 import ( 7 gotenresource "github.com/cloudwan/goten-sdk/runtime/resource" 8 "github.com/cloudwan/goten-sdk/runtime/resource/sharding" 9 "github.com/cloudwan/goten-sdk/runtime/resource/sharding/std_decorators" 10 11 "github.com/cloudwan/edgelq-sdk/common/fixtures_controller_v2/manifest" 12 iamaperm "github.com/cloudwan/edgelq-sdk/iam/access/v1/permission" 13 iamrperm "github.com/cloudwan/edgelq-sdk/iam/resources/v1/permission" 14 ) 15 16 func MakeApplicationsPermissionsManifest(defaultRegionId string, byNameRing *sharding.RingConfig) *manifest.Manifest { 17 return &manifest.Manifest{ 18 ApiAccess: iamaperm.GetApiAccessBuilder(), 19 GroupName: "applications.edgelq.com/Permissions/CodeGen", 20 RestrictedRegionId: defaultRegionId, 21 ShardingDec: std_decorators.NewShardingByName(byNameRing), 22 Parent: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").Parent(), 23 DiffMask: &iamrperm.Permission_FieldMask{Paths: []iamrperm.Permission_FieldPath{ 24 iamrperm.NewPermissionFieldPathBuilder().Name().FieldPath(), 25 iamrperm.NewPermissionFieldPathBuilder().Title().FieldPath(), 26 iamrperm.NewPermissionFieldPathBuilder().Description().FieldPath(), 27 }}, 28 29 Resources: []struct { 30 Resource gotenresource.Resource 31 LocalReplacements []manifest.ValueRepl 32 }{ 33 { 34 Resource: &iamrperm.Permission{ 35 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps!attach").Name(), 36 Title: "Attach permission for ConfigMap", 37 Description: "Allows attaching instance of ConfigMap", 38 }, 39 }, 40 { 41 Resource: &iamrperm.Permission{ 42 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.batchGet").Name(), 43 Title: "Applications ConfigMap BatchGetConfigMaps", 44 Description: "Allows for performing BatchGetConfigMaps method on ConfigMap resource.", 45 }, 46 }, 47 { 48 Resource: &iamrperm.Permission{ 49 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.create").Name(), 50 Title: "Applications ConfigMap CreateConfigMap", 51 Description: "Allows for performing CreateConfigMap method on ConfigMap resource.", 52 }, 53 }, 54 { 55 Resource: &iamrperm.Permission{ 56 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.delete").Name(), 57 Title: "Applications ConfigMap DeleteConfigMap", 58 Description: "Allows for performing DeleteConfigMap method on ConfigMap resource.", 59 }, 60 }, 61 { 62 Resource: &iamrperm.Permission{ 63 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.get").Name(), 64 Title: "Applications ConfigMap GetConfigMap", 65 Description: "Allows for performing GetConfigMap method on ConfigMap resource.", 66 }, 67 }, 68 { 69 Resource: &iamrperm.Permission{ 70 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.list").Name(), 71 Title: "Applications ConfigMap ListConfigMaps", 72 Description: "Allows for performing ListConfigMaps method on ConfigMap resource.", 73 }, 74 }, 75 { 76 Resource: &iamrperm.Permission{ 77 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.update").Name(), 78 Title: "Applications ConfigMap UpdateConfigMap", 79 Description: "Allows for performing UpdateConfigMap method on ConfigMap resource.", 80 }, 81 }, 82 { 83 Resource: &iamrperm.Permission{ 84 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("configMaps.watch").Name(), 85 Title: "Applications ConfigMap WatchConfigMap", 86 Description: "Allows for performing WatchConfigMap method on ConfigMap resource.", 87 }, 88 }, 89 { 90 Resource: &iamrperm.Permission{ 91 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions!attach").Name(), 92 Title: "Attach permission for Distribution", 93 Description: "Allows attaching instance of Distribution", 94 }, 95 }, 96 { 97 Resource: &iamrperm.Permission{ 98 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.batchGet").Name(), 99 Title: "Applications Distribution BatchGetDistributions", 100 Description: "Allows for performing BatchGetDistributions method on Distribution resource.", 101 }, 102 }, 103 { 104 Resource: &iamrperm.Permission{ 105 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.create").Name(), 106 Title: "Applications Distribution CreateDistribution", 107 Description: "Allows for performing CreateDistribution method on Distribution resource.", 108 }, 109 }, 110 { 111 Resource: &iamrperm.Permission{ 112 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.delete").Name(), 113 Title: "Applications Distribution DeleteDistribution", 114 Description: "Allows for performing DeleteDistribution method on Distribution resource.", 115 }, 116 }, 117 { 118 Resource: &iamrperm.Permission{ 119 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.get").Name(), 120 Title: "Applications Distribution GetDistribution", 121 Description: "Allows for performing GetDistribution method on Distribution resource.", 122 }, 123 }, 124 { 125 Resource: &iamrperm.Permission{ 126 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.list").Name(), 127 Title: "Applications Distribution ListDistributions", 128 Description: "Allows for performing ListDistributions method on Distribution resource.", 129 }, 130 }, 131 { 132 Resource: &iamrperm.Permission{ 133 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.update").Name(), 134 Title: "Applications Distribution UpdateDistribution", 135 Description: "Allows for performing UpdateDistribution method on Distribution resource.", 136 }, 137 }, 138 { 139 Resource: &iamrperm.Permission{ 140 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("distributions.watch").Name(), 141 Title: "Applications Distribution WatchDistribution", 142 Description: "Allows for performing WatchDistribution method on Distribution resource.", 143 }, 144 }, 145 { 146 Resource: &iamrperm.Permission{ 147 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods!attach").Name(), 148 Title: "Attach permission for Pod", 149 Description: "Allows attaching instance of Pod", 150 }, 151 }, 152 { 153 Resource: &iamrperm.Permission{ 154 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.batchGet").Name(), 155 Title: "Applications Pod BatchGetPods", 156 Description: "Allows for performing BatchGetPods method on Pod resource.", 157 }, 158 }, 159 { 160 Resource: &iamrperm.Permission{ 161 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.create").Name(), 162 Title: "Applications Pod CreatePod", 163 Description: "Allows for performing CreatePod method on Pod resource.", 164 }, 165 }, 166 { 167 Resource: &iamrperm.Permission{ 168 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.delete").Name(), 169 Title: "Applications Pod DeletePod", 170 Description: "Allows for performing DeletePod method on Pod resource.", 171 }, 172 }, 173 { 174 Resource: &iamrperm.Permission{ 175 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.get").Name(), 176 Title: "Applications Pod GetPod", 177 Description: "Allows for performing GetPod method on Pod resource.", 178 }, 179 }, 180 { 181 Resource: &iamrperm.Permission{ 182 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.list").Name(), 183 Title: "Applications Pod ListPods", 184 Description: "Allows for performing ListPods method on Pod resource.", 185 }, 186 }, 187 { 188 Resource: &iamrperm.Permission{ 189 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.update").Name(), 190 Title: "Applications Pod UpdatePod", 191 Description: "Allows for performing UpdatePod method on Pod resource.", 192 }, 193 }, 194 { 195 Resource: &iamrperm.Permission{ 196 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("pods.watch").Name(), 197 Title: "Applications Pod WatchPod", 198 Description: "Allows for performing WatchPod method on Pod resource.", 199 }, 200 }, 201 { 202 Resource: &iamrperm.Permission{ 203 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects!attach").Name(), 204 Title: "Attach permission for Project", 205 Description: "Allows attaching instance of Project", 206 }, 207 }, 208 { 209 Resource: &iamrperm.Permission{ 210 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.batchGet").Name(), 211 Title: "Applications Project BatchGetProjects", 212 Description: "Allows for performing BatchGetProjects method on Project resource.", 213 }, 214 }, 215 { 216 Resource: &iamrperm.Permission{ 217 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.create").Name(), 218 Title: "Applications Project CreateProject", 219 Description: "Allows for performing CreateProject method on Project resource.", 220 }, 221 }, 222 { 223 Resource: &iamrperm.Permission{ 224 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.delete").Name(), 225 Title: "Applications Project DeleteProject", 226 Description: "Allows for performing DeleteProject method on Project resource.", 227 }, 228 }, 229 { 230 Resource: &iamrperm.Permission{ 231 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.get").Name(), 232 Title: "Applications Project GetProject", 233 Description: "Allows for performing GetProject method on Project resource.", 234 }, 235 }, 236 { 237 Resource: &iamrperm.Permission{ 238 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.list").Name(), 239 Title: "Applications Project ListProjects", 240 Description: "Allows for performing ListProjects method on Project resource.", 241 }, 242 }, 243 { 244 Resource: &iamrperm.Permission{ 245 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.update").Name(), 246 Title: "Applications Project UpdateProject", 247 Description: "Allows for performing UpdateProject method on Project resource.", 248 }, 249 }, 250 { 251 Resource: &iamrperm.Permission{ 252 Name: iamrperm.NewNameBuilder().SetServiceId("applications.edgelq.com").SetId("projects.watch").Name(), 253 Title: "Applications Project WatchProject", 254 Description: "Allows for performing WatchProject method on Project resource.", 255 }, 256 }, 257 }, 258 } 259 }