Skip to content

Commit

Permalink
regen after updating tool for time query parameter fix (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedchamb authored Aug 23, 2020
1 parent bd8888f commit 09c8cad
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions azuredevops/build/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2104,10 +2104,10 @@ func (client *ClientImpl) GetDefinitions(ctx context.Context, args GetDefinition
queryParams.Add("path", *args.Path)
}
if args.BuiltAfter != nil {
queryParams.Add("builtAfter", (*args.BuiltAfter).String())
queryParams.Add("builtAfter", (*args.BuiltAfter).AsQueryParameter())
}
if args.NotBuiltAfter != nil {
queryParams.Add("notBuiltAfter", (*args.NotBuiltAfter).String())
queryParams.Add("notBuiltAfter", (*args.NotBuiltAfter).AsQueryParameter())
}
if args.IncludeAllProperties != nil {
queryParams.Add("includeAllProperties", strconv.FormatBool(*args.IncludeAllProperties))
Expand Down
16 changes: 8 additions & 8 deletions azuredevops/gallery/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ func (client *ClientImpl) GetExtensionDailyStats(ctx context.Context, args GetEx
queryParams.Add("aggregate", string(*args.Aggregate))
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("ae06047e-51c5-4fb4-ab65-7be488544416")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down Expand Up @@ -1613,7 +1613,7 @@ func (client *ClientImpl) GetExtensionEvents(ctx context.Context, args GetExtens
queryParams.Add("count", strconv.Itoa(*args.Count))
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
if args.Include != nil {
queryParams.Add("include", *args.Include)
Expand Down Expand Up @@ -1668,7 +1668,7 @@ func (client *ClientImpl) GetExtensionReports(ctx context.Context, args GetExten
queryParams.Add("count", strconv.Itoa(*args.Count))
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("79e0c74f-157f-437e-845f-74fbb4121d4c")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down Expand Up @@ -1857,7 +1857,7 @@ func (client *ClientImpl) GetQuestions(ctx context.Context, args GetQuestionsArg
queryParams.Add("page", strconv.Itoa(*args.Page))
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("c010d03d-812c-4ade-ae07-c1862475eda5")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down Expand Up @@ -1904,10 +1904,10 @@ func (client *ClientImpl) GetReviews(ctx context.Context, args GetReviewsArgs) (
queryParams.Add("filterOptions", string(*args.FilterOptions))
}
if args.BeforeDate != nil {
queryParams.Add("beforeDate", (*args.BeforeDate).String())
queryParams.Add("beforeDate", (*args.BeforeDate).AsQueryParameter())
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("5b3f819f-f247-42ad-8c00-dd9ab9ab246d")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down Expand Up @@ -1950,10 +1950,10 @@ func (client *ClientImpl) GetReviewsSummary(ctx context.Context, args GetReviews

queryParams := url.Values{}
if args.BeforeDate != nil {
queryParams.Add("beforeDate", (*args.BeforeDate).String())
queryParams.Add("beforeDate", (*args.BeforeDate).AsQueryParameter())
}
if args.AfterDate != nil {
queryParams.Add("afterDate", (*args.AfterDate).String())
queryParams.Add("afterDate", (*args.AfterDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("b7b44e21-209e-48f0-ae78-04727fc37d77")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down
4 changes: 2 additions & 2 deletions azuredevops/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4435,10 +4435,10 @@ func (client *ClientImpl) GetPushes(ctx context.Context, args GetPushesArgs) (*[
}
if args.SearchCriteria != nil {
if args.SearchCriteria.FromDate != nil {
queryParams.Add("searchCriteria.fromDate", (*args.SearchCriteria.FromDate).String())
queryParams.Add("searchCriteria.fromDate", (*args.SearchCriteria.FromDate).AsQueryParameter())
}
if args.SearchCriteria.ToDate != nil {
queryParams.Add("searchCriteria.toDate", (*args.SearchCriteria.ToDate).String())
queryParams.Add("searchCriteria.toDate", (*args.SearchCriteria.ToDate).AsQueryParameter())
}
if args.SearchCriteria.PusherId != nil {
queryParams.Add("searchCriteria.pusherId", (*args.SearchCriteria.PusherId).String())
Expand Down
6 changes: 3 additions & 3 deletions azuredevops/projectanalysis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (client *ClientImpl) GetGitRepositoriesActivityMetrics(ctx context.Context,
if args.FromDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "fromDate"}
}
queryParams.Add("fromDate", (*args.FromDate).String())
queryParams.Add("fromDate", (*args.FromDate).AsQueryParameter())
if args.AggregationType == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "aggregationType"}
}
Expand Down Expand Up @@ -106,7 +106,7 @@ func (client *ClientImpl) GetProjectActivityMetrics(ctx context.Context, args Ge
if args.FromDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "fromDate"}
}
queryParams.Add("fromDate", (*args.FromDate).String())
queryParams.Add("fromDate", (*args.FromDate).AsQueryParameter())
if args.AggregationType == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "aggregationType"}
}
Expand Down Expand Up @@ -173,7 +173,7 @@ func (client *ClientImpl) GetRepositoryActivityMetrics(ctx context.Context, args
if args.FromDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "fromDate"}
}
queryParams.Add("fromDate", (*args.FromDate).String())
queryParams.Add("fromDate", (*args.FromDate).AsQueryParameter())
if args.AggregationType == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "aggregationType"}
}
Expand Down
2 changes: 1 addition & 1 deletion azuredevops/taskagent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ func (client *ClientImpl) GetTaskGroups(ctx context.Context, args GetTaskGroupsA
queryParams.Add("$top", strconv.Itoa(*args.Top))
}
if args.ContinuationToken != nil {
queryParams.Add("continuationToken", (*args.ContinuationToken).String())
queryParams.Add("continuationToken", (*args.ContinuationToken).AsQueryParameter())
}
if args.QueryOrder != nil {
queryParams.Add("queryOrder", string(*args.QueryOrder))
Expand Down
4 changes: 2 additions & 2 deletions azuredevops/test/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1719,11 +1719,11 @@ func (client *ClientImpl) QueryTestRuns(ctx context.Context, args QueryTestRunsA
if args.MinLastUpdatedDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "minLastUpdatedDate"}
}
queryParams.Add("minLastUpdatedDate", (*args.MinLastUpdatedDate).String())
queryParams.Add("minLastUpdatedDate", (*args.MinLastUpdatedDate).AsQueryParameter())
if args.MaxLastUpdatedDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "maxLastUpdatedDate"}
}
queryParams.Add("maxLastUpdatedDate", (*args.MaxLastUpdatedDate).String())
queryParams.Add("maxLastUpdatedDate", (*args.MaxLastUpdatedDate).AsQueryParameter())
if args.State != nil {
queryParams.Add("state", string(*args.State))
}
Expand Down
10 changes: 5 additions & 5 deletions azuredevops/testresults/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2486,10 +2486,10 @@ func (client *ClientImpl) QueryTestResultsReportForRelease(ctx context.Context,
queryParams.Add("releaseToCompare.environmentDefinitionName", *args.ReleaseToCompare.EnvironmentDefinitionName)
}
if args.ReleaseToCompare.CreationDate != nil {
queryParams.Add("releaseToCompare.creationDate", (*args.ReleaseToCompare.CreationDate).String())
queryParams.Add("releaseToCompare.creationDate", (*args.ReleaseToCompare.CreationDate).AsQueryParameter())
}
if args.ReleaseToCompare.EnvironmentCreationDate != nil {
queryParams.Add("releaseToCompare.environmentCreationDate", (*args.ReleaseToCompare.EnvironmentCreationDate).String())
queryParams.Add("releaseToCompare.environmentCreationDate", (*args.ReleaseToCompare.EnvironmentCreationDate).AsQueryParameter())
}
if args.ReleaseToCompare.Attempt != nil {
queryParams.Add("releaseToCompare.attempt", strconv.Itoa(*args.ReleaseToCompare.Attempt))
Expand Down Expand Up @@ -2576,7 +2576,7 @@ func (client *ClientImpl) QueryTestResultWorkItems(ctx context.Context, args Que
queryParams.Add("testCaseId", strconv.Itoa(*args.TestCaseId))
}
if args.MaxCompleteDate != nil {
queryParams.Add("maxCompleteDate", (*args.MaxCompleteDate).String())
queryParams.Add("maxCompleteDate", (*args.MaxCompleteDate).AsQueryParameter())
}
if args.Days != nil {
queryParams.Add("days", strconv.Itoa(*args.Days))
Expand Down Expand Up @@ -2625,11 +2625,11 @@ func (client *ClientImpl) QueryTestRuns(ctx context.Context, args QueryTestRunsA
if args.MinLastUpdatedDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "minLastUpdatedDate"}
}
queryParams.Add("minLastUpdatedDate", (*args.MinLastUpdatedDate).String())
queryParams.Add("minLastUpdatedDate", (*args.MinLastUpdatedDate).AsQueryParameter())
if args.MaxLastUpdatedDate == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "maxLastUpdatedDate"}
}
queryParams.Add("maxLastUpdatedDate", (*args.MaxLastUpdatedDate).String())
queryParams.Add("maxLastUpdatedDate", (*args.MaxLastUpdatedDate).AsQueryParameter())
if args.State != nil {
queryParams.Add("state", string(*args.State))
}
Expand Down
4 changes: 2 additions & 2 deletions azuredevops/work/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,10 @@ func (client *ClientImpl) GetDeliveryTimelineData(ctx context.Context, args GetD
queryParams.Add("revision", strconv.Itoa(*args.Revision))
}
if args.StartDate != nil {
queryParams.Add("startDate", (*args.StartDate).String())
queryParams.Add("startDate", (*args.StartDate).AsQueryParameter())
}
if args.EndDate != nil {
queryParams.Add("endDate", (*args.EndDate).String())
queryParams.Add("endDate", (*args.EndDate).AsQueryParameter())
}
locationId, _ := uuid.Parse("bdd0834e-101f-49f0-a6ae-509f384a12b4")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil)
Expand Down
6 changes: 3 additions & 3 deletions azuredevops/workitemtracking/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ func (client *ClientImpl) GetWorkItem(ctx context.Context, args GetWorkItemArgs)
queryParams.Add("fields", listAsString)
}
if args.AsOf != nil {
queryParams.Add("asOf", (*args.AsOf).String())
queryParams.Add("asOf", (*args.AsOf).AsQueryParameter())
}
if args.Expand != nil {
queryParams.Add("$expand", string(*args.Expand))
Expand Down Expand Up @@ -2253,7 +2253,7 @@ func (client *ClientImpl) GetWorkItems(ctx context.Context, args GetWorkItemsArg
queryParams.Add("fields", listAsString)
}
if args.AsOf != nil {
queryParams.Add("asOf", (*args.AsOf).String())
queryParams.Add("asOf", (*args.AsOf).AsQueryParameter())
}
if args.Expand != nil {
queryParams.Add("$expand", string(*args.Expand))
Expand Down Expand Up @@ -2338,7 +2338,7 @@ func (client *ClientImpl) GetWorkItemTemplate(ctx context.Context, args GetWorkI
queryParams.Add("fields", *args.Fields)
}
if args.AsOf != nil {
queryParams.Add("asOf", (*args.AsOf).String())
queryParams.Add("asOf", (*args.AsOf).AsQueryParameter())
}
if args.Expand != nil {
queryParams.Add("$expand", string(*args.Expand))
Expand Down

0 comments on commit 09c8cad

Please sign in to comment.