Files
swift-sdk/Sources/Hanzo/Models/O11yO11yGoogleConfig.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

71 lines
3.3 KiB
Swift

//
// O11yO11yGoogleConfig.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yGoogleConfig: Sendable, Codable, ParameterConvertible, Hashable {
/** AllowedGroups, when set, admits only members of these groups. */
public var allowedGroups: [String]?
/** ClientID is the OAuth application's id. */
public var clientId: String?
/** ClientSecret is the OAuth application's secret. */
public var clientSecret: String?
/** DomainToAdminEmail maps each Workspace domain to the admin the service account impersonates; \"*\" is the fallback. */
public var domainToAdminEmail: [String: String]?
/** FetchGroups reads the user's Workspace groups for role mapping. */
public var fetchGroups: Bool?
/** FetchTransitiveGroupMembership also reads groups held through other groups. */
public var fetchTransitiveGroupMembership: Bool?
/** InsecureSkipEmailVerified admits addresses Google has not verified. */
public var insecureSkipEmailVerified: Bool?
/** RedirectURI is the callback the flow returns to. */
public var redirectURI: String?
/** ServiceAccountJSON is the service-account credential used to read groups, when FetchGroups is on. */
public var serviceAccountJson: String?
public init(allowedGroups: [String]? = nil, clientId: String? = nil, clientSecret: String? = nil, domainToAdminEmail: [String: String]? = nil, fetchGroups: Bool? = nil, fetchTransitiveGroupMembership: Bool? = nil, insecureSkipEmailVerified: Bool? = nil, redirectURI: String? = nil, serviceAccountJson: String? = nil) {
self.allowedGroups = allowedGroups
self.clientId = clientId
self.clientSecret = clientSecret
self.domainToAdminEmail = domainToAdminEmail
self.fetchGroups = fetchGroups
self.fetchTransitiveGroupMembership = fetchTransitiveGroupMembership
self.insecureSkipEmailVerified = insecureSkipEmailVerified
self.redirectURI = redirectURI
self.serviceAccountJson = serviceAccountJson
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case allowedGroups
case clientId
case clientSecret
case domainToAdminEmail
case fetchGroups
case fetchTransitiveGroupMembership
case insecureSkipEmailVerified
case redirectURI
case serviceAccountJson
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(allowedGroups, forKey: .allowedGroups)
try container.encodeIfPresent(clientId, forKey: .clientId)
try container.encodeIfPresent(clientSecret, forKey: .clientSecret)
try container.encodeIfPresent(domainToAdminEmail, forKey: .domainToAdminEmail)
try container.encodeIfPresent(fetchGroups, forKey: .fetchGroups)
try container.encodeIfPresent(fetchTransitiveGroupMembership, forKey: .fetchTransitiveGroupMembership)
try container.encodeIfPresent(insecureSkipEmailVerified, forKey: .insecureSkipEmailVerified)
try container.encodeIfPresent(redirectURI, forKey: .redirectURI)
try container.encodeIfPresent(serviceAccountJson, forKey: .serviceAccountJson)
}
}