@@ -3501,7 +3501,7 @@ public ApiResponse<GetSBOMResponse> getSBOMWithHttpInfo(
35013501 localVarHeaderParams ,
35023502 new HashMap <String , String >(),
35033503 new String [] {"application/json" },
3504- new String [] {"apiKeyAuth" , "appKeyAuth" });
3504+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
35053505 return apiClient .invokeAPI (
35063506 "GET" ,
35073507 builder ,
@@ -3577,7 +3577,7 @@ public CompletableFuture<ApiResponse<GetSBOMResponse>> getSBOMWithHttpInfoAsync(
35773577 localVarHeaderParams ,
35783578 new HashMap <String , String >(),
35793579 new String [] {"application/json" },
3580- new String [] {"apiKeyAuth" , "appKeyAuth" });
3580+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
35813581 } catch (ApiException ex ) {
35823582 CompletableFuture <ApiResponse <GetSBOMResponse >> result = new CompletableFuture <>();
35833583 result .completeExceptionally (ex );
@@ -6821,6 +6821,13 @@ public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync(
68216821 */
68226822 public ApiResponse <ListVulnerabilitiesResponse > listVulnerabilitiesWithHttpInfo (
68236823 ListVulnerabilitiesOptionalParameters parameters ) throws ApiException {
6824+ // Check if unstable operation is enabled
6825+ String operationId = "listVulnerabilities" ;
6826+ if (apiClient .isUnstableOperationEnabled ("v2." + operationId )) {
6827+ apiClient .getLogger ().warning (String .format ("Using unstable operation '%s'" , operationId ));
6828+ } else {
6829+ throw new ApiException (0 , String .format ("Unstable operation '%s' is disabled" , operationId ));
6830+ }
68246831 Object localVarPostBody = null ;
68256832 String pageToken = parameters .pageToken ;
68266833 Long pageNumber = parameters .pageNumber ;
@@ -6969,7 +6976,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
69696976 localVarHeaderParams ,
69706977 new HashMap <String , String >(),
69716978 new String [] {"application/json" },
6972- new String [] {"apiKeyAuth" , "appKeyAuth" });
6979+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
69736980 return apiClient .invokeAPI (
69746981 "GET" ,
69756982 builder ,
@@ -6991,6 +6998,17 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
69916998 */
69926999 public CompletableFuture <ApiResponse <ListVulnerabilitiesResponse >>
69937000 listVulnerabilitiesWithHttpInfoAsync (ListVulnerabilitiesOptionalParameters parameters ) {
7001+ // Check if unstable operation is enabled
7002+ String operationId = "listVulnerabilities" ;
7003+ if (apiClient .isUnstableOperationEnabled ("v2." + operationId )) {
7004+ apiClient .getLogger ().warning (String .format ("Using unstable operation '%s'" , operationId ));
7005+ } else {
7006+ CompletableFuture <ApiResponse <ListVulnerabilitiesResponse >> result =
7007+ new CompletableFuture <>();
7008+ result .completeExceptionally (
7009+ new ApiException (0 , String .format ("Unstable operation '%s' is disabled" , operationId )));
7010+ return result ;
7011+ }
69947012 Object localVarPostBody = null ;
69957013 String pageToken = parameters .pageToken ;
69967014 Long pageNumber = parameters .pageNumber ;
@@ -7141,7 +7159,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
71417159 localVarHeaderParams ,
71427160 new HashMap <String , String >(),
71437161 new String [] {"application/json" },
7144- new String [] {"apiKeyAuth" , "appKeyAuth" });
7162+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
71457163 } catch (ApiException ex ) {
71467164 CompletableFuture <ApiResponse <ListVulnerabilitiesResponse >> result =
71477165 new CompletableFuture <>();
@@ -7461,6 +7479,13 @@ public CompletableFuture<ListVulnerableAssetsResponse> listVulnerableAssetsAsync
74617479 */
74627480 public ApiResponse <ListVulnerableAssetsResponse > listVulnerableAssetsWithHttpInfo (
74637481 ListVulnerableAssetsOptionalParameters parameters ) throws ApiException {
7482+ // Check if unstable operation is enabled
7483+ String operationId = "listVulnerableAssets" ;
7484+ if (apiClient .isUnstableOperationEnabled ("v2." + operationId )) {
7485+ apiClient .getLogger ().warning (String .format ("Using unstable operation '%s'" , operationId ));
7486+ } else {
7487+ throw new ApiException (0 , String .format ("Unstable operation '%s' is disabled" , operationId ));
7488+ }
74647489 Object localVarPostBody = null ;
74657490 String pageToken = parameters .pageToken ;
74667491 Long pageNumber = parameters .pageNumber ;
@@ -7524,7 +7549,7 @@ public ApiResponse<ListVulnerableAssetsResponse> listVulnerableAssetsWithHttpInf
75247549 localVarHeaderParams ,
75257550 new HashMap <String , String >(),
75267551 new String [] {"application/json" },
7527- new String [] {"apiKeyAuth" , "appKeyAuth" });
7552+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
75287553 return apiClient .invokeAPI (
75297554 "GET" ,
75307555 builder ,
@@ -7546,6 +7571,17 @@ public ApiResponse<ListVulnerableAssetsResponse> listVulnerableAssetsWithHttpInf
75467571 */
75477572 public CompletableFuture <ApiResponse <ListVulnerableAssetsResponse >>
75487573 listVulnerableAssetsWithHttpInfoAsync (ListVulnerableAssetsOptionalParameters parameters ) {
7574+ // Check if unstable operation is enabled
7575+ String operationId = "listVulnerableAssets" ;
7576+ if (apiClient .isUnstableOperationEnabled ("v2." + operationId )) {
7577+ apiClient .getLogger ().warning (String .format ("Using unstable operation '%s'" , operationId ));
7578+ } else {
7579+ CompletableFuture <ApiResponse <ListVulnerableAssetsResponse >> result =
7580+ new CompletableFuture <>();
7581+ result .completeExceptionally (
7582+ new ApiException (0 , String .format ("Unstable operation '%s' is disabled" , operationId )));
7583+ return result ;
7584+ }
75497585 Object localVarPostBody = null ;
75507586 String pageToken = parameters .pageToken ;
75517587 Long pageNumber = parameters .pageNumber ;
@@ -7611,7 +7647,7 @@ public ApiResponse<ListVulnerableAssetsResponse> listVulnerableAssetsWithHttpInf
76117647 localVarHeaderParams ,
76127648 new HashMap <String , String >(),
76137649 new String [] {"application/json" },
7614- new String [] {"apiKeyAuth" , "appKeyAuth" });
7650+ new String [] {"AuthZ" , " apiKeyAuth" , "appKeyAuth" });
76157651 } catch (ApiException ex ) {
76167652 CompletableFuture <ApiResponse <ListVulnerableAssetsResponse >> result =
76177653 new CompletableFuture <>();
0 commit comments