Skip to content

Commit 4fd403d

Browse files
authored
Merge pull request microsoft#74 from microsoft/dev
merge dev to master for 1.0.0-b3
2 parents 0ae494a + 302717f commit 4fd403d

File tree

6 files changed

+93
-61
lines changed

6 files changed

+93
-61
lines changed

azuredevops/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var SessionId = uuid.New().String()
4444
var apiResourceLocationCache = make(map[string]*map[uuid.UUID]ApiResourceLocation)
4545
var apiResourceLocationCacheLock = sync.RWMutex{}
4646

47-
var version = "5.1.0-b1" // todo: remove hardcoded version
47+
var version = "1.1.0-b3" // todo: remove hardcoded version
4848
var versionSuffix = ""
4949

5050
// Base user agent string. The UserAgent set on the connection will be appended to this.

azuredevops/profile/models.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ var AvatarSizeValues = avatarSizeValuesType{
5555

5656
// A profile attribute which always has a value for each profile.
5757
type CoreProfileAttribute struct {
58+
// The descriptor of the attribute.
59+
Descriptor *AttributeDescriptor `json:"descriptor,omitempty"`
60+
// The revision number of the attribute.
61+
Revision *int `json:"revision,omitempty"`
62+
// The time the attribute was last changed.
63+
TimeStamp *azuredevops.Time `json:"timeStamp,omitempty"`
64+
// The value of the attribute.
65+
Value interface{} `json:"value,omitempty"`
5866
}
5967

6068
type CreateProfileContext struct {
@@ -94,6 +102,14 @@ type Profile struct {
94102

95103
// A named object associated with a profile.
96104
type ProfileAttribute struct {
105+
// The descriptor of the attribute.
106+
Descriptor *AttributeDescriptor `json:"descriptor,omitempty"`
107+
// The revision number of the attribute.
108+
Revision *int `json:"revision,omitempty"`
109+
// The time the attribute was last changed.
110+
TimeStamp *azuredevops.Time `json:"timeStamp,omitempty"`
111+
// The value of the attribute.
112+
Value interface{} `json:"value,omitempty"`
97113
}
98114

99115
type ProfileAttributeBase struct {

azuredevops/release/models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,11 +2980,11 @@ type VariableGroup struct {
29802980
// Gets or sets name.
29812981
Name *string `json:"name,omitempty"`
29822982
// Gets or sets provider data.
2983-
ProviderData *VariableGroupProviderData `json:"providerData,omitempty"`
2983+
ProviderData interface{} `json:"providerData,omitempty"`
29842984
// Gets or sets type.
29852985
Type *string `json:"type,omitempty"`
29862986
// Gets and sets the dictionary of variables.
2987-
Variables *map[string]VariableValue `json:"variables,omitempty"`
2987+
Variables *map[string]interface{} `json:"variables,omitempty"`
29882988
}
29892989

29902990
// [Flags]

azuredevops/task/models.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -311,33 +311,33 @@ type TimelineAttempt struct {
311311
}
312312

313313
type TimelineRecord struct {
314-
Attempt *int `json:"attempt,omitempty"`
315-
ChangeId *int `json:"changeId,omitempty"`
316-
CurrentOperation *string `json:"currentOperation,omitempty"`
317-
Details *TimelineReference `json:"details,omitempty"`
318-
ErrorCount *int `json:"errorCount,omitempty"`
319-
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
320-
Id *uuid.UUID `json:"id,omitempty"`
321-
Identifier *string `json:"identifier,omitempty"`
322-
Issues *[]Issue `json:"issues,omitempty"`
323-
LastModified *azuredevops.Time `json:"lastModified,omitempty"`
324-
Location *string `json:"location,omitempty"`
325-
Log *TaskLogReference `json:"log,omitempty"`
326-
Name *string `json:"name,omitempty"`
327-
Order *int `json:"order,omitempty"`
328-
ParentId *uuid.UUID `json:"parentId,omitempty"`
329-
PercentComplete *int `json:"percentComplete,omitempty"`
330-
PreviousAttempts *[]TimelineAttempt `json:"previousAttempts,omitempty"`
331-
RefName *string `json:"refName,omitempty"`
332-
Result *TaskResult `json:"result,omitempty"`
333-
ResultCode *string `json:"resultCode,omitempty"`
334-
StartTime *azuredevops.Time `json:"startTime,omitempty"`
335-
State *TimelineRecordState `json:"state,omitempty"`
336-
Task *TaskReference `json:"task,omitempty"`
337-
Type *string `json:"type,omitempty"`
338-
Variables *map[string]VariableValue `json:"variables,omitempty"`
339-
WarningCount *int `json:"warningCount,omitempty"`
340-
WorkerName *string `json:"workerName,omitempty"`
314+
Attempt *int `json:"attempt,omitempty"`
315+
ChangeId *int `json:"changeId,omitempty"`
316+
CurrentOperation *string `json:"currentOperation,omitempty"`
317+
Details *TimelineReference `json:"details,omitempty"`
318+
ErrorCount *int `json:"errorCount,omitempty"`
319+
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
320+
Id *uuid.UUID `json:"id,omitempty"`
321+
Identifier *string `json:"identifier,omitempty"`
322+
Issues *[]Issue `json:"issues,omitempty"`
323+
LastModified *azuredevops.Time `json:"lastModified,omitempty"`
324+
Location *string `json:"location,omitempty"`
325+
Log *TaskLogReference `json:"log,omitempty"`
326+
Name *string `json:"name,omitempty"`
327+
Order *int `json:"order,omitempty"`
328+
ParentId *uuid.UUID `json:"parentId,omitempty"`
329+
PercentComplete *int `json:"percentComplete,omitempty"`
330+
PreviousAttempts *[]TimelineAttempt `json:"previousAttempts,omitempty"`
331+
RefName *string `json:"refName,omitempty"`
332+
Result *TaskResult `json:"result,omitempty"`
333+
ResultCode *string `json:"resultCode,omitempty"`
334+
StartTime *azuredevops.Time `json:"startTime,omitempty"`
335+
State *TimelineRecordState `json:"state,omitempty"`
336+
Task *TaskReference `json:"task,omitempty"`
337+
Type *string `json:"type,omitempty"`
338+
Variables *map[string]interface{} `json:"variables,omitempty"`
339+
WarningCount *int `json:"warningCount,omitempty"`
340+
WorkerName *string `json:"workerName,omitempty"`
341341
}
342342

343343
type TimelineRecordFeedLinesWrapper struct {

azuredevops/taskagent/models.go

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,33 +2465,33 @@ type TimelineAttempt struct {
24652465
}
24662466

24672467
type TimelineRecord struct {
2468-
Attempt *int `json:"attempt,omitempty"`
2469-
ChangeId *int `json:"changeId,omitempty"`
2470-
CurrentOperation *string `json:"currentOperation,omitempty"`
2471-
Details *TimelineReference `json:"details,omitempty"`
2472-
ErrorCount *int `json:"errorCount,omitempty"`
2473-
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
2474-
Id *uuid.UUID `json:"id,omitempty"`
2475-
Identifier *string `json:"identifier,omitempty"`
2476-
Issues *[]Issue `json:"issues,omitempty"`
2477-
LastModified *azuredevops.Time `json:"lastModified,omitempty"`
2478-
Location *string `json:"location,omitempty"`
2479-
Log *TaskLogReference `json:"log,omitempty"`
2480-
Name *string `json:"name,omitempty"`
2481-
Order *int `json:"order,omitempty"`
2482-
ParentId *uuid.UUID `json:"parentId,omitempty"`
2483-
PercentComplete *int `json:"percentComplete,omitempty"`
2484-
PreviousAttempts *[]TimelineAttempt `json:"previousAttempts,omitempty"`
2485-
RefName *string `json:"refName,omitempty"`
2486-
Result *TaskResult `json:"result,omitempty"`
2487-
ResultCode *string `json:"resultCode,omitempty"`
2488-
StartTime *azuredevops.Time `json:"startTime,omitempty"`
2489-
State *TimelineRecordState `json:"state,omitempty"`
2490-
Task *TaskReference `json:"task,omitempty"`
2491-
Type *string `json:"type,omitempty"`
2492-
Variables *map[string]VariableValue `json:"variables,omitempty"`
2493-
WarningCount *int `json:"warningCount,omitempty"`
2494-
WorkerName *string `json:"workerName,omitempty"`
2468+
Attempt *int `json:"attempt,omitempty"`
2469+
ChangeId *int `json:"changeId,omitempty"`
2470+
CurrentOperation *string `json:"currentOperation,omitempty"`
2471+
Details *TimelineReference `json:"details,omitempty"`
2472+
ErrorCount *int `json:"errorCount,omitempty"`
2473+
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
2474+
Id *uuid.UUID `json:"id,omitempty"`
2475+
Identifier *string `json:"identifier,omitempty"`
2476+
Issues *[]Issue `json:"issues,omitempty"`
2477+
LastModified *azuredevops.Time `json:"lastModified,omitempty"`
2478+
Location *string `json:"location,omitempty"`
2479+
Log *TaskLogReference `json:"log,omitempty"`
2480+
Name *string `json:"name,omitempty"`
2481+
Order *int `json:"order,omitempty"`
2482+
ParentId *uuid.UUID `json:"parentId,omitempty"`
2483+
PercentComplete *int `json:"percentComplete,omitempty"`
2484+
PreviousAttempts *[]TimelineAttempt `json:"previousAttempts,omitempty"`
2485+
RefName *string `json:"refName,omitempty"`
2486+
Result *TaskResult `json:"result,omitempty"`
2487+
ResultCode *string `json:"resultCode,omitempty"`
2488+
StartTime *azuredevops.Time `json:"startTime,omitempty"`
2489+
State *TimelineRecordState `json:"state,omitempty"`
2490+
Task *TaskReference `json:"task,omitempty"`
2491+
Type *string `json:"type,omitempty"`
2492+
Variables *map[string]interface{} `json:"variables,omitempty"`
2493+
WarningCount *int `json:"warningCount,omitempty"`
2494+
WorkerName *string `json:"workerName,omitempty"`
24952495
}
24962496

24972497
type TimelineRecordFeedLinesWrapper struct {
@@ -2550,11 +2550,11 @@ type VariableGroup struct {
25502550
// Gets or sets name of the variable group.
25512551
Name *string `json:"name,omitempty"`
25522552
// Gets or sets provider data.
2553-
ProviderData *VariableGroupProviderData `json:"providerData,omitempty"`
2553+
ProviderData interface{} `json:"providerData,omitempty"`
25542554
// Gets or sets type of the variable group.
25552555
Type *string `json:"type,omitempty"`
25562556
// Gets or sets variables contained in the variable group.
2557-
Variables *map[string]VariableValue `json:"variables,omitempty"`
2557+
Variables *map[string]interface{} `json:"variables,omitempty"`
25582558
}
25592559

25602560
// [Flags]
@@ -2578,11 +2578,11 @@ type VariableGroupParameters struct {
25782578
// Sets name of the variable group.
25792579
Name *string `json:"name,omitempty"`
25802580
// Sets provider data.
2581-
ProviderData *VariableGroupProviderData `json:"providerData,omitempty"`
2581+
ProviderData interface{} `json:"providerData,omitempty"`
25822582
// Sets type of the variable group.
25832583
Type *string `json:"type,omitempty"`
25842584
// Sets variables contained in the variable group.
2585-
Variables *map[string]VariableValue `json:"variables,omitempty"`
2585+
Variables *map[string]interface{} `json:"variables,omitempty"`
25862586
}
25872587

25882588
// Defines provider data of the variable group.

azuredevops/workitemtracking/models.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,25 @@ var ReportingRevisionsExpandValues = reportingRevisionsExpandValuesType{
740740
}
741741

742742
type ReportingWorkItemLinksBatch struct {
743+
// ContinuationToken acts as a waterMark. Used while querying large results.
744+
ContinuationToken *string `json:"continuationToken,omitempty"`
745+
// Returns 'true' if it's last batch, 'false' otherwise.
746+
IsLastBatch *bool `json:"isLastBatch,omitempty"`
747+
// The next link for the work item.
748+
NextLink *string `json:"nextLink,omitempty"`
749+
// Values such as rel, sourceId, TargetId, ChangedDate, isActive.
750+
Values *[]interface{} `json:"values,omitempty"`
743751
}
744752

745753
type ReportingWorkItemRevisionsBatch struct {
754+
// ContinuationToken acts as a waterMark. Used while querying large results.
755+
ContinuationToken *string `json:"continuationToken,omitempty"`
756+
// Returns 'true' if it's last batch, 'false' otherwise.
757+
IsLastBatch *bool `json:"isLastBatch,omitempty"`
758+
// The next link for the work item.
759+
NextLink *string `json:"nextLink,omitempty"`
760+
// Values such as rel, sourceId, TargetId, ChangedDate, isActive.
761+
Values *[]interface{} `json:"values,omitempty"`
746762
}
747763

748764
// The class represents the reporting work item revision filer.

0 commit comments

Comments
 (0)