Sha256: c34686553ceb7aeea73cd036e15018023477f7c95ce72a7508c7e08dcb30aa0a
Contents?: true
Size: 1.37 KB
Versions: 108
Compression:
Stored size: 1.37 KB
Contents
require_relative '../model' module Spaceship class ConnectAPI class Certificate include Spaceship::ConnectAPI::Model attr_accessor :certificate_content attr_accessor :display_name attr_accessor :name attr_accessor :platform attr_accessor :serial_number attr_accessor :certificate_type attr_mapping({ "certificateContent" => "certificate_content", "displayName" => "display_name", "expirationDate" => "expiration_date", "name" => "name", "platform" => "platform", "serialNumber" => "serial_number", "certificateType" => "certificate_type" }) module CertificateType IOS_DEVELOPMENT = "IOS_DEVELOPMENT" IOS_DISTRIBUTION = "IOS_DISTRIBUTION" MAC_APP_DISTRIBUTION = "MAC_APP_DISTRIBUTION" MAC_INSTALLER_DISTRIBUTION = "MAC_INSTALLER_DISTRIBUTION" MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT" DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT" DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION" end def self.type return "certificates" end # # API # def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_certificates(filter: filter, includes: includes).all_pages return resps.map(&:to_models).flatten end end end end
Version data entries
108 entries across 108 versions & 2 rubygems