Files
zeekay 87d088ed73 Regenerate against the current cloud document
The lock sat at 574d1f1d while the product moved on. The team surface
stopped at rooms — no messages path, no way to open one — so anything
built on this client had to reach past it with its own HTTP calls, which
is the duplication a generated client exists to prevent.
2026-09-01 02:21:56 -07:00

130 lines
5.1 KiB
Swift

//
// IamPermission.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IamPermission: Sendable, Codable, ParameterConvertible, Hashable {
public var actions: [String]?
public var adapter: String?
public var approveTime: String?
public var approver: String?
public var createdAt: Date?
/** Descriptive metadata. */
public var createdTime: String?
public var deleted: Bool?
public var description: String?
public var displayName: String?
public var domains: [String]?
public var effect: String?
public var id: String?
public var isEnabled: Bool?
/** Authorization model, targets, and decision. AuthzModel carries the v1 `model` column (the named authz model); it is not the Go identifier `Model` because that name is taken by the embedded orm.Model[Permission] mixin. The HTTP contract is unchanged — json:\"model\". */
public var model: String?
public var name: String?
/** Identity — the (owner, name) natural key. */
public var owner: String?
public var resourceType: String?
public var resources: [String]?
public var roles: [String]?
public var state: String?
/** Submission / approval workflow. */
public var submitter: String?
public var teams: [String]?
public var updatedAt: Date?
/** Subjects the grant is evaluated for. */
public var users: [String]?
public init(actions: [String]? = nil, adapter: String? = nil, approveTime: String? = nil, approver: String? = nil, createdAt: Date? = nil, createdTime: String? = nil, deleted: Bool? = nil, description: String? = nil, displayName: String? = nil, domains: [String]? = nil, effect: String? = nil, id: String? = nil, isEnabled: Bool? = nil, model: String? = nil, name: String? = nil, owner: String? = nil, resourceType: String? = nil, resources: [String]? = nil, roles: [String]? = nil, state: String? = nil, submitter: String? = nil, teams: [String]? = nil, updatedAt: Date? = nil, users: [String]? = nil) {
self.actions = actions
self.adapter = adapter
self.approveTime = approveTime
self.approver = approver
self.createdAt = createdAt
self.createdTime = createdTime
self.deleted = deleted
self.description = description
self.displayName = displayName
self.domains = domains
self.effect = effect
self.id = id
self.isEnabled = isEnabled
self.model = model
self.name = name
self.owner = owner
self.resourceType = resourceType
self.resources = resources
self.roles = roles
self.state = state
self.submitter = submitter
self.teams = teams
self.updatedAt = updatedAt
self.users = users
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case actions
case adapter
case approveTime
case approver
case createdAt
case createdTime
case deleted
case description
case displayName
case domains
case effect
case id
case isEnabled
case model
case name
case owner
case resourceType
case resources
case roles
case state
case submitter
case teams
case updatedAt
case users
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(actions, forKey: .actions)
try container.encodeIfPresent(adapter, forKey: .adapter)
try container.encodeIfPresent(approveTime, forKey: .approveTime)
try container.encodeIfPresent(approver, forKey: .approver)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(deleted, forKey: .deleted)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(domains, forKey: .domains)
try container.encodeIfPresent(effect, forKey: .effect)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(isEnabled, forKey: .isEnabled)
try container.encodeIfPresent(model, forKey: .model)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(resourceType, forKey: .resourceType)
try container.encodeIfPresent(resources, forKey: .resources)
try container.encodeIfPresent(roles, forKey: .roles)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(submitter, forKey: .submitter)
try container.encodeIfPresent(teams, forKey: .teams)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
try container.encodeIfPresent(users, forKey: .users)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension IamPermission: Identifiable {}