@@ -1397,6 +1397,71 @@ def get_security_monitoring_suppression_with_http_info(suppression_id, opts = {}
13971397 return data , status_code , headers
13981398 end
13991399
1400+ # List custom frameworks.
1401+ #
1402+ # @see #list_custom_frameworks_with_http_info
1403+ def list_custom_frameworks ( org_id , opts = { } )
1404+ data , _status_code , _headers = list_custom_frameworks_with_http_info ( org_id , opts )
1405+ data
1406+ end
1407+
1408+ # List custom frameworks.
1409+ #
1410+ # List custom frameworks.
1411+ #
1412+ # @param org_id [String] The ID of the organization.
1413+ # @param opts [Hash] the optional parameters
1414+ # @return [Array<(SecurityMonitoringListCustomFrameworksResponse, Integer, Hash)>] SecurityMonitoringListCustomFrameworksResponse data, response status code and response headers
1415+ def list_custom_frameworks_with_http_info ( org_id , opts = { } )
1416+
1417+ if @api_client . config . debugging
1418+ @api_client . config . logger . debug 'Calling API: SecurityMonitoringAPI.list_custom_frameworks ...'
1419+ end
1420+ # verify the required parameter 'org_id' is set
1421+ if @api_client . config . client_side_validation && org_id . nil?
1422+ fail ArgumentError , "Missing the required parameter 'org_id' when calling SecurityMonitoringAPI.list_custom_frameworks"
1423+ end
1424+ # resource path
1425+ local_var_path = '/api/v2/orgs/{org_id}/cloud_security_management/custom_frameworks' . sub ( '{org_id}' , CGI . escape ( org_id . to_s ) . gsub ( '%2F' , '/' ) )
1426+
1427+ # query parameters
1428+ query_params = opts [ :query_params ] || { }
1429+
1430+ # header parameters
1431+ header_params = opts [ :header_params ] || { }
1432+ # HTTP header 'Accept' (if needed)
1433+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
1434+
1435+ # form parameters
1436+ form_params = opts [ :form_params ] || { }
1437+
1438+ # http body (model)
1439+ post_body = opts [ :debug_body ]
1440+
1441+ # return_type
1442+ return_type = opts [ :debug_return_type ] || 'SecurityMonitoringListCustomFrameworksResponse'
1443+
1444+ # auth_names
1445+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ]
1446+
1447+ new_options = opts . merge (
1448+ :operation => :list_custom_frameworks ,
1449+ :header_params => header_params ,
1450+ :query_params => query_params ,
1451+ :form_params => form_params ,
1452+ :body => post_body ,
1453+ :auth_names => auth_names ,
1454+ :return_type => return_type ,
1455+ :api_version => "V2"
1456+ )
1457+
1458+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Get , local_var_path , new_options )
1459+ if @api_client . config . debugging
1460+ @api_client . config . logger . debug "API called: SecurityMonitoringAPI#list_custom_frameworks\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
1461+ end
1462+ return data , status_code , headers
1463+ end
1464+
14001465 # List findings.
14011466 #
14021467 # @see #list_findings_with_http_info
0 commit comments