@@ -587,6 +587,142 @@ public CompletableFuture<ApiResponse<AwsOnDemandResponse>> getAwsOnDemandTaskWit
587587 new GenericType <AwsOnDemandResponse >() {});
588588 }
589589
590+ /**
591+ * Get AWS scan options.
592+ *
593+ * <p>See {@link #getAwsScanOptionsWithHttpInfo}.
594+ *
595+ * @param accountId The ID of an AWS account. (required)
596+ * @return AwsScanOptionsResponse
597+ * @throws ApiException if fails to make API call
598+ */
599+ public AwsScanOptionsResponse getAwsScanOptions (String accountId ) throws ApiException {
600+ return getAwsScanOptionsWithHttpInfo (accountId ).getData ();
601+ }
602+
603+ /**
604+ * Get AWS scan options.
605+ *
606+ * <p>See {@link #getAwsScanOptionsWithHttpInfoAsync}.
607+ *
608+ * @param accountId The ID of an AWS account. (required)
609+ * @return CompletableFuture<AwsScanOptionsResponse>
610+ */
611+ public CompletableFuture <AwsScanOptionsResponse > getAwsScanOptionsAsync (String accountId ) {
612+ return getAwsScanOptionsWithHttpInfoAsync (accountId )
613+ .thenApply (
614+ response -> {
615+ return response .getData ();
616+ });
617+ }
618+
619+ /**
620+ * Fetches the Agentless scan options for an activated account.
621+ *
622+ * @param accountId The ID of an AWS account. (required)
623+ * @return ApiResponse<AwsScanOptionsResponse>
624+ * @throws ApiException if fails to make API call
625+ * @http.response.details
626+ * <table border="1">
627+ * <caption>Response details</caption>
628+ * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
629+ * <tr><td> 200 </td><td> OK </td><td> - </td></tr>
630+ * <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
631+ * <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
632+ * <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
633+ * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
634+ * </table>
635+ */
636+ public ApiResponse <AwsScanOptionsResponse > getAwsScanOptionsWithHttpInfo (String accountId )
637+ throws ApiException {
638+ Object localVarPostBody = null ;
639+
640+ // verify the required parameter 'accountId' is set
641+ if (accountId == null ) {
642+ throw new ApiException (
643+ 400 , "Missing the required parameter 'accountId' when calling getAwsScanOptions" );
644+ }
645+ // create path and map variables
646+ String localVarPath =
647+ "/api/v2/agentless_scanning/accounts/aws/{account_id}"
648+ .replaceAll ("\\ {" + "account_id" + "\\ }" , apiClient .escapeString (accountId .toString ()));
649+
650+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
651+
652+ Invocation .Builder builder =
653+ apiClient .createBuilder (
654+ "v2.AgentlessScanningApi.getAwsScanOptions" ,
655+ localVarPath ,
656+ new ArrayList <Pair >(),
657+ localVarHeaderParams ,
658+ new HashMap <String , String >(),
659+ new String [] {"application/json" },
660+ new String [] {"apiKeyAuth" , "appKeyAuth" });
661+ return apiClient .invokeAPI (
662+ "GET" ,
663+ builder ,
664+ localVarHeaderParams ,
665+ new String [] {},
666+ localVarPostBody ,
667+ new HashMap <String , Object >(),
668+ false ,
669+ new GenericType <AwsScanOptionsResponse >() {});
670+ }
671+
672+ /**
673+ * Get AWS scan options.
674+ *
675+ * <p>See {@link #getAwsScanOptionsWithHttpInfo}.
676+ *
677+ * @param accountId The ID of an AWS account. (required)
678+ * @return CompletableFuture<ApiResponse<AwsScanOptionsResponse>>
679+ */
680+ public CompletableFuture <ApiResponse <AwsScanOptionsResponse >> getAwsScanOptionsWithHttpInfoAsync (
681+ String accountId ) {
682+ Object localVarPostBody = null ;
683+
684+ // verify the required parameter 'accountId' is set
685+ if (accountId == null ) {
686+ CompletableFuture <ApiResponse <AwsScanOptionsResponse >> result = new CompletableFuture <>();
687+ result .completeExceptionally (
688+ new ApiException (
689+ 400 , "Missing the required parameter 'accountId' when calling getAwsScanOptions" ));
690+ return result ;
691+ }
692+ // create path and map variables
693+ String localVarPath =
694+ "/api/v2/agentless_scanning/accounts/aws/{account_id}"
695+ .replaceAll ("\\ {" + "account_id" + "\\ }" , apiClient .escapeString (accountId .toString ()));
696+
697+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
698+
699+ Invocation .Builder builder ;
700+ try {
701+ builder =
702+ apiClient .createBuilder (
703+ "v2.AgentlessScanningApi.getAwsScanOptions" ,
704+ localVarPath ,
705+ new ArrayList <Pair >(),
706+ localVarHeaderParams ,
707+ new HashMap <String , String >(),
708+ new String [] {"application/json" },
709+ new String [] {"apiKeyAuth" , "appKeyAuth" });
710+ } catch (ApiException ex ) {
711+ CompletableFuture <ApiResponse <AwsScanOptionsResponse >> result = new CompletableFuture <>();
712+ result .completeExceptionally (ex );
713+ return result ;
714+ }
715+ return apiClient .invokeAPIAsync (
716+ "GET" ,
717+ builder ,
718+ localVarHeaderParams ,
719+ new String [] {},
720+ localVarPostBody ,
721+ new HashMap <String , Object >(),
722+ false ,
723+ new GenericType <AwsScanOptionsResponse >() {});
724+ }
725+
590726 /**
591727 * Get AWS On Demand tasks.
592728 *
@@ -699,7 +835,7 @@ public ApiResponse<AwsOnDemandListResponse> listAwsOnDemandTasksWithHttpInfo()
699835 }
700836
701837 /**
702- * Get AWS Scan Options.
838+ * List AWS Scan Options.
703839 *
704840 * <p>See {@link #listAwsScanOptionsWithHttpInfo}.
705841 *
@@ -711,7 +847,7 @@ public AwsScanOptionsListResponse listAwsScanOptions() throws ApiException {
711847 }
712848
713849 /**
714- * Get AWS Scan Options.
850+ * List AWS Scan Options.
715851 *
716852 * <p>See {@link #listAwsScanOptionsWithHttpInfoAsync}.
717853 *
@@ -768,7 +904,7 @@ public ApiResponse<AwsScanOptionsListResponse> listAwsScanOptionsWithHttpInfo()
768904 }
769905
770906 /**
771- * Get AWS Scan Options.
907+ * List AWS Scan Options.
772908 *
773909 * <p>See {@link #listAwsScanOptionsWithHttpInfo}.
774910 *
0 commit comments