@@ -340,7 +340,7 @@ public class {{classname}} extends ApiClient {
340
340
* @param timeout The function to decide how long to wait between retries. min(retries * 200, 5000) by default. (optional)
341
341
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
342
342
*/
343
- public Key waitForApiKey(
343
+ public GetApiKeyResponse waitForApiKey(
344
344
ApiKeyOperation operation,
345
345
String key,
346
346
ApiKey apiKey,
@@ -358,7 +358,7 @@ public class {{classname}} extends ApiClient {
358
358
() -> {
359
359
return this.getApiKey(key, requestOptions);
360
360
} ,
361
- (Key respKey) -> {
361
+ (GetApiKeyResponse respKey) -> {
362
362
// we need to convert to an ApiKey object to use the `equals` method
363
363
ApiKey sameType = new ApiKey()
364
364
.setAcl(respKey.getAcl())
@@ -378,7 +378,7 @@ public class {{classname}} extends ApiClient {
378
378
}
379
379
380
380
// bypass lambda restriction to modify final object
381
- final Key [] addedKey = new Key [] { null } ;
381
+ final GetApiKeyResponse [] addedKey = new GetApiKeyResponse [] { null } ;
382
382
383
383
// check the status of the getApiKey method
384
384
TaskUtils.retryUntil(
@@ -421,7 +421,7 @@ public class {{classname}} extends ApiClient {
421
421
* @param timeout The function to decide how long to wait between retries. min(retries * 200, 5000) by default. (optional)
422
422
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
423
423
*/
424
- public Key waitForApiKey(ApiKeyOperation operation, String key, int maxRetries, IntUnaryOperator timeout, RequestOptions requestOptions) {
424
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, int maxRetries, IntUnaryOperator timeout, RequestOptions requestOptions) {
425
425
return this.waitForApiKey(operation, key, null, maxRetries, timeout, requestOptions);
426
426
}
427
427
@@ -434,7 +434,7 @@ public class {{classname}} extends ApiClient {
434
434
* @param apiKey Necessary to know if an `update` operation has been processed, compare fields of the response with it.
435
435
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
436
436
*/
437
- public Key waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey, RequestOptions requestOptions) {
437
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey, RequestOptions requestOptions) {
438
438
return this.waitForApiKey(operation, key, apiKey, TaskUtils.DEFAULT_MAX_RETRIES, TaskUtils.DEFAULT_TIMEOUT, requestOptions);
439
439
}
440
440
@@ -446,7 +446,7 @@ public class {{classname}} extends ApiClient {
446
446
* @param key The `key` that has been added, deleted or updated.
447
447
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
448
448
*/
449
- public Key waitForApiKey(ApiKeyOperation operation, String key, RequestOptions requestOptions) {
449
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, RequestOptions requestOptions) {
450
450
return this.waitForApiKey(operation, key, null, TaskUtils.DEFAULT_MAX_RETRIES, TaskUtils.DEFAULT_TIMEOUT, requestOptions);
451
451
}
452
452
@@ -460,7 +460,7 @@ public class {{classname}} extends ApiClient {
460
460
* @param maxRetries The maximum number of retry. 50 by default. (optional)
461
461
* @param timeout The function to decide how long to wait between retries. min(retries * 200, 5000) by default. (optional)
462
462
*/
463
- public Key waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey, int maxRetries, IntUnaryOperator timeout) {
463
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey, int maxRetries, IntUnaryOperator timeout) {
464
464
return this.waitForApiKey(operation, key, apiKey, maxRetries, timeout, null);
465
465
}
466
466
@@ -473,7 +473,7 @@ public class {{classname}} extends ApiClient {
473
473
* @param maxRetries The maximum number of retry. 50 by default. (optional)
474
474
* @param timeout The function to decide how long to wait between retries. min(retries * 200, 5000) by default. (optional)
475
475
*/
476
- public Key waitForApiKey(ApiKeyOperation operation, String key, int maxRetries, IntUnaryOperator timeout) {
476
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, int maxRetries, IntUnaryOperator timeout) {
477
477
return this.waitForApiKey(operation, key, null, maxRetries, timeout, null);
478
478
}
479
479
@@ -485,7 +485,7 @@ public class {{classname}} extends ApiClient {
485
485
* @param key The `key` that has been added, deleted or updated.
486
486
* @param apiKey Necessary to know if an `update` operation has been processed, compare fields of the response with it.
487
487
*/
488
- public Key waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey) {
488
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key, ApiKey apiKey) {
489
489
return this.waitForApiKey(operation, key, apiKey, TaskUtils.DEFAULT_MAX_RETRIES, TaskUtils.DEFAULT_TIMEOUT, null);
490
490
}
491
491
@@ -496,7 +496,7 @@ public class {{classname}} extends ApiClient {
496
496
* @param operation The `operation` that was done on a `key`. (ADD or DELETE only)
497
497
* @param key The `key` that has been added, deleted or updated.
498
498
*/
499
- public Key waitForApiKey(ApiKeyOperation operation, String key) {
499
+ public GetApiKeyResponse waitForApiKey(ApiKeyOperation operation, String key) {
500
500
return this.waitForApiKey(operation, key, null, TaskUtils.DEFAULT_MAX_RETRIES, TaskUtils.DEFAULT_TIMEOUT, null);
501
501
}
502
502
{{/isSearchClient}}
0 commit comments