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

Version Path
fastlane-2.132.0.beta.20190929200020 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190928200106 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190927200017 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190926200023 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190925200108 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190924200030 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190923200017 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190922200014 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190921200021 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190920200012 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190919200100 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190918200023 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190917200011 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190916200055 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190915200038 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190914200034 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190913200058 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.132.0.beta.20190912200052 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.131.0 spaceship/lib/spaceship/connect_api/models/certificate.rb
fastlane-2.131.0.beta.20190911200010 spaceship/lib/spaceship/connect_api/models/certificate.rb