Module: AppStoreConnectApi::Domain::BetaTesters
- Included in:
- AppStoreConnectApi::Domain
- Defined in:
- lib/app_store_connect_api/domain/beta_testers.rb
Instance Method Summary collapse
- #add_beta_tester_beta_groups(beta_tester_id, beta_group_ids) ⇒ Object
- #add_beta_tester_builds(beta_tester_id, build_ids) ⇒ Object
- #beta_tester(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_app_ids(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_apps(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_beta_group_ids(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_beta_groups(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_build_ids(beta_tester_id, options = {}) ⇒ Object
- #beta_tester_builds(beta_tester_id, options = {}) ⇒ Object
- #beta_testers(options = {}) ⇒ Object
- #create_beta_tester(attributes, relationships) ⇒ Object
- #delete_beta_tester(beta_tester_id) ⇒ Object
- #remove_beta_tester_apps(beta_tester_id, app_ids) ⇒ Object
- #remove_beta_tester_beta_groups(beta_tester_id, beta_group_ids) ⇒ Object
- #remove_beta_tester_builds(beta_tester_id, build_ids) ⇒ Object
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, = {}) get "/v1/betaTesters/#{beta_tester_id}", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/relationships/apps", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/apps", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/relationships/betaGroups", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/betaGroups", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/relationships/builds", 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, = {}) get "/v1/betaTesters/#{beta_tester_id}/builds", end |
#beta_testers(options = {}) ⇒ Object
7 8 9 |
# File 'lib/app_store_connect_api/domain/beta_testers.rb', line 7 def beta_testers( = {}) get '/v1/betaTesters', 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.(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 |