@@ -93,13 +93,15 @@ defmodule InternalApi.ServiceAccount.UpdateRequest do
93
93
@ type t :: % __MODULE__ {
94
94
service_account_id: String . t ( ) ,
95
95
name: String . t ( ) ,
96
- description: String . t ( )
96
+ description: String . t ( ) ,
97
+ role_id: String . t ( )
97
98
}
98
99
99
- defstruct [ :service_account_id , :name , :description ]
100
+ defstruct [ :service_account_id , :name , :description , :role_id ]
100
101
field ( :service_account_id , 1 , type: :string )
101
102
field ( :name , 2 , type: :string )
102
103
field ( :description , 3 , type: :string )
104
+ field ( :role_id , 4 , type: :string )
103
105
end
104
106
105
107
defmodule InternalApi.ServiceAccount.UpdateResponse do
@@ -114,6 +116,25 @@ defmodule InternalApi.ServiceAccount.UpdateResponse do
114
116
field ( :service_account , 1 , type: InternalApi.ServiceAccount.ServiceAccount )
115
117
end
116
118
119
+ defmodule InternalApi.ServiceAccount.DeactivateRequest do
120
+ @ moduledoc false
121
+ use Protobuf , syntax: :proto3
122
+
123
+ @ type t :: % __MODULE__ {
124
+ service_account_id: String . t ( )
125
+ }
126
+
127
+ defstruct [ :service_account_id ]
128
+ field ( :service_account_id , 1 , type: :string )
129
+ end
130
+
131
+ defmodule InternalApi.ServiceAccount.DeactivateResponse do
132
+ @ moduledoc false
133
+ use Protobuf , syntax: :proto3
134
+
135
+ defstruct [ ]
136
+ end
137
+
117
138
defmodule InternalApi.ServiceAccount.DeleteRequest do
118
139
@ moduledoc false
119
140
use Protobuf , syntax: :proto3
@@ -217,6 +238,12 @@ defmodule InternalApi.ServiceAccount.ServiceAccountService.Service do
217
238
InternalApi.ServiceAccount.UpdateResponse
218
239
)
219
240
241
+ rpc (
242
+ :Deactivate ,
243
+ InternalApi.ServiceAccount.DeactivateRequest ,
244
+ InternalApi.ServiceAccount.DeactivateResponse
245
+ )
246
+
220
247
rpc (
221
248
:Delete ,
222
249
InternalApi.ServiceAccount.DeleteRequest ,
0 commit comments