Method: Spaceship::ConnectAPI::Profile.create
- Defined in:
- spaceship/lib/spaceship/connect_api/models/profile.rb
.create(client: nil, name: nil, profile_type: nil, bundle_id_id: nil, certificate_ids: nil, device_ids: nil) ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 87 def self.create(client: nil, name: nil, profile_type: nil, bundle_id_id: nil, certificate_ids: nil, device_ids: nil) client ||= Spaceship::ConnectAPI resp = client.post_profiles( bundle_id_id: bundle_id_id, certificates: certificate_ids, devices: device_ids, attributes: { name: name, profileType: profile_type } ) return resp.to_models.first end |