-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathccm_model_gen.go
2256 lines (1831 loc) · 66.5 KB
/
ccm_model_gen.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
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2022 Benjamin Böhmke <[email protected]>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package jazz
// Code generated! DO NOT EDIT
import (
"context"
"reflect"
"time"
)
func init() {
ccmRegisterType(new(CCMProjectArea))
ccmRegisterType(new(CCMTeamAreaHierarchyRecord))
ccmRegisterType(new(CCMTeamArea))
ccmRegisterType(new(CCMContributor))
ccmRegisterType(new(CCMIteration))
ccmRegisterType(new(CCMDevelopmentLine))
ccmRegisterType(new(CCMAuditableLink))
ccmRegisterType(new(CCMReference))
ccmRegisterType(new(CCMReferenceType))
ccmRegisterType(new(CCMReadAccess))
ccmRegisterType(new(CCMRole))
ccmRegisterType(new(CCMRoleAssignment))
ccmRegisterType(new(CCMWorkspace))
ccmRegisterType(new(CCMProperty))
ccmRegisterType(new(CCMComponent))
ccmRegisterType(new(CCMChangeSet))
ccmRegisterType(new(CCMBuildDefinition))
ccmRegisterType(new(CCMBuildResult))
ccmRegisterType(new(CCMCompilationResult))
ccmRegisterType(new(CCMUnitTestResult))
ccmRegisterType(new(CCMUnitTestEvent))
ccmRegisterType(new(CCMBuildEngine))
ccmRegisterType(new(CCMWorkItem))
ccmRegisterType(new(CCMComment))
ccmRegisterType(new(CCMAttribute))
ccmRegisterType(new(CCMApproval))
ccmRegisterType(new(CCMApprovalDescriptor))
ccmRegisterType(new(CCMState))
ccmRegisterType(new(CCMResolution))
ccmRegisterType(new(CCMWorkItemType))
ccmRegisterType(new(CCMLiteral))
ccmRegisterType(new(CCMCategory))
ccmRegisterType(new(CCMDeliverable))
ccmRegisterType(new(CCMExtensionEntry))
ccmRegisterType(new(CCMTimeSheetEntry))
ccmRegisterType(new(CCMItem))
ccmRegisterType(new(CCMBooleanExtensionEntry))
ccmRegisterType(new(CCMIntExtensionEntry))
ccmRegisterType(new(CCMLongExtensionEntry))
ccmRegisterType(new(CCMStringExtensionEntry))
ccmRegisterType(new(CCMMediumStringExtensionEntry))
ccmRegisterType(new(CCMLargeStringExtensionEntry))
ccmRegisterType(new(CCMTimestampExtensionEntry))
ccmRegisterType(new(CCMBigDecimalExtensionEntry))
ccmRegisterType(new(CCMItemExtensionEntry))
ccmRegisterType(new(CCMMultiItemExtensionEntry))
}
// CCMProjectArea (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#projectArea_type_com_ibm_team_pr)
// This element represents a Project Area.
type CCMProjectArea struct {
CCMBaseObject
// The human-readable name of the project area (e.g. "My Project")
Name string `jazz:"name"`
// A list of members of this project
TeamMembers []*CCMContributor `jazz:"teamMembers"`
// A list of records reflecting the team area hierarchy for this project area
TeamAreaHierarchy []*CCMTeamAreaHierarchyRecord `jazz:"teamAreaHierarchy"`
// A list of development lines for this project area
DevelopmentLines []*CCMDevelopmentLine `jazz:"developmentLines"`
// The main development line for this project area
ProjectDevelopmentLine *CCMDevelopmentLine `jazz:"projectDevelopmentLine"`
// The roles defined in the project area
Roles []*CCMRole `jazz:"roles"`
// The role assignments defined in the project area
RoleAssignments []*CCMRoleAssignment `jazz:"roleAssignments"`
// All the team areas contained in the project area
AllTeamAreas []*CCMTeamArea `jazz:"allTeamAreas"`
}
// CCMProjectAreaType contains the reflection type of CCMProjectArea
var goCCMProjectAreaType = reflect.TypeOf(CCMProjectArea{})
// Spec returns the specification object for CCMProjectArea
func (o *CCMProjectArea) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "projectArea",
TypeID: "com.ibm.team.process.ProjectArea",
Type: goCCMProjectAreaType,
}
}
// Load CCMProjectArea object
func (o *CCMProjectArea) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMProjectArea object
func (o *CCMProjectArea) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.TeamMembers,
o.TeamAreaHierarchy,
o.DevelopmentLines,
o.ProjectDevelopmentLine,
o.Roles,
o.RoleAssignments,
o.AllTeamAreas,
)
}
// CCMTeamAreaHierarchyRecord (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_process_TeamAreaHie)
// This element appears only inside a Project Area, and represents a piece of
// a team area hierarchy.
type CCMTeamAreaHierarchyRecord struct {
CCMBaseObject
// The parent team area
Parent *CCMTeamArea `jazz:"parent"`
// The children team areas of the parent team area
Children []*CCMTeamArea `jazz:"children"`
}
// CCMTeamAreaHierarchyRecordType contains the reflection type of CCMTeamAreaHierarchyRecord
var goCCMTeamAreaHierarchyRecordType = reflect.TypeOf(CCMTeamAreaHierarchyRecord{})
// Spec returns the specification object for CCMTeamAreaHierarchyRecord
func (o *CCMTeamAreaHierarchyRecord) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "",
TypeID: "com.ibm.team.process.TeamAreaHierarchyRecord",
Type: goCCMTeamAreaHierarchyRecordType,
}
}
// LoadAllFields of CCMTeamAreaHierarchyRecord object
func (o *CCMTeamAreaHierarchyRecord) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Parent,
o.Children,
)
}
// CCMTeamArea (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#teamArea_type_com_ibm_team_proce)
// This element represents a Team Area.
type CCMTeamArea struct {
CCMBaseObject
// The human-readable name of the project area (e.g. "My Team")
Name string `jazz:"name"`
// A fully-qualified team area name, slash-separated, including all parent
// team areas (e.g. "/My Parent Team/My Team").
QualifiedName string `jazz:"qualifiedName"`
// A list of members of this team area
TeamMembers []*CCMContributor `jazz:"teamMembers"`
// The project area containing this team area
ProjectArea *CCMProjectArea `jazz:"projectArea"`
// The roles defined in the team area
Roles []*CCMRole `jazz:"roles"`
// The role assignments defined in the team area
RoleAssignments []*CCMRoleAssignment `jazz:"roleAssignments"`
// The parent team area
ParentTeamArea *CCMTeamArea `jazz:"parentTeamArea"`
}
// CCMTeamAreaType contains the reflection type of CCMTeamArea
var goCCMTeamAreaType = reflect.TypeOf(CCMTeamArea{})
// Spec returns the specification object for CCMTeamArea
func (o *CCMTeamArea) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "teamArea",
TypeID: "com.ibm.team.process.TeamArea",
Type: goCCMTeamAreaType,
}
}
// Load CCMTeamArea object
func (o *CCMTeamArea) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMTeamArea object
func (o *CCMTeamArea) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.TeamMembers,
o.ProjectArea,
o.Roles,
o.RoleAssignments,
o.ParentTeamArea,
)
}
// CCMContributor (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#contributor)
// This element represents a Contributor (user).
type CCMContributor struct {
CCMBaseObject
// The human-readable name of the contributor (e.g. "James Moody")
Name string `jazz:"name"`
// The email address of the contributor
EmailAddress string `jazz:"emailAddress"`
// The userId of the contributor, unique in this application (e.g. "jmoody")
UserId string `jazz:"userId"`
}
// CCMContributorType contains the reflection type of CCMContributor
var goCCMContributorType = reflect.TypeOf(CCMContributor{})
// Spec returns the specification object for CCMContributor
func (o *CCMContributor) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "contributor",
TypeID: "com.ibm.team.repository.Contributor",
Type: goCCMContributorType,
}
}
// Load CCMContributor object
func (o *CCMContributor) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMContributor object
func (o *CCMContributor) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMIteration (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#iteration_type_com_ibm_team_proc)
// This element represents a single iteration (milestone, sprint).
type CCMIteration struct {
CCMBaseObject
// The human-readable name of this iteration (e.g. "M1")
Name string `jazz:"name"`
// The identifier of this iteration (e.g. "3.0M1")
Id string `jazz:"id"`
// The start date of this iteration
StartDate *time.Time `jazz:"startDate"`
// The end date of this iteration
EndDate *time.Time `jazz:"endDate"`
// The parent iteration of this iteration, if any
Parent *CCMIteration `jazz:"parent"`
// The immediate child iterations of this iteration, if any
Children []*CCMIteration `jazz:"children"`
// The development line in which this iteration appears
DevelopmentLine *CCMDevelopmentLine `jazz:"developmentLine"`
// Whether or not this iteration is marked as having deliverables associated
// with it
HasDeliverable bool `jazz:"hasDeliverable"`
}
// CCMIterationType contains the reflection type of CCMIteration
var goCCMIterationType = reflect.TypeOf(CCMIteration{})
// Spec returns the specification object for CCMIteration
func (o *CCMIteration) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "iteration",
TypeID: "com.ibm.team.process.Iteration",
Type: goCCMIterationType,
}
}
// Load CCMIteration object
func (o *CCMIteration) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMIteration object
func (o *CCMIteration) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Parent,
o.Children,
o.DevelopmentLine,
)
}
// CCMDevelopmentLine (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#developmentLine_type_com_ibm_tea)
// This element represents a development line.
type CCMDevelopmentLine struct {
CCMBaseObject
// The human-readable name of this development line (e.g. "Maintenance
// Development")
Name string `jazz:"name"`
// The start date of this development line
StartDate *time.Time `jazz:"startDate"`
// The end date of this development line
EndDate *time.Time `jazz:"endDate"`
// The child iterations of this development line
Iterations []*CCMIteration `jazz:"iterations"`
// The project area containing this development line
ProjectArea *CCMProjectArea `jazz:"projectArea"`
// The iteration marked as current in this development line
CurrentIteration *CCMIteration `jazz:"currentIteration"`
}
// CCMDevelopmentLineType contains the reflection type of CCMDevelopmentLine
var goCCMDevelopmentLineType = reflect.TypeOf(CCMDevelopmentLine{})
// Spec returns the specification object for CCMDevelopmentLine
func (o *CCMDevelopmentLine) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "developmentLine",
TypeID: "com.ibm.team.process.DevelopmentLine",
Type: goCCMDevelopmentLineType,
}
}
// Load CCMDevelopmentLine object
func (o *CCMDevelopmentLine) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMDevelopmentLine object
func (o *CCMDevelopmentLine) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Iterations,
o.ProjectArea,
o.CurrentIteration,
)
}
// CCMAuditableLink (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#auditableLink)
// This element represents a link from one artifact to another. These links
// may be either within the same repository, or between one artifact in this
// repository and one external artifact. References (source and target) may be
// made either by uri (for any artifact) or by referencedItem (in the case of
// local artifacts).
type CCMAuditableLink struct {
CCMBaseObject
// The id of this link type (e.g. "com.ibm.team.workitem.parentChild"). This
// describes the relationship represented by this link.
Name string `jazz:"name"`
// The source of the link
SourceRef *CCMReference `jazz:"sourceRef"`
// The target of the link
TargetRef *CCMReference `jazz:"targetRef"`
}
// CCMAuditableLinkType contains the reflection type of CCMAuditableLink
var goCCMAuditableLinkType = reflect.TypeOf(CCMAuditableLink{})
// Spec returns the specification object for CCMAuditableLink
func (o *CCMAuditableLink) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "auditableLink",
TypeID: "",
Type: goCCMAuditableLinkType,
}
}
// Load CCMAuditableLink object
func (o *CCMAuditableLink) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMAuditableLink object
func (o *CCMAuditableLink) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.SourceRef,
o.TargetRef,
)
}
// CCMReference (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_links_Reference)
// This element is always contained in an auditableLink, and represents either
// the source or target reference of a link. The reference may be either by
// uri (for any artifact) or by referencedItem (in the case of local
// artifacts). Which one can be determined by the referenceType field.
type CCMReference struct {
CCMBaseObject
// A human-readable comment about the reference. In some cases the comment may
// suffice rather than fetching the content on the other end of the link. For
// example, a reference pointing to a work item may contain the id and summary
// of the work item ("12345: Summary of my work item").
Comment string `jazz:"comment"`
// This element indicates whether the reference is by uri or by itemId.
ReferenceType *CCMReferenceType `jazz:"referenceType"`
// The URI of the element referenced. This is only valid if this Reference is
// a URI reference.
Uri string `jazz:"uri"`
// The referenced item. This is only valid if this Reference is an Item
// reference.
ReferencedItem *CCMItem `jazz:"referencedItem"`
// Get the extra information associated with the reference. May be null.
ExtraInfo string `jazz:"extraInfo"`
// Internal.
ContentType string `jazz:"contentType"`
}
// CCMReferenceType contains the reflection type of CCMReference
var goCCMReferenceType = reflect.TypeOf(CCMReference{})
// Spec returns the specification object for CCMReference
func (o *CCMReference) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "",
TypeID: "com.ibm.team.links.Reference",
Type: goCCMReferenceType,
}
}
// LoadAllFields of CCMReference object
func (o *CCMReference) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.ReferenceType,
o.ReferencedItem,
)
}
// CCMReferenceType (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_links_ReferenceType)
// This element represents a reference type, indicating whether a reference is
// by URI or itemID.
type CCMReferenceType struct {
CCMBaseObject
// Either "ITEM_REFERENCE" or "URI_REFERENCE"
Literal string `jazz:"literal"`
// Either 0 (for ITEM_REFERENCE) or 2 (for URI_REFERENCE). Use literal
// instead.
Value int `jazz:"value"`
}
// CCMReferenceTypeType contains the reflection type of CCMReferenceType
var goCCMReferenceTypeType = reflect.TypeOf(CCMReferenceType{})
// Spec returns the specification object for CCMReferenceType
func (o *CCMReferenceType) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "",
TypeID: "com.ibm.team.links.ReferenceType",
Type: goCCMReferenceTypeType,
}
}
// LoadAllFields of CCMReferenceType object
func (o *CCMReferenceType) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMReadAccess (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#readAccess)
// The readAccess element represents a mapping of contributors to project
// areas that each contributor has permissions to read.
type CCMReadAccess struct {
CCMBaseObject
// The itemId of the Contributor
ContributorItemId string `jazz:"contributorItemId"`
// The itemID of the context object associated with the contributor (i.e. the
// project area)
ContributorContextId string `jazz:"contributorContextId"`
}
// CCMReadAccessType contains the reflection type of CCMReadAccess
var goCCMReadAccessType = reflect.TypeOf(CCMReadAccess{})
// Spec returns the specification object for CCMReadAccess
func (o *CCMReadAccess) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "readAccess",
TypeID: "",
Type: goCCMReadAccessType,
}
}
// Load CCMReadAccess object
func (o *CCMReadAccess) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMReadAccess object
func (o *CCMReadAccess) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMRole (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_process_Role)
type CCMRole struct {
CCMBaseObject
// The role Id
Id string `jazz:"id"`
// The role name
Name string `jazz:"name"`
// The role description
Description string `jazz:"description"`
}
// CCMRoleType contains the reflection type of CCMRole
var goCCMRoleType = reflect.TypeOf(CCMRole{})
// Spec returns the specification object for CCMRole
func (o *CCMRole) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "",
TypeID: "com.ibm.team.process.Role",
Type: goCCMRoleType,
}
}
// LoadAllFields of CCMRole object
func (o *CCMRole) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMRoleAssignment (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_process_RoleAssignm)
type CCMRoleAssignment struct {
CCMBaseObject
// The contributor with assigned roles
Contributor *CCMContributor `jazz:"contributor"`
// The roles assigned to the contributor
ContributorRoles []*CCMRole `jazz:"contributorRoles"`
}
// CCMRoleAssignmentType contains the reflection type of CCMRoleAssignment
var goCCMRoleAssignmentType = reflect.TypeOf(CCMRoleAssignment{})
// Spec returns the specification object for CCMRoleAssignment
func (o *CCMRoleAssignment) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "foundation",
ElementID: "",
TypeID: "com.ibm.team.process.RoleAssignment",
Type: goCCMRoleAssignmentType,
}
}
// LoadAllFields of CCMRoleAssignment object
func (o *CCMRoleAssignment) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Contributor,
o.ContributorRoles,
)
}
// CCMWorkspace (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#workspace_type_com_ibm_team_scm)
// This element represents an SCM Workspace or Stream
type CCMWorkspace struct {
CCMBaseObject
// The name of the workspace or stream
Name string `jazz:"name"`
// True if this is a stream, false if this is a workspace
Stream bool `jazz:"stream"`
// A description of the workspace or stream
Description string `jazz:"description"`
// Whether or not ETL data collection is configured for this stream
CollectData bool `jazz:"collectData"`
// A collection of key/value properties associated with the workspace or
// stream
Properties []*CCMProperty `jazz:"properties"`
// The owner of the workspace or stream
Contributor *CCMContributor `jazz:"contributor"`
}
// CCMWorkspaceType contains the reflection type of CCMWorkspace
var goCCMWorkspaceType = reflect.TypeOf(CCMWorkspace{})
// Spec returns the specification object for CCMWorkspace
func (o *CCMWorkspace) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "scm",
ElementID: "workspace",
TypeID: "com.ibm.team.scm.Workspace",
Type: goCCMWorkspaceType,
}
}
// Load CCMWorkspace object
func (o *CCMWorkspace) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMWorkspace object
func (o *CCMWorkspace) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Properties,
o.Contributor,
)
}
// CCMProperty (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_scm_Property)
// This element only occurs in a workspace, and represents a property of a
// Workspace or Stream
type CCMProperty struct {
CCMBaseObject
// The property key
Key string `jazz:"key"`
}
// CCMPropertyType contains the reflection type of CCMProperty
var goCCMPropertyType = reflect.TypeOf(CCMProperty{})
// Spec returns the specification object for CCMProperty
func (o *CCMProperty) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "scm",
ElementID: "",
TypeID: "com.ibm.team.scm.Property",
Type: goCCMPropertyType,
}
}
// LoadAllFields of CCMProperty object
func (o *CCMProperty) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMComponent (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#component_type_com_ibm_team_scm)
// This element represents an SCM Component
type CCMComponent struct {
CCMBaseObject
// The name of the component
Name string `jazz:"name"`
}
// CCMComponentType contains the reflection type of CCMComponent
var goCCMComponentType = reflect.TypeOf(CCMComponent{})
// Spec returns the specification object for CCMComponent
func (o *CCMComponent) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "scm",
ElementID: "component",
TypeID: "com.ibm.team.scm.Component",
Type: goCCMComponentType,
}
}
// Load CCMComponent object
func (o *CCMComponent) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMComponent object
func (o *CCMComponent) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMChangeSet (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#changeSet_type_com_ibm_team_scm)
// This element represents an SCM Change Set
type CCMChangeSet struct {
CCMBaseObject
// The comment on the change set
Comment string `jazz:"comment"`
// The owner of the change set
Owner *CCMContributor `jazz:"owner"`
}
// CCMChangeSetType contains the reflection type of CCMChangeSet
var goCCMChangeSetType = reflect.TypeOf(CCMChangeSet{})
// Spec returns the specification object for CCMChangeSet
func (o *CCMChangeSet) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "scm",
ElementID: "changeSet",
TypeID: "com.ibm.team.scm.ChangeSet",
Type: goCCMChangeSetType,
}
}
// Load CCMChangeSet object
func (o *CCMChangeSet) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMChangeSet object
func (o *CCMChangeSet) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.Owner,
)
}
// CCMBuildDefinition (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#buildDefinition_type_com_ibm_tea)
// This element represents a Build Definition.
type CCMBuildDefinition struct {
CCMBaseObject
// The id of the build definition
Id string `jazz:"id"`
// The description of the build definition
Description string `jazz:"description"`
// The project area containing the build definition
ProjectArea *CCMProjectArea `jazz:"projectArea"`
// The team area containing the build definition
TeamArea *CCMTeamArea `jazz:"teamArea"`
}
// CCMBuildDefinitionType contains the reflection type of CCMBuildDefinition
var goCCMBuildDefinitionType = reflect.TypeOf(CCMBuildDefinition{})
// Spec returns the specification object for CCMBuildDefinition
func (o *CCMBuildDefinition) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "build",
ElementID: "buildDefinition",
TypeID: "com.ibm.team.build.BuildDefinition",
Type: goCCMBuildDefinitionType,
}
}
// Load CCMBuildDefinition object
func (o *CCMBuildDefinition) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMBuildDefinition object
func (o *CCMBuildDefinition) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.ProjectArea,
o.TeamArea,
)
}
// CCMBuildResult (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#buildResult_type_com_ibm_team_bu)
// This element represents a Build Result.
type CCMBuildResult struct {
CCMBaseObject
// James: To Do
BuildStatus string `jazz:"buildStatus"`
// James: To Do
BuildState string `jazz:"buildState"`
// The label for the build
Label string `jazz:"label"`
// How long the build took, in milliseconds
TimeTaken int64 `jazz:"timeTaken"`
// Whether this was a personal build or not
PersonalBuild bool `jazz:"personalBuild"`
// The start time of the build
StartTime *time.Time `jazz:"startTime"`
// How long the build waited in the queue, in milliseconds
TimeWaiting int64 `jazz:"timeWaiting"`
// Which build definition this build was for
BuildDefinition *CCMBuildDefinition `jazz:"buildDefinition"`
// The contributor who requested the build
Creator *CCMContributor `jazz:"creator"`
// The engine the build ran on
BuildEngine *CCMBuildEngine `jazz:"buildEngine"`
// Unit test results
UnitTestResults []*CCMUnitTestResult `jazz:"unitTestResults"`
// Unit test changes from the previous build
UnitTestEvents []*CCMUnitTestEvent `jazz:"unitTestEvents"`
}
// CCMBuildResultType contains the reflection type of CCMBuildResult
var goCCMBuildResultType = reflect.TypeOf(CCMBuildResult{})
// Spec returns the specification object for CCMBuildResult
func (o *CCMBuildResult) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "build",
ElementID: "buildResult",
TypeID: "com.ibm.team.build.BuildResult",
Type: goCCMBuildResultType,
}
}
// Load CCMBuildResult object
func (o *CCMBuildResult) Load(ctx context.Context) (err error) {
o.init.Do(func() {
if o.ReportableUrl == "" {
err = o.ccm.get(ctx, o.Spec(), reflect.ValueOf(o), o.ItemId)
}
})
return
}
// LoadAllFields of CCMBuildResult object
func (o *CCMBuildResult) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
o.BuildDefinition,
o.Creator,
o.BuildEngine,
o.UnitTestResults,
o.UnitTestEvents,
)
}
// CCMCompilationResult (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_build_CompilationRe)
// This element only occurs in a buildResult. The number of errors and
// warnings for a particular component in the containing build result
type CCMCompilationResult struct {
CCMBaseObject
// The component for which the errors and warnings are being reported
Component string `jazz:"component"`
// The number of compilation errors for the component in the containing build
// result
Errors int64 `jazz:"errors"`
// The umber of compilation warnings for the component in the containing build
// result
Warnings int64 `jazz:"warnings"`
}
// CCMCompilationResultType contains the reflection type of CCMCompilationResult
var goCCMCompilationResultType = reflect.TypeOf(CCMCompilationResult{})
// Spec returns the specification object for CCMCompilationResult
func (o *CCMCompilationResult) Spec() *CCMObjectSpec {
return &CCMObjectSpec{
ResourceID: "build",
ElementID: "",
TypeID: "com.ibm.team.build.CompilationResult",
Type: goCCMCompilationResultType,
}
}
// LoadAllFields of CCMCompilationResult object
func (o *CCMCompilationResult) LoadAllFields(ctx context.Context) error {
return o.loadFields(ctx,
o.ModifiedBy,
)
}
// CCMUnitTestResult (see https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#com_ibm_team_build_UnitTestResul)
// This element only occurs in a buildResult. The number of unit tests run,
// along with number of failures and errors, for a particular component in the
// containing build result
type CCMUnitTestResult struct {
CCMBaseObject
// The component for which the tests, errors and failures are being reported
Component string `jazz:"component"`