-
Notifications
You must be signed in to change notification settings - Fork 82
/
models.go
3224 lines (2926 loc) · 144 KB
/
models.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 (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// --------------------------------------------------------------------------------------------
// Generated file, DO NOT EDIT
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// --------------------------------------------------------------------------------------------
package git
import (
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops"
"github.com/microsoft/azure-devops-go-api/azuredevops/core"
"github.com/microsoft/azure-devops-go-api/azuredevops/policy"
"github.com/microsoft/azure-devops-go-api/azuredevops/webapi"
)
type AssociatedWorkItem struct {
AssignedTo *string `json:"assignedTo,omitempty"`
// Id of associated the work item.
Id *int `json:"id,omitempty"`
State *string `json:"state,omitempty"`
Title *string `json:"title,omitempty"`
// REST Url of the work item.
Url *string `json:"url,omitempty"`
WebUrl *string `json:"webUrl,omitempty"`
WorkItemType *string `json:"workItemType,omitempty"`
}
type AsyncGitOperationNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
type AsyncRefOperationCommitLevelEventNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
}
type AsyncRefOperationCompletedNotification struct {
OperationId *int `json:"operationId,omitempty"`
NewRefName *string `json:"newRefName,omitempty"`
}
type AsyncRefOperationConflictNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
}
type AsyncRefOperationGeneralFailureNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
type AsyncRefOperationProgressNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
Progress *float64 `json:"progress,omitempty"`
}
type AsyncRefOperationTimeoutNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
// Meta data for a file attached to an artifact.
type Attachment struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// The person that uploaded this attachment.
Author *webapi.IdentityRef `json:"author,omitempty"`
// Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function.
ContentHash *string `json:"contentHash,omitempty"`
// The time the attachment was uploaded.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// The description of the attachment.
Description *string `json:"description,omitempty"`
// The display name of the attachment. Can't be null or empty.
DisplayName *string `json:"displayName,omitempty"`
// Id of the attachment.
Id *int `json:"id,omitempty"`
// Extended properties.
Properties interface{} `json:"properties,omitempty"`
// The url to download the content of the attachment.
Url *string `json:"url,omitempty"`
}
// Real time event (SignalR) for an auto-complete update on a pull request
type AutoCompleteUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for a source/target branch update on a pull request
type BranchUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
// If true, the source branch of the pull request was updated
IsSourceUpdate *bool `json:"isSourceUpdate,omitempty"`
}
type Change struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
}
type ChangeCountDictionary struct {
}
type ChangeList struct {
AllChangesIncluded *bool `json:"allChangesIncluded,omitempty"`
ChangeCounts *map[VersionControlChangeType]int `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
Comment *string `json:"comment,omitempty"`
CommentTruncated *bool `json:"commentTruncated,omitempty"`
CreationDate *azuredevops.Time `json:"creationDate,omitempty"`
Notes *[]CheckinNote `json:"notes,omitempty"`
Owner *string `json:"owner,omitempty"`
OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
OwnerId *uuid.UUID `json:"ownerId,omitempty"`
SortDate *azuredevops.Time `json:"sortDate,omitempty"`
Version *string `json:"version,omitempty"`
}
// Criteria used in a search for change lists
type ChangeListSearchCriteria struct {
// If provided, a version descriptor to compare against base
CompareVersion *string `json:"compareVersion,omitempty"`
// If true, don't include delete history entries
ExcludeDeletes *bool `json:"excludeDeletes,omitempty"`
// Whether or not to follow renames for the given item being queried
FollowRenames *bool `json:"followRenames,omitempty"`
// If provided, only include history entries created after this date (string)
FromDate *string `json:"fromDate,omitempty"`
// If provided, a version descriptor for the earliest change list to include
FromVersion *string `json:"fromVersion,omitempty"`
// Path of item to search under. If the itemPaths memebr is used then it will take precedence over this.
ItemPath *string `json:"itemPath,omitempty"`
// List of item paths to search under. If this member is used then itemPath will be ignored.
ItemPaths *[]string `json:"itemPaths,omitempty"`
// Version of the items to search
ItemVersion *string `json:"itemVersion,omitempty"`
// Number of results to skip (used when clicking more...)
Skip *int `json:"skip,omitempty"`
// If provided, only include history entries created before this date (string)
ToDate *string `json:"toDate,omitempty"`
// If provided, the maximum number of history entries to return
Top *int `json:"top,omitempty"`
// If provided, a version descriptor for the latest change list to include
ToVersion *string `json:"toVersion,omitempty"`
// Alias or display name of user who made the changes
User *string `json:"user,omitempty"`
}
type CheckinNote struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// Represents a comment which is one of potentially many in a comment thread.
type Comment struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// The author of the comment.
Author *webapi.IdentityRef `json:"author,omitempty"`
// The comment type at the time of creation.
CommentType *CommentType `json:"commentType,omitempty"`
// The comment content.
Content *string `json:"content,omitempty"`
// The comment ID. IDs start at 1 and are unique to a pull request.
Id *int `json:"id,omitempty"`
// Whether or not this comment was soft-deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// The date the comment's content was last updated.
LastContentUpdatedDate *azuredevops.Time `json:"lastContentUpdatedDate,omitempty"`
// The date the comment was last updated.
LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
// The ID of the parent comment. This is used for replies.
ParentCommentId *int `json:"parentCommentId,omitempty"`
// The date the comment was first published.
PublishedDate *azuredevops.Time `json:"publishedDate,omitempty"`
// A list of the users who have liked this comment.
UsersLiked *[]webapi.IdentityRef `json:"usersLiked,omitempty"`
}
// Comment iteration context is used to identify which diff was being viewed when the thread was created.
type CommentIterationContext struct {
// The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request.
FirstComparingIteration *int `json:"firstComparingIteration,omitempty"`
// The iteration of the file on the right side of the diff when the thread was created.
SecondComparingIteration *int `json:"secondComparingIteration,omitempty"`
}
type CommentPosition struct {
// The line number of a thread's position. Starts at 1.
Line *int `json:"line,omitempty"`
// The character offset of a thread's position inside of a line. Starts at 0.
Offset *int `json:"offset,omitempty"`
}
// Represents a comment thread of a pull request. A thread contains meta data about the file it was left on along with one or more comments (an initial comment and the subsequent replies).
type CommentThread struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// A list of the comments.
Comments *[]Comment `json:"comments,omitempty"`
// The comment thread id.
Id *int `json:"id,omitempty"`
// Set of identities related to this thread
Identities *map[string]webapi.IdentityRef `json:"identities,omitempty"`
// Specify if the thread is deleted which happens when all comments are deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// The time this thread was last updated.
LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
// Optional properties associated with the thread as a collection of key-value pairs.
Properties interface{} `json:"properties,omitempty"`
// The time this thread was published.
PublishedDate *azuredevops.Time `json:"publishedDate,omitempty"`
// The status of the comment thread.
Status *CommentThreadStatus `json:"status,omitempty"`
// Specify thread context such as position in left/right file.
ThreadContext *CommentThreadContext `json:"threadContext,omitempty"`
}
type CommentThreadContext struct {
// File path relative to the root of the repository. It's up to the client to use any path format.
FilePath *string `json:"filePath,omitempty"`
// Position of last character of the thread's span in left file.
LeftFileEnd *CommentPosition `json:"leftFileEnd,omitempty"`
// Position of first character of the thread's span in left file.
LeftFileStart *CommentPosition `json:"leftFileStart,omitempty"`
// Position of last character of the thread's span in right file.
RightFileEnd *CommentPosition `json:"rightFileEnd,omitempty"`
// Position of first character of the thread's span in right file.
RightFileStart *CommentPosition `json:"rightFileStart,omitempty"`
}
// The status of a comment thread.
type CommentThreadStatus string
type commentThreadStatusValuesType struct {
Unknown CommentThreadStatus
Active CommentThreadStatus
Fixed CommentThreadStatus
WontFix CommentThreadStatus
Closed CommentThreadStatus
ByDesign CommentThreadStatus
Pending CommentThreadStatus
}
var CommentThreadStatusValues = commentThreadStatusValuesType{
// The thread status is unknown.
Unknown: "unknown",
// The thread status is active.
Active: "active",
// The thread status is resolved as fixed.
Fixed: "fixed",
// The thread status is resolved as won't fix.
WontFix: "wontFix",
// The thread status is closed.
Closed: "closed",
// The thread status is resolved as by design.
ByDesign: "byDesign",
// The thread status is pending.
Pending: "pending",
}
// Comment tracking criteria is used to identify which iteration context the thread has been tracked to (if any) along with some detail about the original position and filename.
type CommentTrackingCriteria struct {
// The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.
FirstComparingIteration *int `json:"firstComparingIteration,omitempty"`
// Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration.
OrigFilePath *string `json:"origFilePath,omitempty"`
// Original position of last character of the thread's span in left file.
OrigLeftFileEnd *CommentPosition `json:"origLeftFileEnd,omitempty"`
// Original position of first character of the thread's span in left file.
OrigLeftFileStart *CommentPosition `json:"origLeftFileStart,omitempty"`
// Original position of last character of the thread's span in right file.
OrigRightFileEnd *CommentPosition `json:"origRightFileEnd,omitempty"`
// Original position of first character of the thread's span in right file.
OrigRightFileStart *CommentPosition `json:"origRightFileStart,omitempty"`
// The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.
SecondComparingIteration *int `json:"secondComparingIteration,omitempty"`
}
// The type of a comment.
type CommentType string
type commentTypeValuesType struct {
Unknown CommentType
Text CommentType
CodeChange CommentType
System CommentType
}
var CommentTypeValues = commentTypeValuesType{
// The comment type is not known.
Unknown: "unknown",
// This is a regular user comment.
Text: "text",
// The comment comes as a result of a code change.
CodeChange: "codeChange",
// The comment represents a system message.
System: "system",
}
// Real time event (SignalR) for a completion errors on a pull request
type CompletionErrorsEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
// The error message associated with the completion error
ErrorMessage *string `json:"errorMessage,omitempty"`
}
// Real time event (SignalR) for a discussions update on a pull request
type DiscussionsUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type FileContentMetadata struct {
ContentType *string `json:"contentType,omitempty"`
Encoding *int `json:"encoding,omitempty"`
Extension *string `json:"extension,omitempty"`
FileName *string `json:"fileName,omitempty"`
IsBinary *bool `json:"isBinary,omitempty"`
IsImage *bool `json:"isImage,omitempty"`
VsLink *string `json:"vsLink,omitempty"`
}
// Provides properties that describe file differences
type FileDiff struct {
// The collection of line diff blocks
LineDiffBlocks *[]LineDiffBlock `json:"lineDiffBlocks,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
// Current path of item
Path *string `json:"path,omitempty"`
}
// Provides parameters that describe inputs for the file diff
type FileDiffParams struct {
// Original path of the file
OriginalPath *string `json:"originalPath,omitempty"`
// Current path of the file
Path *string `json:"path,omitempty"`
}
// Provides properties that describe inputs for the file diffs
type FileDiffsCriteria struct {
// Commit ID of the base version
BaseVersionCommit *string `json:"baseVersionCommit,omitempty"`
// List of parameters for each of the files for which we need to get the file diff
FileDiffParams *[]FileDiffParams `json:"fileDiffParams,omitempty"`
// Commit ID of the target version
TargetVersionCommit *string `json:"targetVersionCommit,omitempty"`
}
// A Git annotated tag.
type GitAnnotatedTag struct {
// The tagging Message
Message *string `json:"message,omitempty"`
// The name of the annotated tag.
Name *string `json:"name,omitempty"`
// The objectId (Sha1Id) of the tag.
ObjectId *string `json:"objectId,omitempty"`
// User info and date of tagging.
TaggedBy *GitUserDate `json:"taggedBy,omitempty"`
// Tagged git object.
TaggedObject *GitObject `json:"taggedObject,omitempty"`
Url *string `json:"url,omitempty"`
}
// Current status of the asynchronous operation.
type GitAsyncOperationStatus string
type gitAsyncOperationStatusValuesType struct {
Queued GitAsyncOperationStatus
InProgress GitAsyncOperationStatus
Completed GitAsyncOperationStatus
Failed GitAsyncOperationStatus
Abandoned GitAsyncOperationStatus
}
var GitAsyncOperationStatusValues = gitAsyncOperationStatusValuesType{
// The operation is waiting in a queue and has not yet started.
Queued: "queued",
// The operation is currently in progress.
InProgress: "inProgress",
// The operation has completed.
Completed: "completed",
// The operation has failed. Check for an error message.
Failed: "failed",
// The operation has been abandoned.
Abandoned: "abandoned",
}
type GitAsyncRefOperation struct {
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"`
Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A URL that can be used to make further requests for status about the operation
Url *string `json:"url,omitempty"`
}
// Information about the progress of a cherry pick or revert operation.
type GitAsyncRefOperationDetail struct {
// Indicates if there was a conflict generated when trying to cherry pick or revert the changes.
Conflict *bool `json:"conflict,omitempty"`
// The current commit from the list of commits that are being cherry picked or reverted.
CurrentCommitId *string `json:"currentCommitId,omitempty"`
// Detailed information about why the cherry pick or revert failed to complete.
FailureMessage *string `json:"failureMessage,omitempty"`
// A number between 0 and 1 indicating the percent complete of the operation.
Progress *float64 `json:"progress,omitempty"`
// Provides a status code that indicates the reason the cherry pick or revert failed.
Status *GitAsyncRefOperationFailureStatus `json:"status,omitempty"`
// Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation.
Timedout *bool `json:"timedout,omitempty"`
}
type GitAsyncRefOperationFailureStatus string
type gitAsyncRefOperationFailureStatusValuesType struct {
None GitAsyncRefOperationFailureStatus
InvalidRefName GitAsyncRefOperationFailureStatus
RefNameConflict GitAsyncRefOperationFailureStatus
CreateBranchPermissionRequired GitAsyncRefOperationFailureStatus
WritePermissionRequired GitAsyncRefOperationFailureStatus
TargetBranchDeleted GitAsyncRefOperationFailureStatus
GitObjectTooLarge GitAsyncRefOperationFailureStatus
OperationIndentityNotFound GitAsyncRefOperationFailureStatus
AsyncOperationNotFound GitAsyncRefOperationFailureStatus
Other GitAsyncRefOperationFailureStatus
EmptyCommitterSignature GitAsyncRefOperationFailureStatus
}
var GitAsyncRefOperationFailureStatusValues = gitAsyncRefOperationFailureStatusValuesType{
// No status
None: "none",
// Indicates that the ref update request could not be completed because the ref name presented in the request was not valid.
InvalidRefName: "invalidRefName",
// The ref update could not be completed because, in case-insensitive mode, the ref name conflicts with an existing, differently-cased ref name.
RefNameConflict: "refNameConflict",
// The ref update request could not be completed because the user lacks the permission to create a branch
CreateBranchPermissionRequired: "createBranchPermissionRequired",
// The ref update request could not be completed because the user lacks write permissions required to write this ref
WritePermissionRequired: "writePermissionRequired",
// Target branch was deleted after Git async operation started
TargetBranchDeleted: "targetBranchDeleted",
// Git object is too large to materialize into memory
GitObjectTooLarge: "gitObjectTooLarge",
// Identity who authorized the operation was not found
OperationIndentityNotFound: "operationIndentityNotFound",
// Async operation was not found
AsyncOperationNotFound: "asyncOperationNotFound",
// Unexpected failure
Other: "other",
// Initiator of async operation has signature with empty name or email
EmptyCommitterSignature: "emptyCommitterSignature",
}
// Parameters that are provided in the request body when requesting to cherry pick or revert.
type GitAsyncRefOperationParameters struct {
// Proposed target branch name for the cherry pick or revert operation.
GeneratedRefName *string `json:"generatedRefName,omitempty"`
// The target branch for the cherry pick or revert operation.
OntoRefName *string `json:"ontoRefName,omitempty"`
// The git repository for the cherry pick or revert operation.
Repository *GitRepository `json:"repository,omitempty"`
// Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit).
Source *GitAsyncRefOperationSource `json:"source,omitempty"`
}
// GitAsyncRefOperationSource specifies the pull request or list of commits to use when making a cherry pick and revert operation request. Only one should be provided.
type GitAsyncRefOperationSource struct {
// A list of commits to cherry pick or revert
CommitList *[]GitCommitRef `json:"commitList,omitempty"`
// Id of the pull request to cherry pick or revert
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type GitBaseVersionDescriptor struct {
// Version string identifier (name of tag/branch, SHA1 of commit)
Version *string `json:"version,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
VersionOptions *GitVersionOptions `json:"versionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
VersionType *GitVersionType `json:"versionType,omitempty"`
// Version string identifier (name of tag/branch, SHA1 of commit)
BaseVersion *string `json:"baseVersion,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
BaseVersionOptions *GitVersionOptions `json:"baseVersionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
BaseVersionType *GitVersionType `json:"baseVersionType,omitempty"`
}
type GitBlobRef struct {
Links interface{} `json:"_links,omitempty"`
// SHA1 hash of git object
ObjectId *string `json:"objectId,omitempty"`
// Size of blob content (in bytes)
Size *uint64 `json:"size,omitempty"`
Url *string `json:"url,omitempty"`
}
// Ahead and behind counts for a particular ref.
type GitBranchStats struct {
// Number of commits ahead.
AheadCount *int `json:"aheadCount,omitempty"`
// Number of commits behind.
BehindCount *int `json:"behindCount,omitempty"`
// Current commit.
Commit *GitCommitRef `json:"commit,omitempty"`
// True if this is the result for the base version.
IsBaseVersion *bool `json:"isBaseVersion,omitempty"`
// Name of the ref.
Name *string `json:"name,omitempty"`
}
type GitChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// ID of the change within the group of changes.
ChangeId *int `json:"changeId,omitempty"`
// New Content template to be used when pushing new changes.
NewContentTemplate *GitTemplate `json:"newContentTemplate,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
}
// This object is returned from Cherry Pick operations and provides the id and status of the operation
type GitCherryPick struct {
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"`
Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A URL that can be used to make further requests for status about the operation
Url *string `json:"url,omitempty"`
CherryPickId *int `json:"cherryPickId,omitempty"`
}
type GitCommit struct {
// A collection of related REST reference links.
Links interface{} `json:"_links,omitempty"`
// Author of the commit.
Author *GitUserDate `json:"author,omitempty"`
// Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
// An enumeration of the changes included with the commit.
Changes *[]interface{} `json:"changes,omitempty"`
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// Indicates if the comment is truncated from the full Git commit comment message.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// ID (SHA-1) of the commit.
CommitId *string `json:"commitId,omitempty"`
// Committer of the commit.
Committer *GitUserDate `json:"committer,omitempty"`
// An enumeration of the parent commit IDs for this commit.
Parents *[]string `json:"parents,omitempty"`
// The push associated with this commit.
Push *GitPushRef `json:"push,omitempty"`
// Remote URL path to the commit.
RemoteUrl *string `json:"remoteUrl,omitempty"`
// A list of status metadata from services and extensions that may associate additional information to the commit.
Statuses *[]GitStatus `json:"statuses,omitempty"`
// REST URL for this resource.
Url *string `json:"url,omitempty"`
// A list of workitems associated with this commit.
WorkItems *[]webapi.ResourceRef `json:"workItems,omitempty"`
TreeId *string `json:"treeId,omitempty"`
}
type GitCommitChanges struct {
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
}
type GitCommitDiffs struct {
AheadCount *int `json:"aheadCount,omitempty"`
AllChangesIncluded *bool `json:"allChangesIncluded,omitempty"`
BaseCommit *string `json:"baseCommit,omitempty"`
BehindCount *int `json:"behindCount,omitempty"`
ChangeCounts *map[VersionControlChangeType]int `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
CommonCommit *string `json:"commonCommit,omitempty"`
TargetCommit *string `json:"targetCommit,omitempty"`
}
// Provides properties that describe a Git commit and associated metadata.
type GitCommitRef struct {
// A collection of related REST reference links.
Links interface{} `json:"_links,omitempty"`
// Author of the commit.
Author *GitUserDate `json:"author,omitempty"`
// Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
// An enumeration of the changes included with the commit.
Changes *[]interface{} `json:"changes,omitempty"`
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// Indicates if the comment is truncated from the full Git commit comment message.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// ID (SHA-1) of the commit.
CommitId *string `json:"commitId,omitempty"`
// Committer of the commit.
Committer *GitUserDate `json:"committer,omitempty"`
// An enumeration of the parent commit IDs for this commit.
Parents *[]string `json:"parents,omitempty"`
// The push associated with this commit.
Push *GitPushRef `json:"push,omitempty"`
// Remote URL path to the commit.
RemoteUrl *string `json:"remoteUrl,omitempty"`
// A list of status metadata from services and extensions that may associate additional information to the commit.
Statuses *[]GitStatus `json:"statuses,omitempty"`
// REST URL for this resource.
Url *string `json:"url,omitempty"`
// A list of workitems associated with this commit.
WorkItems *[]webapi.ResourceRef `json:"workItems,omitempty"`
}
type GitCommitToCreate struct {
BaseRef *GitRef `json:"baseRef,omitempty"`
Comment *string `json:"comment,omitempty"`
PathActions *[]GitPathAction `json:"pathActions,omitempty"`
}
type GitConflict struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
}
// Data object for AddAdd conflict
type GitConflictAddAdd struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for RenameAdd conflict
type GitConflictAddRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetOriginalPath *string `json:"targetOriginalPath,omitempty"`
}
// Data object for EditDelete conflict
type GitConflictDeleteEdit struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for RenameDelete conflict
type GitConflictDeleteRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetNewPath *string `json:"targetNewPath,omitempty"`
}
// Data object for FileDirectory conflict
type GitConflictDirectoryFile struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceTree *GitTreeRef `json:"sourceTree,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DeleteEdit conflict
type GitConflictEditDelete struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
}
// Data object for EditEdit conflict
type GitConflictEditEdit struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DirectoryFile conflict
type GitConflictFileDirectory struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetTree *GitTreeRef `json:"targetTree,omitempty"`
}
// Data object for Rename1to2 conflict
type GitConflictRename1to2 struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionRename1to2 `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceNewPath *string `json:"sourceNewPath,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetNewPath *string `json:"targetNewPath,omitempty"`
}
// Data object for Rename2to1 conflict
type GitConflictRename2to1 struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceNewBlob *GitBlobRef `json:"sourceNewBlob,omitempty"`
SourceOriginalBlob *GitBlobRef `json:"sourceOriginalBlob,omitempty"`
SourceOriginalPath *string `json:"sourceOriginalPath,omitempty"`
TargetNewBlob *GitBlobRef `json:"targetNewBlob,omitempty"`
TargetOriginalBlob *GitBlobRef `json:"targetOriginalBlob,omitempty"`
TargetOriginalPath *string `json:"targetOriginalPath,omitempty"`
}
// Data object for AddRename conflict
type GitConflictRenameAdd struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceOriginalPath *string `json:"sourceOriginalPath,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DeleteRename conflict
type GitConflictRenameDelete struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceNewPath *string `json:"sourceNewPath,omitempty"`
}
// Data object for RenameRename conflict
type GitConflictRenameRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
OriginalPath *string `json:"originalPath,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// The type of a merge conflict.
type GitConflictType string
type gitConflictTypeValuesType struct {
None GitConflictType
AddAdd GitConflictType
AddRename GitConflictType
DeleteEdit GitConflictType
DeleteRename GitConflictType
DirectoryFile GitConflictType
DirectoryChild GitConflictType
EditDelete GitConflictType
EditEdit GitConflictType
FileDirectory GitConflictType
Rename1to2 GitConflictType
Rename2to1 GitConflictType
RenameAdd GitConflictType
RenameDelete GitConflictType
RenameRename GitConflictType
}
var GitConflictTypeValues = gitConflictTypeValuesType{
// No conflict
None: "none",
// Added on source and target; content differs
AddAdd: "addAdd",
// Added on source and rename destination on target
AddRename: "addRename",
// Deleted on source and edited on target
DeleteEdit: "deleteEdit",
// Deleted on source and renamed on target
DeleteRename: "deleteRename",
// Path is a directory on source and a file on target
DirectoryFile: "directoryFile",
// Children of directory which has DirectoryFile or FileDirectory conflict
DirectoryChild: "directoryChild",
// Edited on source and deleted on target
EditDelete: "editDelete",
// Edited on source and target; content differs
EditEdit: "editEdit",
// Path is a file on source and a directory on target
FileDirectory: "fileDirectory",
// Same file renamed on both source and target; destination paths differ
Rename1to2: "rename1to2",
// Different files renamed to same destination path on both source and target
Rename2to1: "rename2to1",
// Rename destination on source and new file on target
RenameAdd: "renameAdd",
// Renamed on source and deleted on target
RenameDelete: "renameDelete",
// Rename destination on both source and target; content differs
RenameRename: "renameRename",
}
type GitConflictUpdateResult struct {
// Conflict ID that was provided by input
ConflictId *int `json:"conflictId,omitempty"`