File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -431,11 +431,16 @@ message ServiceAccountAuth {
431
431
string id = 1 [(Ydb.length ).le = 1024 ];
432
432
}
433
433
434
+ message TokenAuth {
435
+ string token = 1 [(Ydb.length ).le = 1024 , (Ydb.sensitive ) = true ];
436
+ }
437
+
434
438
message IamAuth {
435
439
oneof identity {
436
440
CurrentIAMTokenAuth current_iam = 1 ;
437
441
ServiceAccountAuth service_account = 2 ;
438
442
NoneAuth none = 3 ;
443
+ TokenAuth token = 4 ;
439
444
}
440
445
}
441
446
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ message MaintenanceTaskResult {
182
182
repeated ActionGroupStates action_group_states = 2 ;
183
183
// Try again after this deadline. Specified if there are no performed actions.
184
184
optional google.protobuf.Timestamp retry_after = 3 ;
185
+ // The time when the mainteance task was created.
186
+ google.protobuf.Timestamp create_time = 4 ;
187
+ // The last time when the mainteance task was refreshed. Initially equals to create_time.
188
+ google.protobuf.Timestamp last_refresh_time = 5 ;
185
189
}
186
190
187
191
message MaintenanceTaskResponse {
@@ -197,6 +201,10 @@ message GetMaintenanceTaskRequest {
197
201
message GetMaintenanceTaskResult {
198
202
MaintenanceTaskOptions task_options = 1 ;
199
203
repeated ActionGroupStates action_group_states = 2 ;
204
+ // The time when the mainteance task was created.
205
+ google.protobuf.Timestamp create_time = 3 ;
206
+ // The last time when the mainteance task was refreshed. Initially equals to create_time.
207
+ google.protobuf.Timestamp last_refresh_time = 4 ;
200
208
}
201
209
202
210
message GetMaintenanceTaskResponse {
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class TGrpcIamCredentialsProvider : public ICredentialsProvider {
126
126
127
127
RequestInflight_ = false ;
128
128
sleepDuration = std::min (BackoffTimeout_, BACKOFF_MAX);
129
- BackoffTimeout_ *= 2 ;
129
+ BackoffTimeout_ = std::min (BackoffTimeout_ * 2 , BACKOFF_MAX) ;
130
130
}
131
131
132
132
Sleep (sleepDuration);
You can’t perform that action at this time.
0 commit comments