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 Feb 6, 2025
1 parent 65370e3 commit ae5761b
Show file tree
Hide file tree
Showing 37 changed files with 999 additions and 892 deletions.

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions KandjiSDK/Classes/KandjiAPIs/APIs/BlueprintsAPI.swift

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions KandjiSDK/Classes/KandjiAPIs/APIs/CustomAppsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func createCustomApp(name: String, fileKey: String, installType: String, installEnforcement: String, showInSelfService: String, selfServiceCategoryId: String, selfServiceRecommended: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return createCustomAppWithRequestBuilder(name: name, fileKey: fileKey, installType: installType, installEnforcement: installEnforcement, showInSelfService: showInSelfService, selfServiceCategoryId: selfServiceCategoryId, selfServiceRecommended: selfServiceRecommended).execute(apiResponseQueue) { result in
open class func customAppsCreateCustomApp(name: String, fileKey: String, installType: String, installEnforcement: String, showInSelfService: String, selfServiceCategoryId: String, selfServiceRecommended: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsCreateCustomAppWithRequestBuilder(name: name, fileKey: fileKey, installType: installType, installEnforcement: installEnforcement, showInSelfService: showInSelfService, selfServiceCategoryId: selfServiceCategoryId, selfServiceRecommended: selfServiceRecommended).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand Down Expand Up @@ -61,7 +61,7 @@ extension kandji_sdkAPI {
- parameter selfServiceRecommended: (form) (Optional, default=false) Adds recommended flag to app in Self Service
- returns: RequestBuilder<AnyCodable>
*/
open class func createCustomAppWithRequestBuilder(name: String, fileKey: String, installType: String, installEnforcement: String, showInSelfService: String, selfServiceCategoryId: String, selfServiceRecommended: String) -> RequestBuilder<AnyCodable> {
open class func customAppsCreateCustomAppWithRequestBuilder(name: String, fileKey: String, installType: String, installEnforcement: String, showInSelfService: String, selfServiceCategoryId: String, selfServiceRecommended: String) -> RequestBuilder<AnyCodable> {
let localVariablePath = "/api/v1/library/custom-apps"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableFormParams: [String: Any?] = [
Expand Down Expand Up @@ -98,8 +98,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func deleteCustomApp(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return deleteCustomAppWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
open class func customAppsDeleteCustomApp(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsDeleteCustomAppWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
switch result {
case .success:
completion((), nil)
Expand All @@ -124,7 +124,7 @@ extension kandji_sdkAPI {
- parameter libraryItemId: (path)
- returns: RequestBuilder<Void>
*/
open class func deleteCustomAppWithRequestBuilder(libraryItemId: String) -> RequestBuilder<Void> {
open class func customAppsDeleteCustomAppWithRequestBuilder(libraryItemId: String) -> RequestBuilder<Void> {
var localVariablePath = "/api/v1/library/custom-apps/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down Expand Up @@ -153,8 +153,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func getCustomApp(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return getCustomAppWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
open class func customAppsGetCustomApp(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsGetCustomAppWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -179,7 +179,7 @@ extension kandji_sdkAPI {
- parameter libraryItemId: (path)
- returns: RequestBuilder<AnyCodable>
*/
open class func getCustomAppWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
open class func customAppsGetCustomAppWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
var localVariablePath = "/api/v1/library/custom-apps/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down Expand Up @@ -208,8 +208,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func listCustomApps(page: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return listCustomAppsWithRequestBuilder(page: page).execute(apiResponseQueue) { result in
open class func customAppsListCustomApps(page: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsListCustomAppsWithRequestBuilder(page: page).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -234,7 +234,7 @@ extension kandji_sdkAPI {
- parameter page: (query) Optional page number. Used when results exceed pagination threshold. A hard upper &lt;code&gt;limit&lt;/code&gt; is set at 300 device records returned per request. (optional)
- returns: RequestBuilder<AnyCodable>
*/
open class func listCustomAppsWithRequestBuilder(page: String? = nil) -> RequestBuilder<AnyCodable> {
open class func customAppsListCustomAppsWithRequestBuilder(page: String? = nil) -> RequestBuilder<AnyCodable> {
let localVariablePath = "/api/v1/library/custom-apps"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableParameters: [String: Any]? = nil
Expand Down Expand Up @@ -265,8 +265,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func updateCustomApp(libraryItemId: String, name: String, active: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return updateCustomAppWithRequestBuilder(libraryItemId: libraryItemId, name: name, active: active).execute(apiResponseQueue) { result in
open class func customAppsUpdateCustomApp(libraryItemId: String, name: String, active: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsUpdateCustomAppWithRequestBuilder(libraryItemId: libraryItemId, name: name, active: active).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -293,7 +293,7 @@ extension kandji_sdkAPI {
- parameter active: (form) (Optional, default&#x3D;true) Whether this Custom App is active and installable
- returns: RequestBuilder<AnyCodable>
*/
open class func updateCustomAppWithRequestBuilder(libraryItemId: String, name: String, active: String) -> RequestBuilder<AnyCodable> {
open class func customAppsUpdateCustomAppWithRequestBuilder(libraryItemId: String, name: String, active: String) -> RequestBuilder<AnyCodable> {
var localVariablePath = "/api/v1/library/custom-apps/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down Expand Up @@ -328,8 +328,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func uploadCustomApp(body: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return uploadCustomAppWithRequestBuilder(body: body).execute(apiResponseQueue) { result in
open class func customAppsUploadCustomApp(body: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return customAppsUploadCustomAppWithRequestBuilder(body: body).execute(apiResponseQueue) { result in
switch result {
case .success:
completion((), nil)
Expand All @@ -354,7 +354,7 @@ extension kandji_sdkAPI {
- parameter body: (body) (optional)
- returns: RequestBuilder<Void>
*/
open class func uploadCustomAppWithRequestBuilder(body: String? = nil) -> RequestBuilder<Void> {
open class func customAppsUploadCustomAppWithRequestBuilder(body: String? = nil) -> RequestBuilder<Void> {
let localVariablePath = "/api/v1/library/custom-apps/upload"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body)
Expand Down
30 changes: 15 additions & 15 deletions KandjiSDK/Classes/KandjiAPIs/APIs/CustomProfilesAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func createCustomProfile(name: String, file: URL, active: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return createCustomProfileWithRequestBuilder(name: name, file: file, active: active).execute(apiResponseQueue) { result in
open class func customProfilesCreateCustomProfile(name: String, file: URL, active: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customProfilesCreateCustomProfileWithRequestBuilder(name: name, file: file, active: active).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -53,7 +53,7 @@ extension kandji_sdkAPI {
- parameter active: (form) (Optional, default&#x3D;true) Whether this library item is active
- returns: RequestBuilder<AnyCodable>
*/
open class func createCustomProfileWithRequestBuilder(name: String, file: URL, active: String) -> RequestBuilder<AnyCodable> {
open class func customProfilesCreateCustomProfileWithRequestBuilder(name: String, file: URL, active: String) -> RequestBuilder<AnyCodable> {
let localVariablePath = "/api/v1/library/custom-profiles"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableFormParams: [String: Any?] = [
Expand Down Expand Up @@ -86,8 +86,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func deleteCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return deleteCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
open class func customProfilesDeleteCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: Void?, _ error: Error?) -> Void)) -> RequestTask {
return customProfilesDeleteCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
switch result {
case .success:
completion((), nil)
Expand All @@ -112,7 +112,7 @@ extension kandji_sdkAPI {
- parameter libraryItemId: (path)
- returns: RequestBuilder<Void>
*/
open class func deleteCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<Void> {
open class func customProfilesDeleteCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<Void> {
var localVariablePath = "/api/v1/library/custom-profiles/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down Expand Up @@ -141,8 +141,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func getCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return getCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
open class func customProfilesGetCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customProfilesGetCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -167,7 +167,7 @@ extension kandji_sdkAPI {
- parameter libraryItemId: (path)
- returns: RequestBuilder<AnyCodable>
*/
open class func getCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
open class func customProfilesGetCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
var localVariablePath = "/api/v1/library/custom-profiles/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down Expand Up @@ -196,8 +196,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func listCustomProfiles(page: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return listCustomProfilesWithRequestBuilder(page: page).execute(apiResponseQueue) { result in
open class func customProfilesListCustomProfiles(page: String? = nil, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customProfilesListCustomProfilesWithRequestBuilder(page: page).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -222,7 +222,7 @@ extension kandji_sdkAPI {
- parameter page: (query) Optional page number. Used when results exceed pagination threshold. A hard upper limit is set at 300 device records returned per request. (optional)
- returns: RequestBuilder<AnyCodable>
*/
open class func listCustomProfilesWithRequestBuilder(page: String? = nil) -> RequestBuilder<AnyCodable> {
open class func customProfilesListCustomProfilesWithRequestBuilder(page: String? = nil) -> RequestBuilder<AnyCodable> {
let localVariablePath = "/api/v1/library/custom-profiles"
let localVariableURLString = kandji_sdkAPI.basePath + localVariablePath
let localVariableParameters: [String: Any]? = nil
Expand Down Expand Up @@ -251,8 +251,8 @@ extension kandji_sdkAPI {
- parameter completion: completion handler to receive the data and the error objects
*/
@discardableResult
open class func updateCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return updateCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
open class func customProfilesUpdateCustomProfile(libraryItemId: String, apiResponseQueue: DispatchQueue = kandji_sdkAPI.apiResponseQueue, completion: @escaping ((_ data: AnyCodable?, _ error: Error?) -> Void)) -> RequestTask {
return customProfilesUpdateCustomProfileWithRequestBuilder(libraryItemId: libraryItemId).execute(apiResponseQueue) { result in
switch result {
case let .success(response):
completion(response.body, nil)
Expand All @@ -277,7 +277,7 @@ extension kandji_sdkAPI {
- parameter libraryItemId: (path)
- returns: RequestBuilder<AnyCodable>
*/
open class func updateCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
open class func customProfilesUpdateCustomProfileWithRequestBuilder(libraryItemId: String) -> RequestBuilder<AnyCodable> {
var localVariablePath = "/api/v1/library/custom-profiles/{library_item_id}"
let libraryItemIdPreEscape = "\(APIHelper.mapValueToPathItem(libraryItemId))"
let libraryItemIdPostEscape = libraryItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
Expand Down
Loading

0 comments on commit ae5761b

Please sign in to comment.