Module: AppStoreConnectApi::Domain::Profiles
- Included in:
- AppStoreConnectApi::Domain
- Defined in:
- lib/app_store_connect_api/domain/profiles.rb
Instance Method Summary collapse
- #create_profile(attributes, relationships) ⇒ Object
- #delete_profile(profile_id) ⇒ Object
- #profile(profile_id, options = {}) ⇒ Object
- #profile_bundle_id(profile_id, options = {}) ⇒ Object
- #profile_certificates(profile_id, options = {}) ⇒ Object
- #profile_devices(profile_id, options = {}) ⇒ Object
- #profiles(options = {}) ⇒ Object
Instance Method Details
#create_profile(attributes, relationships) ⇒ Object
17 18 19 20 21 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 17 def create_profile(attributes, relationships) post '/v1/profiles', data: { attributes: attributes, relationships: Utils::RelationshipMapper.(relationships), type: 'profiles' } end |
#delete_profile(profile_id) ⇒ Object
24 25 26 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 24 def delete_profile(profile_id) delete "/v1/profiles/#{profile_id}" end |
#profile(profile_id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 12 def profile(profile_id, = {}) get "/v1/profiles/#{profile_id}", end |
#profile_bundle_id(profile_id, options = {}) ⇒ Object
29 30 31 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 29 def profile_bundle_id(profile_id, = {}) get "/v1/profiles/#{profile_id}/bundleId", end |
#profile_certificates(profile_id, options = {}) ⇒ Object
34 35 36 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 34 def profile_certificates(profile_id, = {}) get "/v1/profiles/#{profile_id}/certificates", end |
#profile_devices(profile_id, options = {}) ⇒ Object
39 40 41 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 39 def profile_devices(profile_id, = {}) get "/v1/profiles/#{profile_id}/devices", end |
#profiles(options = {}) ⇒ Object
7 8 9 |
# File 'lib/app_store_connect_api/domain/profiles.rb', line 7 def profiles( = {}) get '/v1/profiles', end |