Module: AppStoreConnectApi::Domain::BetaTesters

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

Instance Method Summary collapse

Instance Method Details

#add_beta_tester_beta_groups(beta_tester_id, beta_group_ids) ⇒ Object



54
55
56
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 54

def add_beta_tester_beta_groups(beta_tester_id, beta_group_ids)
  post "/v1/betaTesters/#{beta_tester_id}/relationships/betaGroups", data: Utils::RelationshipMapper.resource_keys(beta_group_ids, 'betaGroups')
end

#add_beta_tester_builds(beta_tester_id, build_ids) ⇒ Object



74
75
76
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 74

def add_beta_tester_builds(beta_tester_id, build_ids)
  post "/v1/betaTesters/#{beta_tester_id}/relationships/builds", data: Utils::RelationshipMapper.resource_keys(build_ids, 'builds')
end

#beta_tester(beta_tester_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 12

def beta_tester(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}", options
end

#beta_tester_app_ids(beta_tester_id, options = {}) ⇒ Object



34
35
36
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 34

def beta_tester_app_ids(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/relationships/apps", options
end

#beta_tester_apps(beta_tester_id, options = {}) ⇒ Object



29
30
31
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 29

def beta_tester_apps(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/apps", options
end

#beta_tester_beta_group_ids(beta_tester_id, options = {}) ⇒ Object



49
50
51
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 49

def beta_tester_beta_group_ids(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/relationships/betaGroups", options
end

#beta_tester_beta_groups(beta_tester_id, options = {}) ⇒ Object



44
45
46
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 44

def beta_tester_beta_groups(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/betaGroups", options
end

#beta_tester_build_ids(beta_tester_id, options = {}) ⇒ Object



69
70
71
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 69

def beta_tester_build_ids(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/relationships/builds", options
end

#beta_tester_builds(beta_tester_id, options = {}) ⇒ Object



64
65
66
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 64

def beta_tester_builds(beta_tester_id, options = {})
  get "/v1/betaTesters/#{beta_tester_id}/builds", options
end

#beta_testers(options = {}) ⇒ Object



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

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

#create_beta_tester(attributes, relationships) ⇒ Object



17
18
19
20
21
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 17

def create_beta_tester(attributes, relationships)
  post '/v1/betaTesters', data: { attributes: attributes,
                                  relationships: Utils::RelationshipMapper.expand(relationships),
                                  type: 'betaTesters' }
end

#delete_beta_tester(beta_tester_id) ⇒ Object



24
25
26
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 24

def delete_beta_tester(beta_tester_id)
  delete "/v1/betaTesters/#{beta_tester_id}"
end

#remove_beta_tester_apps(beta_tester_id, app_ids) ⇒ Object



39
40
41
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 39

def remove_beta_tester_apps(beta_tester_id, app_ids)
  delete "/v1/betaTesters/#{beta_tester_id}/relationships/apps", data: Utils::RelationshipMapper.resource_keys(app_ids, 'apps')
end

#remove_beta_tester_beta_groups(beta_tester_id, beta_group_ids) ⇒ Object



59
60
61
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 59

def remove_beta_tester_beta_groups(beta_tester_id, beta_group_ids)
  delete "/v1/betaTesters/#{beta_tester_id}/relationships/betaGroups", data: Utils::RelationshipMapper.resource_keys(beta_group_ids, 'betaGroups')
end

#remove_beta_tester_builds(beta_tester_id, build_ids) ⇒ Object



79
80
81
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 79

def remove_beta_tester_builds(beta_tester_id, build_ids)
  delete "/v1/betaTesters/#{beta_tester_id}/relationships/builds", data: Utils::RelationshipMapper.resource_keys(build_ids, 'builds')
end