Sha256: 94f279696a7dd69e4fa56d9f1f3ebe420604f1ffc12f861daefc97ba8b247ac8

Contents?: true

Size: 1.63 KB

Versions: 108

Compression:

Stored size: 1.63 KB

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class Profile
      include Spaceship::ConnectAPI::Model

      attr_accessor :name
      attr_accessor :platform
      attr_accessor :profile_content
      attr_accessor :uuid
      attr_accessor :created_date
      attr_accessor :profile_state
      attr_accessor :profile_type
      attr_accessor :expiration_date

      attr_mapping({
        "name" => "name",
        "platform" => "platform",
        "profileContent" => "profile_content",
        "uuid" => "uuid",
        "createdDate" => "created_date",
        "profileState" => "profile_state",
        "profileType" => "profile_type",
        "expirationDate" => "expiration_date"
      })

      module ProfileState
        ACTIVE = "ACTIVE"
        INVALID = "INVALID"
      end

      module ProfileType
        IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT"
        IOS_APP_STORE = "IOS_APP_STORE"
        IOS_APP_ADHOC = "IOS_APP_ADHOC"
        IOS_APP_INHOUSE = "IOS_APP_INHOUSE"
        MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"
        MAC_APP_STORE = "MAC_APP_STORE"
        MAC_APP_DIRECT = "MAC_APP_DIRECT"
        TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT"
        TVOS_APP_STORE = "TVOS_APP_STORE"
        TVOS_APP_ADHOC = "TVOS_APP_ADHOC"
        TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE"
      end

      def self.type
        return "profiles"
      end

      #
      # API
      #

      def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
        resps = Spaceship::ConnectAPI.get_profiles(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.129.0.beta.20190802200057 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190731200035 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190730200040 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190729200106 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190728200052 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190727200032 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190726200041 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.1 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190725200033 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.129.0.beta.20190723200012 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190722200021 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190721200024 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190720200049 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane_iac_publish-0.1.5 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.127.2 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190719200019 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190718200101 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190717200026 spaceship/lib/spaceship/connect_api/models/profile.rb
fastlane-2.128.0.beta.20190716200022 spaceship/lib/spaceship/connect_api/models/profile.rb