Files
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

117 lines
6.5 KiB
Swift

//
// O11yOAuth2.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yOAuth2: Sendable, Codable, ParameterConvertible, Hashable {
public var tLSConfig: O11yTLSConfig?
/** Audience optionally specifies the intended audience of the request. If empty, the value of TokenURL is used as the intended audience. Only used if GrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\". */
public var audience: String?
/** Claims is a map of claims to be added to the JWT token. Only used if GrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\". */
public var claims: [String: JSONValue]?
public var clientCertificateKey: JSONValue?
public var clientCertificateKeyFile: String?
public var clientCertificateKeyId: String?
/** ClientCertificateKeyRef is the name of the secret within the secret manager to use as the client secret. */
public var clientCertificateKeyRef: String?
public var clientId: String?
public var clientSecret: JSONValue?
public var clientSecretFile: String?
/** ClientSecretRef is the name of the secret within the secret manager to use as the client secret. */
public var clientSecretRef: String?
public var endpointParams: [String: String]?
/** GrantType is the OAuth2 grant type to use. It can be one of \"client_credentials\" or \"urn:ietf:params:oauth:grant-type:jwt-bearer\" (RFC 7523). Default value is \"client_credentials\" */
public var grantType: String?
/** Iss is the OAuth client identifier used when communicating with the configured OAuth provider. Default value is client_id. Only used if GrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\". */
public var iss: String?
public var noProxy: String?
public var proxyConnectHeader: [String: [JSONValue]]?
public var proxyFromEnvironment: Bool?
public var proxyUrl: JSONValue?
public var scopes: [String]?
/** SignatureAlgorithm is the RSA algorithm used to sign JWT token. Only used if GrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\". Default value is RS256 and valid values RS256, RS384, RS512 */
public var signatureAlgorithm: String?
public var tokenUrl: String?
public init(tLSConfig: O11yTLSConfig? = nil, audience: String? = nil, claims: [String: JSONValue]? = nil, clientCertificateKey: JSONValue? = nil, clientCertificateKeyFile: String? = nil, clientCertificateKeyId: String? = nil, clientCertificateKeyRef: String? = nil, clientId: String? = nil, clientSecret: JSONValue? = nil, clientSecretFile: String? = nil, clientSecretRef: String? = nil, endpointParams: [String: String]? = nil, grantType: String? = nil, iss: String? = nil, noProxy: String? = nil, proxyConnectHeader: [String: [JSONValue]]? = nil, proxyFromEnvironment: Bool? = nil, proxyUrl: JSONValue? = nil, scopes: [String]? = nil, signatureAlgorithm: String? = nil, tokenUrl: String? = nil) {
self.tLSConfig = tLSConfig
self.audience = audience
self.claims = claims
self.clientCertificateKey = clientCertificateKey
self.clientCertificateKeyFile = clientCertificateKeyFile
self.clientCertificateKeyId = clientCertificateKeyId
self.clientCertificateKeyRef = clientCertificateKeyRef
self.clientId = clientId
self.clientSecret = clientSecret
self.clientSecretFile = clientSecretFile
self.clientSecretRef = clientSecretRef
self.endpointParams = endpointParams
self.grantType = grantType
self.iss = iss
self.noProxy = noProxy
self.proxyConnectHeader = proxyConnectHeader
self.proxyFromEnvironment = proxyFromEnvironment
self.proxyUrl = proxyUrl
self.scopes = scopes
self.signatureAlgorithm = signatureAlgorithm
self.tokenUrl = tokenUrl
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case tLSConfig = "TLSConfig"
case audience
case claims
case clientCertificateKey = "client_certificate_key"
case clientCertificateKeyFile = "client_certificate_key_file"
case clientCertificateKeyId = "client_certificate_key_id"
case clientCertificateKeyRef = "client_certificate_key_ref"
case clientId = "client_id"
case clientSecret = "client_secret"
case clientSecretFile = "client_secret_file"
case clientSecretRef = "client_secret_ref"
case endpointParams = "endpoint_params"
case grantType = "grant_type"
case iss
case noProxy = "no_proxy"
case proxyConnectHeader = "proxy_connect_header"
case proxyFromEnvironment = "proxy_from_environment"
case proxyUrl = "proxy_url"
case scopes
case signatureAlgorithm = "signature_algorithm"
case tokenUrl = "token_url"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(tLSConfig, forKey: .tLSConfig)
try container.encodeIfPresent(audience, forKey: .audience)
try container.encodeIfPresent(claims, forKey: .claims)
try container.encodeIfPresent(clientCertificateKey, forKey: .clientCertificateKey)
try container.encodeIfPresent(clientCertificateKeyFile, forKey: .clientCertificateKeyFile)
try container.encodeIfPresent(clientCertificateKeyId, forKey: .clientCertificateKeyId)
try container.encodeIfPresent(clientCertificateKeyRef, forKey: .clientCertificateKeyRef)
try container.encodeIfPresent(clientId, forKey: .clientId)
try container.encodeIfPresent(clientSecret, forKey: .clientSecret)
try container.encodeIfPresent(clientSecretFile, forKey: .clientSecretFile)
try container.encodeIfPresent(clientSecretRef, forKey: .clientSecretRef)
try container.encodeIfPresent(endpointParams, forKey: .endpointParams)
try container.encodeIfPresent(grantType, forKey: .grantType)
try container.encodeIfPresent(iss, forKey: .iss)
try container.encodeIfPresent(noProxy, forKey: .noProxy)
try container.encodeIfPresent(proxyConnectHeader, forKey: .proxyConnectHeader)
try container.encodeIfPresent(proxyFromEnvironment, forKey: .proxyFromEnvironment)
try container.encodeIfPresent(proxyUrl, forKey: .proxyUrl)
try container.encodeIfPresent(scopes, forKey: .scopes)
try container.encodeIfPresent(signatureAlgorithm, forKey: .signatureAlgorithm)
try container.encodeIfPresent(tokenUrl, forKey: .tokenUrl)
}
}