Skip to content

Commit

Permalink
[auto] Updated Kandji SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
MScottBlake authored and github-actions[bot] committed Mar 8, 2025
1 parent f5a0d81 commit d3dc2e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Kandji/Classes/KandjiAPIs/APIs/VulnerabilitiesAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ extension kandji_sdkAPI {
List Detections

- parameter after: (query) Cursor token. (optional)
- parameter limit: (query) A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
- parameter size: (query) A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
- parameter filter: (query) Can filter on any key attribute within the response. (optional)
- parameter apiResponseQueue: The queue on which api response is dispatched.
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func listDetections(after: String? = nil, limit: String? = nil, filter: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: VulnerabilitiesListDetections200Response?, _ error: Error?) -> Void)) -> RequestTask {
return listDetectionsWithRequestBuilder(after: after, limit: limit, filter: filter).execute(apiResponseQueue) { result in
open class func listDetections(after: String? = nil, size: String? = nil, filter: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: VulnerabilitiesListDetections200Response?, _ error: Error?) -> Void)) -> RequestTask {
return listDetectionsWithRequestBuilder(after: after, size: size, filter: filter).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -242,19 +242,19 @@ extension kandji_sdkAPI {
url: https://api-docs.kandji.io/#6ca65b6a-8792-4d01-a49b-935fff494070
}
- parameter after: (query) Cursor token. (optional)
- parameter limit: (query) A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
- parameter size: (query) A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
- parameter filter: (query) Can filter on any key attribute within the response. (optional)
- returns: RequestBuilder<VulnerabilitiesListDetections200Response>
*/
open class func listDetectionsWithRequestBuilder(after: String? = nil, limit: String? = nil, filter: String? = nil) -> RequestBuilder<VulnerabilitiesListDetections200Response> {
open class func listDetectionsWithRequestBuilder(after: String? = nil, size: String? = nil, filter: String? = nil) -> RequestBuilder<VulnerabilitiesListDetections200Response> {
let localVariablePath = "/api/v1/vulnerability-management/detections"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableParameters: [String: Any]? = nil

var localVariableUrlComponents = URLComponents(string: localVariableURLString)
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
"after": (wrappedValue: after?.encodeToJSON(), isExplode: true),
"limit": (wrappedValue: limit?.encodeToJSON(), isExplode: true),
"size": (wrappedValue: size?.encodeToJSON(), isExplode: true),
"filter": (wrappedValue: filter?.encodeToJSON(), isExplode: true),
])

Expand Down
8 changes: 4 additions & 4 deletions docs/VulnerabilitiesAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Name | Type | Description | Notes

# **listDetections**
```swift
open class func listDetections(after: String? = nil, limit: String? = nil, filter: String? = nil, completion: @escaping (_ data: VulnerabilitiesListDetections200Response?, _ error: Error?) -> Void)
open class func listDetections(after: String? = nil, size: String? = nil, filter: String? = nil, completion: @escaping (_ data: VulnerabilitiesListDetections200Response?, _ error: Error?) -> Void)
```

List Detections
Expand All @@ -192,11 +192,11 @@ This endpoint makes a request to retrieve a list of all vulnerability detections
import kandji_sdk

let after = "" // String | Cursor token. (optional)
let limit = "limit_example" // String | A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
let size = "size_example" // String | A hard upper <code>limit</code> is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
let filter = "filter_example" // String | Can filter on any key attribute within the response. (optional)

// List Detections
VulnerabilitiesAPI.listDetections(after: after, limit: limit, filter: filter) { (response, error) in
VulnerabilitiesAPI.listDetections(after: after, size: size, filter: filter) { (response, error) in
guard error == nil else {
print(error)
return
Expand All @@ -213,7 +213,7 @@ VulnerabilitiesAPI.listDetections(after: after, limit: limit, filter: filter) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**after** | **String** | Cursor token. | [optional]
**limit** | **String** | A hard upper &lt;code&gt;limit&lt;/code&gt; is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. | [optional]
**size** | **String** | A hard upper &lt;code&gt;limit&lt;/code&gt; is set at 300 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. | [optional]
**filter** | **String** | Can filter on any key attribute within the response. | [optional]

### Return type
Expand Down

0 comments on commit d3dc2e9

Please sign in to comment.