forked from cidertool/asc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builds.go
483 lines (411 loc) · 22.9 KB
/
builds.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
/**
Copyright (C) 2020 Aaron Sky.
This file is part of asc-go, a package for working with Apple's
App Store Connect API.
asc-go is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
asc-go is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with asc-go. If not, see <http://www.gnu.org/licenses/>.
*/
package asc
import (
"context"
"fmt"
)
// BuildsService handles communication with build-related methods of the App Store Connect API
//
// https://developer.apple.com/documentation/appstoreconnectapi/builds
// https://developer.apple.com/documentation/appstoreconnectapi/build_icons
// https://developer.apple.com/documentation/appstoreconnectapi/app_encryption_declarations
type BuildsService service
// Build defines model for Build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/build
type Build struct {
Attributes *BuildAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Links ResourceLinks `json:"links"`
Relationships *BuildRelationships `json:"relationships,omitempty"`
Type string `json:"type"`
}
// BuildAttributes defines model for Build.Attributes
//
// https://developer.apple.com/documentation/appstoreconnectapi/build/attributes
type BuildAttributes struct {
ExpirationDate *DateTime `json:"expirationDate,omitempty"`
Expired *bool `json:"expired,omitempty"`
IconAssetToken *ImageAsset `json:"iconAssetToken,omitempty"`
MinOsVersion *string `json:"minOsVersion,omitempty"`
ProcessingState *string `json:"processingState,omitempty"`
UploadedDate *DateTime `json:"uploadedDate,omitempty"`
UsesNonExemptEncryption *bool `json:"usesNonExemptEncryption,omitempty"`
Version *string `json:"version,omitempty"`
}
// BuildRelationships defines model for Build.Relationships
//
// https://developer.apple.com/documentation/appstoreconnectapi/build/relationships
type BuildRelationships struct {
App *Relationship `json:"app,omitempty"`
AppEncryptionDeclaration *Relationship `json:"appEncryptionDeclaration,omitempty"`
AppStoreVersion *Relationship `json:"appStoreVersion,omitempty"`
BetaAppReviewSubmission *Relationship `json:"betaAppReviewSubmission,omitempty"`
BetaBuildLocalizations *PagedRelationship `json:"betaBuildLocalizations,omitempty"`
BuildBetaDetail *Relationship `json:"buildBetaDetail,omitempty"`
Icons *PagedRelationship `json:"icons,omitempty"`
IndividualTesters *PagedRelationship `json:"individualTesters,omitempty"`
PreReleaseVersion *Relationship `json:"preReleaseVersion,omitempty"`
}
// BuildResponse defines model for BuildResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildresponse
type BuildResponse struct {
Data Build `json:"data"`
Included []BuildResponseIncluded `json:"included,omitempty"`
Links DocumentLinks `json:"links"`
}
// BuildsResponse defines model for BuildsResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildsresponse
type BuildsResponse struct {
Data []Build `json:"data"`
Included []BuildResponseIncluded `json:"included,omitempty"`
Links PagedDocumentLinks `json:"links"`
Meta *PagingInformation `json:"meta,omitempty"`
}
// BuildResponseIncluded is a heterogenous wrapper for the possible types that can be returned
// in a BuildResponse or BuildsResponse.
type BuildResponseIncluded included
// BuildUpdateRequest defines model for BuildUpdateRequest.
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildupdaterequest/data
type buildUpdateRequest struct {
Attributes *buildUpdateRequestAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Relationships *buildUpdateRequestRelationships `json:"relationships,omitempty"`
Type string `json:"type"`
}
// BuildUpdateRequestAttributes are attributes for BuildUpdateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildupdaterequest/data/attributes
type buildUpdateRequestAttributes struct {
Expired *bool `json:"expired,omitempty"`
UsesNonExemptEncryption *bool `json:"usesNonExemptEncryption,omitempty"`
}
// buildUpdateRequestRelationships are relationships for BuildUpdateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildupdaterequest/data/relationships
type buildUpdateRequestRelationships struct {
AppEncryptionDeclaration *relationshipDeclaration `json:"appEncryptionDeclaration,omitempty"`
}
// BuildAppEncryptionDeclarationLinkageResponse defines model for BuildAppEncryptionDeclarationLinkageResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildappencryptiondeclarationlinkageresponse
type BuildAppEncryptionDeclarationLinkageResponse struct {
Data RelationshipData `json:"data"`
Links DocumentLinks `json:"links"`
}
// BuildIndividualTestersLinkagesResponse defines model for BuildIndividualTestersLinkagesResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/buildindividualtesterslinkagesresponse
type BuildIndividualTestersLinkagesResponse struct {
Data []RelationshipData `json:"data"`
Links PagedDocumentLinks `json:"links"`
Meta *PagingInformation `json:"meta,omitempty"`
}
// ListBuildsQuery are query options for ListBuilds
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_builds
type ListBuildsQuery struct {
FieldsAppEncryptionDeclarations []string `url:"fields[appEncryptionDeclarations],omitempty"`
FieldsApps []string `url:"fields[apps],omitempty"`
FieldsBetaTesters []string `url:"fields[betaTesters],omitempty"`
FieldsBuilds []string `url:"fields[builds],omitempty"`
FieldsPreReleaseVersions []string `url:"fields[preReleaseVersions],omitempty"`
FieldsBuildBetaDetails []string `url:"fields[buildBetaDetails],omitempty"`
FieldsBetaAppReviewSubmissions []string `url:"fields[betaAppReviewSubmissions],omitempty"`
FieldsBetaBuildLocalizations []string `url:"fields[betaBuildLocalizations],omitempty"`
FieldsDiagnosticSignatures []string `url:"fields[diagnosticSignatures],omitempty"`
FieldsAppStoreVersions []string `url:"fields[appStoreVersions],omitempty"`
FieldsPerfPowerMetrics []string `url:"fields[perfPowerMetrics],omitempty"`
FieldsBuildIcons []string `url:"fields[buildIcons],omitempty"`
FilterApp []string `url:"filter[app],omitempty"`
FilterExpired []string `url:"filter[expired],omitempty"`
FilterID []string `url:"filter[id],omitempty"`
FilterPreReleaseVersion []string `url:"filter[preReleaseVersion],omitempty"`
FilterProcessingState []string `url:"filter[processingState],omitempty"`
FilterVersion []string `url:"filter[version],omitempty"`
FilterUsesNonExemptEncryption []string `url:"filter[usesNonExemptEncryption],omitempty"`
FilterPreReleaseVersionVersion []string `url:"filter[preReleaseVersion.version],omitempty"`
FilterPreReleaseVersionPlatform []string `url:"filter[preReleaseVersion.platform],omitempty"`
FilterBetaGroups []string `url:"filter[betaGroups],omitempty"`
FilterBetaAppReviewSubmissionReviewState []string `url:"filter[betaAppReviewSubmission.betaReviewState],omitempty"`
FilterAppStoreVersion []string `url:"filter[appStoreVersion],omitempty"`
Include []string `url:"include,omitempty"`
Sort []string `url:"sort,omitempty"`
Limit int `url:"limit,omitempty"`
LimitIndividualTesters int `url:"limit[individualTesters],omitempty"`
LimitBetaBuildLocalizations int `url:"limit[betaBuildLocalizations],omitempty"`
LimitIcons int `url:"limit[icons],omitempty"`
Cursor string `url:"cursor,omitempty"`
}
// ListBuildsForAppQuery are query options for ListBuildsForApp
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_all_builds_of_an_app
type ListBuildsForAppQuery struct {
FieldsBuilds []string `url:"fields[builds],omitempty"`
Limit int `url:"limit,omitempty"`
Cursor string `url:"cursor,omitempty"`
}
// GetBuildQuery are query options for GetBuilds
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_build_information
type GetBuildQuery struct {
FieldsAppEncryptionDeclarations []string `url:"fields[appEncryptionDeclarations],omitempty"`
FieldsApps []string `url:"fields[apps],omitempty"`
FieldsBetaTesters []string `url:"fields[betaTesters],omitempty"`
FieldsBuilds []string `url:"fields[builds],omitempty"`
FieldsPreReleaseVersions []string `url:"fields[preReleaseVersions],omitempty"`
FieldsBuildBetaDetails []string `url:"fields[buildBetaDetails],omitempty"`
FieldsBetaAppReviewSubmissions []string `url:"fields[betaAppReviewSubmissions],omitempty"`
FieldsBetaBuildLocalizations []string `url:"fields[betaBuildLocalizations],omitempty"`
FieldsDiagnosticSignatures []string `url:"fields[diagnosticSignatures],omitempty"`
FieldsAppStoreVersions []string `url:"fields[appStoreVersions],omitempty"`
FieldsPerfPowerMetrics []string `url:"fields[perfPowerMetrics],omitempty"`
FieldsBuildIcons []string `url:"fields[buildIcons],omitempty"`
Include []string `url:"include,omitempty"`
LimitIndividualTesters int `url:"limit[individualTesters],omitempty"`
LimitBetaBuildLocalizations int `url:"limit[betaBuildLocalizations],omitempty"`
LimitIcons int `url:"limit[icons],omitempty"`
}
// GetAppForBuildQuery are query options for GetAppForBuild
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_information_of_a_build
type GetAppForBuildQuery struct {
FieldsApps []string `url:"fields[apps],omitempty"`
}
// GetAppStoreVersionForBuildQuery are query options for GetAppStoreVersionForBuild
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_store_version_information_of_a_build
type GetAppStoreVersionForBuildQuery struct {
FieldsAppStoreVersions []string `url:"fields[appStoreVersions],omitempty"`
}
// GetBuildForAppStoreVersionQuery are query options for GetBuildForAppStoreVersion
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_build_information_of_an_app_store_version
type GetBuildForAppStoreVersionQuery struct {
FieldsBuilds []string `url:"fields[builds],omitempty"`
}
// ListResourceIDsForIndividualTestersForBuildQuery are query options for ListResourceIDsForIndividualTestersForBuild
//
// https://developer.apple.com/documentation/appstoreconnectapi/get_all_resource_ids_of_individual_testers_for_a_build
type ListResourceIDsForIndividualTestersForBuildQuery struct {
Limit int `url:"limit,omitempty"`
Cursor string `url:"cursor,omitempty"`
}
// GetAppEncryptionDeclarationForBuildQuery are query options for GetAppEncryptionDeclarationForBuild
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_encryption_declaration_of_a_build
type GetAppEncryptionDeclarationForBuildQuery struct {
FieldsAppEncryptionDeclarations []string `url:"fields[appEncryptionDeclarations],omitempty"`
}
// ListBuilds finds and lists builds for all apps in App Store Connect.
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_builds
func (s *BuildsService) ListBuilds(ctx context.Context, params *ListBuildsQuery) (*BuildsResponse, *Response, error) {
res := new(BuildsResponse)
resp, err := s.client.get(ctx, "builds", params, res)
return res, resp, err
}
// ListBuildsForApp gets a list of builds associated with a specific app.
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_all_builds_of_an_app
func (s *BuildsService) ListBuildsForApp(ctx context.Context, id string, params *ListBuildsForAppQuery) (*BuildsResponse, *Response, error) {
url := fmt.Sprintf("apps/%s/builds", id)
res := new(BuildsResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetBuild gets information about a specific build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_build_information
func (s *BuildsService) GetBuild(ctx context.Context, id string, params *GetBuildQuery) (*BuildResponse, *Response, error) {
url := fmt.Sprintf("builds/%s", id)
res := new(BuildResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetAppForBuild gets the app information for a specific build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_information_of_a_build
func (s *BuildsService) GetAppForBuild(ctx context.Context, id string, params *GetAppForBuildQuery) (*AppResponse, *Response, error) {
url := fmt.Sprintf("builds/%s/app", id)
res := new(AppResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetAppStoreVersionForBuild gets the App Store version of a specific build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_store_version_information_of_a_build
func (s *BuildsService) GetAppStoreVersionForBuild(ctx context.Context, id string, params *GetAppStoreVersionForBuildQuery) (*AppStoreVersionResponse, *Response, error) {
url := fmt.Sprintf("builds/%s/appStoreVersion", id)
res := new(AppStoreVersionResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetBuildForAppStoreVersion gets the build that is attached to a specific App Store version.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_build_information_of_an_app_store_version
func (s *BuildsService) GetBuildForAppStoreVersion(ctx context.Context, id string, params *GetBuildForAppStoreVersionQuery) (*BuildResponse, *Response, error) {
url := fmt.Sprintf("appStoreVersions/%s/build", id)
res := new(BuildResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// UpdateBuild expires a build or changes its encryption exemption setting.
//
// https://developer.apple.com/documentation/appstoreconnectapi/modify_a_build
func (s *BuildsService) UpdateBuild(ctx context.Context, id string, expired *bool, usesNonExemptEncryption *bool, appEncryptionDeclarationID *string) (*BuildResponse, *Response, error) {
req := buildUpdateRequest{
ID: id,
Type: "builds",
}
if expired != nil || usesNonExemptEncryption != nil {
req.Attributes = &buildUpdateRequestAttributes{
Expired: expired,
UsesNonExemptEncryption: usesNonExemptEncryption,
}
}
if appEncryptionDeclarationID != nil {
req.Relationships = &buildUpdateRequestRelationships{
AppEncryptionDeclaration: newRelationshipDeclaration(appEncryptionDeclarationID, "appEncryptionDeclarations"),
}
}
url := fmt.Sprintf("builds/%s", id)
res := new(BuildResponse)
resp, err := s.client.post(ctx, url, newRequestBody(req), res)
return res, resp, err
}
// UpdateAppEncryptionDeclarationForBuild assigns an app encryption declaration to a build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/assign_the_app_encryption_declaration_for_a_build
func (s *BuildsService) UpdateAppEncryptionDeclarationForBuild(ctx context.Context, id string, appEncryptionDeclarationID *string) (*Response, error) {
linkage := newRelationshipDeclaration(appEncryptionDeclarationID, "builds")
url := fmt.Sprintf("builds/%s/relationships/appEncryptionDeclaration", id)
return s.client.patch(ctx, url, newRequestBody(linkage), nil)
}
// CreateAccessForBetaGroupsToBuild adds or creates a beta group to a build to enable testing.
//
// https://developer.apple.com/documentation/appstoreconnectapi/add_access_for_beta_groups_to_a_build
func (s *BuildsService) CreateAccessForBetaGroupsToBuild(ctx context.Context, id string, betaGroupIDs []string) (*Response, error) {
linkages := newPagedRelationshipDeclaration(betaGroupIDs, "betaGroups")
url := fmt.Sprintf("builds/%s/relationships/betaGroups", id)
return s.client.post(ctx, url, newRequestBody(linkages.Data), nil)
}
// RemoveAccessForBetaGroupsFromBuild removes access to a specific build for all beta testers in one or more beta groups.
//
// https://developer.apple.com/documentation/appstoreconnectapi/remove_access_for_beta_groups_to_a_build
func (s *BuildsService) RemoveAccessForBetaGroupsFromBuild(ctx context.Context, id string, betaGroupIDs []string) (*Response, error) {
linkages := newPagedRelationshipDeclaration(betaGroupIDs, "betaGroups")
url := fmt.Sprintf("builds/%s/relationships/betaGroups", id)
return s.client.delete(ctx, url, newRequestBody(linkages.Data))
}
// CreateAccessForIndividualTestersToBuild enables a beta tester who is not a part of a beta group to test a build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/assign_individual_testers_to_a_build
func (s *BuildsService) CreateAccessForIndividualTestersToBuild(ctx context.Context, id string, betaTesterIDs []string) (*Response, error) {
linkages := newPagedRelationshipDeclaration(betaTesterIDs, "betaTesters")
url := fmt.Sprintf("builds/%s/relationships/individualTesters", id)
return s.client.post(ctx, url, newRequestBody(linkages.Data), nil)
}
// RemoveAccessForIndividualTestersFromBuild removes access to test a specific build from one or more individually assigned testers.
//
// https://developer.apple.com/documentation/appstoreconnectapi/remove_individual_testers_from_a_build
func (s *BuildsService) RemoveAccessForIndividualTestersFromBuild(ctx context.Context, id string, betaTesterIDs []string) (*Response, error) {
linkages := newPagedRelationshipDeclaration(betaTesterIDs, "betaTesters")
url := fmt.Sprintf("builds/%s/relationships/individualTesters", id)
return s.client.delete(ctx, url, newRequestBody(linkages.Data))
}
// ListResourceIDsForIndividualTestersForBuild gets a list of resource IDs of individual testers associated with a build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/get_all_resource_ids_of_individual_testers_for_a_build
func (s *BuildsService) ListResourceIDsForIndividualTestersForBuild(ctx context.Context, id string, params *ListResourceIDsForIndividualTestersForBuildQuery) (*BuildIndividualTestersLinkagesResponse, *Response, error) {
url := fmt.Sprintf("builds/%s/relationships/individualTesters", id)
res := new(BuildIndividualTestersLinkagesResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetAppEncryptionDeclarationForBuild reads an app encryption declaration associated with a specific build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_app_encryption_declaration_of_a_build
func (s *BuildsService) GetAppEncryptionDeclarationForBuild(ctx context.Context, id string, params *GetAppEncryptionDeclarationForBuildQuery) (*AppEncryptionDeclarationResponse, *Response, error) {
url := fmt.Sprintf("builds/%s/appEncryptionDeclaration", id)
res := new(AppEncryptionDeclarationResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetAppEncryptionDeclarationIDForBuild gets the beta app encryption declaration resource ID associated with a build.
//
// https://developer.apple.com/documentation/appstoreconnectapi/get_the_app_encryption_declaration_id_for_a_build
func (s *BuildsService) GetAppEncryptionDeclarationIDForBuild(ctx context.Context, id string) (*BuildAppEncryptionDeclarationLinkageResponse, *Response, error) {
url := fmt.Sprintf("builds/%s/relationships/appEncryptionDeclaration", id)
res := new(BuildAppEncryptionDeclarationLinkageResponse)
resp, err := s.client.get(ctx, url, nil, res)
return res, resp, err
}
// UnmarshalJSON is a custom unmarshaller for the heterogenous data stored in BuildResponseIncluded.
func (i *BuildResponseIncluded) UnmarshalJSON(b []byte) error {
typeName, inner, err := unmarshalInclude(b)
i.Type = typeName
i.inner = inner
return err
}
// PrereleaseVersion returns the PrereleaseVersion stored within, if one is present.
func (i *BuildResponseIncluded) PrereleaseVersion() *PrereleaseVersion {
return extractIncludedPrereleaseVersion(i.inner)
}
// BetaTester returns the BetaTester stored within, if one is present.
func (i *BuildResponseIncluded) BetaTester() *BetaTester {
return extractIncludedBetaTester(i.inner)
}
// BetaBuildLocalization returns the BetaBuildLocalization stored within, if one is present.
func (i *BuildResponseIncluded) BetaBuildLocalization() *BetaBuildLocalization {
return extractIncludedBetaBuildLocalization(i.inner)
}
// AppEncryptionDeclaration returns the AppEncryptionDeclaration stored within, if one is present.
func (i *BuildResponseIncluded) AppEncryptionDeclaration() *AppEncryptionDeclaration {
return extractIncludedAppEncryptionDeclaration(i.inner)
}
// BetaAppReviewSubmission returns the BetaAppReviewSubmission stored within, if one is present.
func (i *BuildResponseIncluded) BetaAppReviewSubmission() *BetaAppReviewSubmission {
return extractIncludedBetaAppReviewSubmission(i.inner)
}
// App returns the App stored within, if one is present.
func (i *BuildResponseIncluded) App() *App {
return extractIncludedApp(i.inner)
}
// BuildBetaDetail returns the BuildBetaDetail stored within, if one is present.
func (i *BuildResponseIncluded) BuildBetaDetail() *BuildBetaDetail {
return extractIncludedBuildBetaDetail(i.inner)
}
// AppStoreVersion returns the AppStoreVersion stored within, if one is present.
func (i *BuildResponseIncluded) AppStoreVersion() *AppStoreVersion {
return extractIncludedAppStoreVersion(i.inner)
}
// BuildIcon returns the BuildIcon stored within, if one is present.
func (i *BuildResponseIncluded) BuildIcon() *BuildIcon {
return extractIncludedBuildIcon(i.inner)
}
// PerfPowerMetric returns the PerfPowerMetric stored within, if one is present.
func (i *BuildResponseIncluded) PerfPowerMetric() *PerfPowerMetric {
return extractIncludedPerfPowerMetric(i.inner)
}
// DiagnosticSignature returns the DiagnosticSignature stored within, if one is present.
func (i *BuildResponseIncluded) DiagnosticSignature() *DiagnosticSignature {
return extractIncludedDiagnosticSignature(i.inner)
}