github.com/cloudwan/edgelq-sdk@v1.15.4/iam/proto/v1alpha2/role_binding_change.proto (about) 1 syntax = "proto3"; 2 3 package ntt.iam.v1alpha2; 4 5 import "edgelq-sdk/iam/proto/v1alpha2/role_binding.proto"; 6 import "google/api/resource.proto"; 7 import "google/protobuf/field_mask.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/role_binding;role_binding"; 10 option java_multiple_files = false; 11 option java_outer_classname = "RoleBindingChangeProto"; 12 option java_package = "com.ntt.iam.pb.v1alpha2"; 13 14 // RoleBindingChange is used by Watch notifications Responses to describe change 15 // of single RoleBinding One of Added, Modified, Removed 16 message RoleBindingChange { 17 // RoleBinding change 18 oneof change_type { 19 // Added is returned when watched document is added, either created or 20 // enters Query view 21 Added added = 1; 22 23 // Modified is returned when watched document is modified 24 Modified modified = 2; 25 26 // Current is returned in stateless watch when document enters query view or 27 // is modified within. 28 Current current = 4; 29 30 // Removed is returned when RoleBinding is deleted or leaves Query view 31 Removed removed = 3; 32 } 33 34 // RoleBinding has been added to query view 35 message Added { 36 RoleBinding role_binding = 1; 37 38 // Integer describing index of added RoleBinding in resulting query view. 39 int32 view_index = 2; 40 } 41 42 // RoleBinding changed some of it's fields - contains either full document or 43 // masked change 44 message Modified { 45 // Name of modified RoleBinding 46 string name = 1; 47 48 // New version of RoleBinding or masked difference, depending on 49 // mask_changes instrumentation of issued [WatchRoleBindingRequest] or 50 // [WatchRoleBindingsRequest] 51 RoleBinding role_binding = 2; 52 53 // Used when mask_changes is set, contains field paths of modified 54 // properties. 55 google.protobuf.FieldMask field_mask = 3; 56 57 // Previous view index specifies previous position of modified RoleBinding. 58 // When modification doesn't affect sorted order, value will remain 59 // identical to [view_index]. 60 int32 previous_view_index = 4; 61 62 // Integer specifying RoleBinding new index in resulting query view. 63 int32 view_index = 5; 64 } 65 66 // RoleBinding has been added or modified in a query view. Version used for 67 // stateless watching 68 message Current { RoleBinding role_binding = 1; } 69 70 // Removed is returned when RoleBinding is deleted or leaves Query view 71 message Removed { 72 string name = 1; 73 74 // Integer specifying removed RoleBinding index. Not populated in stateless 75 // watch type. 76 int32 view_index = 2; 77 } 78 }