Module: AppStoreConnectApi::Domain::Builds
- Included in:
- AppStoreConnectApi::Domain
- Defined in:
- lib/app_store_connect_api/domain/builds.rb
Instance Method Summary collapse
- #add_build_beta_groups(build_id, beta_group_ids) ⇒ Object
- #add_build_individual_testers(build_id, beta_tester_ids) ⇒ Object
- #build(build_id, options = {}) ⇒ Object
- #build_app(build_id, options = {}) ⇒ Object
- #build_app_encryption_declaration(build_id, options = {}) ⇒ Object
- #build_app_encryption_declaration_id(build_id) ⇒ Object
- #build_app_store_version(build_id, options = {}) ⇒ Object
- #build_beta_app_review_submission(build_id, options = {}) ⇒ Object
- #build_beta_build_localizations(build_id, options = {}) ⇒ Object
- #build_build_beta_detail(build_id, options = {}) ⇒ Object
- #build_icons(build_id, options = {}) ⇒ Object
- #build_individual_tester_ids(build_id, options = {}) ⇒ Object
- #build_individual_testers(build_id, options = {}) ⇒ Object
- #build_prerelease_version(build_id, options = {}) ⇒ Object
- #builds(options = {}) ⇒ Object
- #remove_build_beta_groups(build_id, beta_group_ids) ⇒ Object
- #remove_build_individual_testers(build_id, beta_tester_ids) ⇒ Object
- #update_build(build_id, attributes = {}, relationships = {}) ⇒ Object
- #update_build_app_encryption_declaration(build_id, app_encryption_declaration_id) ⇒ Object
Instance Method Details
#add_build_beta_groups(build_id, beta_group_ids) ⇒ Object
65 66 67 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 65 def add_build_beta_groups(build_id, beta_group_ids) post "/v1/builds/#{build_id}/relationships/betaGroups", data: Utils::RelationshipMapper.resource_keys(beta_group_ids, 'betaGroups') end |
#add_build_individual_testers(build_id, beta_tester_ids) ⇒ Object
85 86 87 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 85 def add_build_individual_testers(build_id, beta_tester_ids) post "/v1/builds/#{build_id}/relationships/individualTesters", data: Utils::RelationshipMapper.resource_keys(beta_tester_ids, 'betaTesters') end |
#build(build_id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 12 def build(build_id, = {}) get "/v1/builds/#{build_id}", end |
#build_app(build_id, options = {}) ⇒ Object
25 26 27 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 25 def build_app(build_id, = {}) get "/v1/builds/#{build_id}/app", end |
#build_app_encryption_declaration(build_id, options = {}) ⇒ Object
30 31 32 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 30 def build_app_encryption_declaration(build_id, = {}) get "/v1/builds/#{build_id}/appEncryptionDeclaration", end |
#build_app_encryption_declaration_id(build_id) ⇒ Object
35 36 37 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 35 def build_app_encryption_declaration_id(build_id) get "/v1/builds/#{build_id}/relationships/appEncryptionDeclaration" end |
#build_app_store_version(build_id, options = {}) ⇒ Object
45 46 47 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 45 def build_app_store_version(build_id, = {}) get "/v1/builds/#{build_id}/appStoreVersion", end |
#build_beta_app_review_submission(build_id, options = {}) ⇒ Object
50 51 52 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 50 def build_beta_app_review_submission(build_id, = {}) get "/v1/builds/#{build_id}/betaAppReviewSubmission", end |
#build_beta_build_localizations(build_id, options = {}) ⇒ Object
55 56 57 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 55 def build_beta_build_localizations(build_id, = {}) get "/v1/builds/#{build_id}/betaBuildLocalizations", end |
#build_build_beta_detail(build_id, options = {}) ⇒ Object
60 61 62 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 60 def build_build_beta_detail(build_id, = {}) get "/v1/builds/#{build_id}/buildBetaDetail", end |
#build_icons(build_id, options = {}) ⇒ Object
100 101 102 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 100 def build_icons(build_id, = {}) get "/v1/builds/#{build_id}/icons", end |
#build_individual_tester_ids(build_id, options = {}) ⇒ Object
80 81 82 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 80 def build_individual_tester_ids(build_id, = {}) get "/v1/builds/#{build_id}/relationships/individualTesters", end |
#build_individual_testers(build_id, options = {}) ⇒ Object
75 76 77 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 75 def build_individual_testers(build_id, = {}) get "/v1/builds/#{build_id}/individualTesters", end |
#build_prerelease_version(build_id, options = {}) ⇒ Object
95 96 97 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 95 def build_prerelease_version(build_id, = {}) get "/v1/builds/#{build_id}/preReleaseVersion", end |
#builds(options = {}) ⇒ Object
7 8 9 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 7 def builds( = {}) get '/v1/builds', end |
#remove_build_beta_groups(build_id, beta_group_ids) ⇒ Object
70 71 72 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 70 def remove_build_beta_groups(build_id, beta_group_ids) delete "/v1/builds/#{build_id}/relationships/betaGroups", data: Utils::RelationshipMapper.resource_keys(beta_group_ids, 'betaGroups') end |
#remove_build_individual_testers(build_id, beta_tester_ids) ⇒ Object
90 91 92 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 90 def remove_build_individual_testers(build_id, beta_tester_ids) delete "/v1/builds/#{build_id}/relationships/individualTesters", data: Utils::RelationshipMapper.resource_keys(beta_tester_ids, 'betaTesters') end |
#update_build(build_id, attributes = {}, relationships = {}) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 17 def update_build(build_id, attributes = {}, relationships = {}) patch "/v1/builds/#{build_id}", data: { attributes: attributes, relationships: Utils::RelationshipMapper.(relationships), id: build_id, type: 'builds' } end |
#update_build_app_encryption_declaration(build_id, app_encryption_declaration_id) ⇒ Object
40 41 42 |
# File 'lib/app_store_connect_api/domain/builds.rb', line 40 def update_build_app_encryption_declaration(build_id, app_encryption_declaration_id) patch "/v1/builds/#{build_id}/relationships/appEncryptionDeclaration", data: { id: app_encryption_declaration_id, type: 'appEncryptionDeclarations' } end |