@@ -1762,6 +1762,7 @@ def get_sbom(asset_type, filter_asset_name, opts = {})
17621762 # @param filter_asset_name [String] The name of the asset for the SBOM request.
17631763 # @param opts [Hash] the optional parameters
17641764 # @option opts [String] :filter_repo_digest The container image `repo_digest` for the SBOM request. When the requested asset type is 'Image', this filter is mandatory.
1765+ # @option opts [SbomFormat] :ext_format The standard of the SBOM.
17651766 # @return [Array<(GetSBOMResponse, Integer, Hash)>] GetSBOMResponse data, response status code and response headers
17661767 def get_sbom_with_http_info ( asset_type , filter_asset_name , opts = { } )
17671768 unstable_enabled = @api_client . config . unstable_operations [ "v2.get_sbom" . to_sym ]
@@ -1787,13 +1788,18 @@ def get_sbom_with_http_info(asset_type, filter_asset_name, opts = {})
17871788 if @api_client . config . client_side_validation && filter_asset_name . nil?
17881789 fail ArgumentError , "Missing the required parameter 'filter_asset_name' when calling SecurityMonitoringAPI.get_sbom"
17891790 end
1791+ allowable_values = [ 'CycloneDX' , 'SPDX' ]
1792+ if @api_client . config . client_side_validation && opts [ :'ext_format' ] && !allowable_values . include? ( opts [ :'ext_format' ] )
1793+ fail ArgumentError , "invalid value for \" ext_format\" , must be one of #{ allowable_values } "
1794+ end
17901795 # resource path
17911796 local_var_path = '/api/v2/security/sboms/{asset_type}' . sub ( '{asset_type}' , CGI . escape ( asset_type . to_s ) . gsub ( '%2F' , '/' ) )
17921797
17931798 # query parameters
17941799 query_params = opts [ :query_params ] || { }
17951800 query_params [ :'filter[asset_name]' ] = filter_asset_name
17961801 query_params [ :'filter[repo_digest]' ] = opts [ :'filter_repo_digest' ] if !opts [ :'filter_repo_digest' ] . nil?
1802+ query_params [ :'ext:format' ] = opts [ :'ext_format' ] if !opts [ :'ext_format' ] . nil?
17971803
17981804 # header parameters
17991805 header_params = opts [ :header_params ] || { }
@@ -2636,15 +2642,15 @@ def get_vulnerability_notification_rules_with_http_info(opts = {})
26362642 return data , status_code , headers
26372643 end
26382644
2639- # List assets SBOMs.
2645+ # List SBOMs.
26402646 #
26412647 # @see #list_assets_sbo_ms_with_http_info
26422648 def list_assets_sbo_ms ( opts = { } )
26432649 data , _status_code , _headers = list_assets_sbo_ms_with_http_info ( opts )
26442650 data
26452651 end
26462652
2647- # List assets SBOMs.
2653+ # List SBOMs.
26482654 #
26492655 # Get a list of assets SBOMs for an organization.
26502656 #
@@ -3417,6 +3423,8 @@ def list_vulnerabilities(opts = {})
34173423 #
34183424 # This token can then be used in the subsequent paginated requests.
34193425 #
3426+ # *Note: The first request may take longer to complete than subsequent requests.*
3427+ #
34203428 # #### Subsequent requests
34213429 #
34223430 # Any request containing valid `page[token]` and `page[number]` parameters will be considered a subsequent request.
@@ -3456,6 +3464,11 @@ def list_vulnerabilities(opts = {})
34563464 # "links": {...}
34573465 # }
34583466 # ```
3467+ # ### Extensions
3468+ #
3469+ # The request in some cases can include extensions to update behavior of the endpoint requested. The format of the filter parameters follows the [JSON:API format](https://jsonapi.org/extensions/#extensions): `ext:$extension_name`, where `extension_name` is the name of the modifier that is being applied.
3470+ #
3471+ # Extensions can only include one value at the moment: `ext:modifier=value`.
34593472 #
34603473 # @param opts [Hash] the optional parameters
34613474 # @option opts [String] :page_token Its value must come from the `links` section of the response of the first request. Do not manually edit it.
@@ -3485,7 +3498,7 @@ def list_vulnerabilities(opts = {})
34853498 # @option opts [Boolean] :filter_fix_available Filter by fix availability.
34863499 # @option opts [String] :filter_repo_digests Filter by vulnerability `repo_digest` (when the vulnerability is related to `Image` asset).
34873500 # @option opts [String] :filter_origin Filter by origin.
3488- # @option opts [String] :filter_asset_name Filter by asset name.
3501+ # @option opts [String] :filter_asset_name Filter by asset name. This field supports the usage of wildcards (*).
34893502 # @option opts [AssetType] :filter_asset_type Filter by asset type.
34903503 # @option opts [String] :filter_asset_version_first Filter by the first version of the asset this vulnerability has been detected on.
34913504 # @option opts [String] :filter_asset_version_last Filter by the last version of the asset this vulnerability has been detected on.
@@ -3583,7 +3596,7 @@ def list_vulnerabilities_with_http_info(opts = {})
35833596 query_params [ :'filter[tool]' ] = opts [ :'filter_tool' ] if !opts [ :'filter_tool' ] . nil?
35843597 query_params [ :'filter[library.name]' ] = opts [ :'filter_library_name' ] if !opts [ :'filter_library_name' ] . nil?
35853598 query_params [ :'filter[library.version]' ] = opts [ :'filter_library_version' ] if !opts [ :'filter_library_version' ] . nil?
3586- query_params [ :'filter[advisory_id ]' ] = opts [ :'filter_advisory_id' ] if !opts [ :'filter_advisory_id' ] . nil?
3599+ query_params [ :'filter[advisory.id ]' ] = opts [ :'filter_advisory_id' ] if !opts [ :'filter_advisory_id' ] . nil?
35873600 query_params [ :'filter[risks.exploitation_probability]' ] = opts [ :'filter_risks_exploitation_probability' ] if !opts [ :'filter_risks_exploitation_probability' ] . nil?
35883601 query_params [ :'filter[risks.poc_exploit_available]' ] = opts [ :'filter_risks_poc_exploit_available' ] if !opts [ :'filter_risks_poc_exploit_available' ] . nil?
35893602 query_params [ :'filter[risks.exploit_available]' ] = opts [ :'filter_risks_exploit_available' ] if !opts [ :'filter_risks_exploit_available' ] . nil?
@@ -3675,7 +3688,7 @@ def list_vulnerable_assets(opts = {})
36753688 # @param opts [Hash] the optional parameters
36763689 # @option opts [String] :page_token Its value must come from the `links` section of the response of the first request. Do not manually edit it.
36773690 # @option opts [Integer] :page_number The page number to be retrieved. It should be equal or greater than `1`
3678- # @option opts [String] :filter_name Filter by name.
3691+ # @option opts [String] :filter_name Filter by name. This field supports the usage of wildcards (*).
36793692 # @option opts [AssetType] :filter_type Filter by type.
36803693 # @option opts [String] :filter_version_first Filter by the first version of the asset since it has been vulnerable.
36813694 # @option opts [String] :filter_version_last Filter by the last detected version of the asset.
0 commit comments