mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
56 lines
2.2 KiB
Swift
56 lines
2.2 KiB
Swift
//
|
|
// O11yO11yAuthDomainConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yAuthDomainConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Google is the Google provider's settings, when SSOType is google_auth. */
|
|
public var googleAuthConfig: O11yO11yGoogleConfig?
|
|
/** OIDC is the OIDC provider's settings, when SSOType is oidc. */
|
|
public var oidcConfig: O11yO11yOIDCConfig?
|
|
/** RoleMapping maps the provider's groups onto roles for new users. */
|
|
public var roleMapping: O11yO11yRoleMapping?
|
|
/** SAML is the SAML provider's settings, when SSOType is saml. */
|
|
public var samlConfig: O11yO11ySAMLConfig?
|
|
/** SSOEnabled turns enforced SSO on for the domain. */
|
|
public var ssoEnabled: Bool?
|
|
/** SSOType picks the provider — saml, google_auth or oidc. */
|
|
public var ssoType: String?
|
|
|
|
public init(googleAuthConfig: O11yO11yGoogleConfig? = nil, oidcConfig: O11yO11yOIDCConfig? = nil, roleMapping: O11yO11yRoleMapping? = nil, samlConfig: O11yO11ySAMLConfig? = nil, ssoEnabled: Bool? = nil, ssoType: String? = nil) {
|
|
self.googleAuthConfig = googleAuthConfig
|
|
self.oidcConfig = oidcConfig
|
|
self.roleMapping = roleMapping
|
|
self.samlConfig = samlConfig
|
|
self.ssoEnabled = ssoEnabled
|
|
self.ssoType = ssoType
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case googleAuthConfig
|
|
case oidcConfig
|
|
case roleMapping
|
|
case samlConfig
|
|
case ssoEnabled
|
|
case ssoType
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(googleAuthConfig, forKey: .googleAuthConfig)
|
|
try container.encodeIfPresent(oidcConfig, forKey: .oidcConfig)
|
|
try container.encodeIfPresent(roleMapping, forKey: .roleMapping)
|
|
try container.encodeIfPresent(samlConfig, forKey: .samlConfig)
|
|
try container.encodeIfPresent(ssoEnabled, forKey: .ssoEnabled)
|
|
try container.encodeIfPresent(ssoType, forKey: .ssoType)
|
|
}
|
|
}
|
|
|