Module: AppStoreConnectApi::Domain::Profiles

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/profiles.rb

Instance Method Summary collapse

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.expand(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, options = {})
  get "/v1/profiles/#{profile_id}", options
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, options = {})
  get "/v1/profiles/#{profile_id}/bundleId", options
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, options = {})
  get "/v1/profiles/#{profile_id}/certificates", options
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, options = {})
  get "/v1/profiles/#{profile_id}/devices", options
end

#profiles(options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/profiles.rb', line 7

def profiles(options = {})
  get '/v1/profiles', options
end