42 lines
1.3 KiB
Swift
42 lines
1.3 KiB
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PredictionsIdentifyRequest: AmplifyOperationRequest {
|
|
|
|
public let image: URL
|
|
public let identifyType: IdentifyAction
|
|
public let options: Options
|
|
|
|
public init(image: URL, identifyType: IdentifyAction, options: Options) {
|
|
self.image = image
|
|
self.identifyType = identifyType
|
|
self.options = options
|
|
}
|
|
|
|
}
|
|
|
|
public extension PredictionsIdentifyRequest {
|
|
struct Options {
|
|
/// The default NetworkPolicy for the operation. The default value will be `auto`.
|
|
public let defaultNetworkPolicy: DefaultNetworkPolicy
|
|
/// Extra plugin specific options, only used in special circumstances when the existing options do not provide
|
|
/// a way to utilize the underlying storage system's functionality. See plugin documentation for expected
|
|
/// key/values
|
|
let pluginOptions: Any?
|
|
|
|
public init(defaultNetworkPolicy: DefaultNetworkPolicy = .auto,
|
|
uploadToRemote: Bool = false,
|
|
pluginOptions: Any? = nil) {
|
|
self.defaultNetworkPolicy = defaultNetworkPolicy
|
|
self.pluginOptions = pluginOptions
|
|
|
|
}
|
|
}
|
|
}
|