Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regen after fixing generator bug where inherited fields were not added to models if the model's base class was external to the area. #66

Merged
merged 1 commit into from
May 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions azuredevops/git/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,26 @@ type GitForkSyncRequestParameters struct {
}

type GitForkTeamProjectReference struct {
// Project abbreviation.
Abbreviation *string `json:"abbreviation,omitempty"`
// Url to default team identity image.
DefaultTeamImageUrl *string `json:"defaultTeamImageUrl,omitempty"`
// The project's description (if any).
Description *string `json:"description,omitempty"`
// Project identifier.
Id *uuid.UUID `json:"id,omitempty"`
// Project last update time.
LastUpdateTime *azuredevops.Time `json:"lastUpdateTime,omitempty"`
// Project name.
Name *string `json:"name,omitempty"`
// Project revision.
Revision *uint64 `json:"revision,omitempty"`
// Project state.
State *core.ProjectState `json:"state,omitempty"`
// Url to the full version of the object.
Url *string `json:"url,omitempty"`
// Project visibility.
Visibility *core.ProjectVisibility `json:"visibility,omitempty"`
}

// Accepted types of version
Expand Down Expand Up @@ -2294,6 +2314,30 @@ type HistoryEntry struct {

// Identity information including a vote on a pull request.
type IdentityRefWithVote struct {
// This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
Links interface{} `json:"_links,omitempty"`
// The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
Descriptor *string `json:"descriptor,omitempty"`
// This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
DisplayName *string `json:"displayName,omitempty"`
// This url is the full route to the source resource of this graph subject.
Url *string `json:"url,omitempty"`
// Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
DirectoryAlias *string `json:"directoryAlias,omitempty"`
Id *string `json:"id,omitempty"`
// Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary
ImageUrl *string `json:"imageUrl,omitempty"`
// Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary
Inactive *bool `json:"inactive,omitempty"`
// Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)
IsAadIdentity *bool `json:"isAadIdentity,omitempty"`
// Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)
IsContainer *bool `json:"isContainer,omitempty"`
IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"`
// Deprecated - not in use in most preexisting implementations of ToIdentityRef
ProfileUrl *string `json:"profileUrl,omitempty"`
// Deprecated - use Domain+PrincipalName instead
UniqueName *string `json:"uniqueName,omitempty"`
// Indicates if this is a required reviewer for this pull request. <br /> Branches can have policies that require particular reviewers are required for pull requests.
IsRequired *bool `json:"isRequired,omitempty"`
// URL to retrieve information about this identity
Expand Down
25 changes: 25 additions & 0 deletions azuredevops/memberentitlementmanagement/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/microsoft/azure-devops-go-api/azuredevops/graph"
"github.com/microsoft/azure-devops-go-api/azuredevops/licensing"
"github.com/microsoft/azure-devops-go-api/azuredevops/licensingrule"
"github.com/microsoft/azure-devops-go-api/azuredevops/operations"
)

type BaseOperationResult struct {
Expand Down Expand Up @@ -91,6 +92,14 @@ type GroupEntitlement struct {
}

type GroupEntitlementOperationReference struct {
// Unique identifier for the operation.
Id *uuid.UUID `json:"id,omitempty"`
// Unique identifier for the plugin.
PluginId *uuid.UUID `json:"pluginId,omitempty"`
// The current status of the operation.
Status *operations.OperationStatus `json:"status,omitempty"`
// URL to get the full operation object.
Url *string `json:"url,omitempty"`
// Operation completed with success or failure.
Completed *bool `json:"completed,omitempty"`
// True if all operations were successful.
Expand Down Expand Up @@ -188,6 +197,14 @@ type MemberEntitlement struct {
}

type MemberEntitlementOperationReference struct {
// Unique identifier for the operation.
Id *uuid.UUID `json:"id,omitempty"`
// Unique identifier for the plugin.
PluginId *uuid.UUID `json:"pluginId,omitempty"`
// The current status of the operation.
Status *operations.OperationStatus `json:"status,omitempty"`
// URL to get the full operation object.
Url *string `json:"url,omitempty"`
// Operation completed with success or failure
Completed *bool `json:"completed,omitempty"`
// True if all operations were successful
Expand Down Expand Up @@ -336,6 +353,14 @@ type UserEntitlement struct {
}

type UserEntitlementOperationReference struct {
// Unique identifier for the operation.
Id *uuid.UUID `json:"id,omitempty"`
// Unique identifier for the plugin.
PluginId *uuid.UUID `json:"pluginId,omitempty"`
// The current status of the operation.
Status *operations.OperationStatus `json:"status,omitempty"`
// URL to get the full operation object.
Url *string `json:"url,omitempty"`
// Operation completed with success or failure.
Completed *bool `json:"completed,omitempty"`
// True if all operations were successful.
Expand Down
25 changes: 24 additions & 1 deletion azuredevops/notification/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,27 @@ type ExpressionFilterModel struct {
}

type FieldInputValues struct {
Operators *[]byte `json:"operators,omitempty"`
// The default value to use for this input
DefaultValue *string `json:"defaultValue,omitempty"`
// Errors encountered while computing dynamic values.
Error *forminput.InputValuesError `json:"error,omitempty"`
// The id of the input
InputId *string `json:"inputId,omitempty"`
// Should this input be disabled
IsDisabled *bool `json:"isDisabled,omitempty"`
// Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False)
IsLimitedToPossibleValues *bool `json:"isLimitedToPossibleValues,omitempty"`
// Should this input be made read-only
IsReadOnly *bool `json:"isReadOnly,omitempty"`
// Possible values that this input can take
PossibleValues *[]forminput.InputValue `json:"possibleValues,omitempty"`
Operators *[]byte `json:"operators,omitempty"`
}

type FieldValuesQuery struct {
CurrentValues *map[string]string `json:"currentValues,omitempty"`
// Subscription containing information about the publisher/consumer and the current input values
Resource interface{} `json:"resource,omitempty"`
InputValues *[]FieldInputValues `json:"inputValues,omitempty"`
Scope *string `json:"scope,omitempty"`
}
Expand Down Expand Up @@ -1092,6 +1109,12 @@ var SubscriptionQueryFlagsValues = subscriptionQueryFlagsValuesType{

// A resource, typically an account or project, in which events are published from.
type SubscriptionScope struct {
// Required: This is the identity of the scope for the type.
Id *uuid.UUID `json:"id,omitempty"`
// Optional: The display name of the scope
Name *string `json:"name,omitempty"`
// Required: The event specific type of a scope.
Type *string `json:"type,omitempty"`
}

// Subscription status values. A value greater than or equal to zero indicates the subscription is enabled. A negative value indicates the subscription is disabled.
Expand Down
32 changes: 32 additions & 0 deletions azuredevops/search/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,26 @@ type CodeResult struct {

// Defines a code search request.
type CodeSearchRequest struct {
// Filters to be applied. Set it to null if there are no filters to be applied.
Filters *map[string][]string `json:"filters,omitempty"`
// The search text.
SearchText *string `json:"searchText,omitempty"`
// Options for sorting search results. If set to null, the results will be returned sorted by relevance. If more than one sort option is provided, the results are sorted in the order specified in the OrderBy.
OrderBy *[]searchshared.SortOption `json:"$orderBy,omitempty"`
// Number of results to be skipped.
Skip *int `json:"$skip,omitempty"`
// Number of results to be returned.
Top *int `json:"$top,omitempty"`
// Flag to opt for faceting in the result. Default behavior is false.
IncludeFacets *bool `json:"includeFacets,omitempty"`
}

// Defines a code search response item.
type CodeSearchResponse struct {
// A dictionary storing an array of <code>Filter</code> object against each facet.
Facets *map[string][]searchshared.Filter `json:"facets,omitempty"`
// Numeric code indicating any additional information: 0 - Ok, 1 - Account is being reindexed, 2 - Account indexing has not started, 3 - Invalid Request, 4 - Prefix wildcard query not supported, 5 - MultiWords with code facet not supported, 6 - Account is being onboarded, 7 - Account is being onboarded or reindexed, 8 - Top value trimmed to maxresult allowed 9 - Branches are being indexed, 10 - Faceting not enabled, 11 - Work items not accessible, 19 - Phrase queries with code type filters not supported, 20 - Wildcard queries with code type filters not supported. Any other info code is used for internal purpose.
InfoCode *int `json:"infoCode,omitempty"`
// Total number of matched files.
Count *int `json:"count,omitempty"`
// List of matched files.
Expand Down Expand Up @@ -75,10 +91,26 @@ type WorkItemResult struct {

// Defines a work item search request.
type WorkItemSearchRequest struct {
// Filters to be applied. Set it to null if there are no filters to be applied.
Filters *map[string][]string `json:"filters,omitempty"`
// The search text.
SearchText *string `json:"searchText,omitempty"`
// Options for sorting search results. If set to null, the results will be returned sorted by relevance. If more than one sort option is provided, the results are sorted in the order specified in the OrderBy.
OrderBy *[]searchshared.SortOption `json:"$orderBy,omitempty"`
// Number of results to be skipped.
Skip *int `json:"$skip,omitempty"`
// Number of results to be returned.
Top *int `json:"$top,omitempty"`
// Flag to opt for faceting in the result. Default behavior is false.
IncludeFacets *bool `json:"includeFacets,omitempty"`
}

// Defines a response item that is returned for a work item search request.
type WorkItemSearchResponse struct {
// A dictionary storing an array of <code>Filter</code> object against each facet.
Facets *map[string][]searchshared.Filter `json:"facets,omitempty"`
// Numeric code indicating any additional information: 0 - Ok, 1 - Account is being reindexed, 2 - Account indexing has not started, 3 - Invalid Request, 4 - Prefix wildcard query not supported, 5 - MultiWords with code facet not supported, 6 - Account is being onboarded, 7 - Account is being onboarded or reindexed, 8 - Top value trimmed to maxresult allowed 9 - Branches are being indexed, 10 - Faceting not enabled, 11 - Work items not accessible, 19 - Phrase queries with code type filters not supported, 20 - Wildcard queries with code type filters not supported. Any other info code is used for internal purpose.
InfoCode *int `json:"infoCode,omitempty"`
// Total number of matched work items.
Count *int `json:"count,omitempty"`
// List of top matched work items.
Expand Down
27 changes: 27 additions & 0 deletions azuredevops/serviceendpoint/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package serviceendpoint
import (
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops"
"github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon"
"github.com/microsoft/azure-devops-go-api/azuredevops/forminput"
"github.com/microsoft/azure-devops-go-api/azuredevops/webapi"
)
Expand Down Expand Up @@ -206,6 +207,32 @@ type DataSource struct {

// Represents the data source binding of the endpoint.
type DataSourceBinding struct {
// Pagination format supported by this data source(ContinuationToken/SkipTop).
CallbackContextTemplate *string `json:"callbackContextTemplate,omitempty"`
// Subsequent calls needed?
CallbackRequiredTemplate *string `json:"callbackRequiredTemplate,omitempty"`
// Gets or sets the name of the data source.
DataSourceName *string `json:"dataSourceName,omitempty"`
// Gets or sets the endpoint Id.
EndpointId *string `json:"endpointId,omitempty"`
// Gets or sets the url of the service endpoint.
EndpointUrl *string `json:"endpointUrl,omitempty"`
// Gets or sets the authorization headers.
Headers *[]distributedtaskcommon.AuthorizationHeader `json:"headers,omitempty"`
// Defines the initial value of the query params
InitialContextTemplate *string `json:"initialContextTemplate,omitempty"`
// Gets or sets the parameters for the data source.
Parameters *map[string]string `json:"parameters,omitempty"`
// Gets or sets http request body
RequestContent *string `json:"requestContent,omitempty"`
// Gets or sets http request verb
RequestVerb *string `json:"requestVerb,omitempty"`
// Gets or sets the result selector.
ResultSelector *string `json:"resultSelector,omitempty"`
// Gets or sets the result template.
ResultTemplate *string `json:"resultTemplate,omitempty"`
// Gets or sets the target of the data source.
Target *string `json:"target,omitempty"`
}

// Represents details of the service endpoint data source.
Expand Down
44 changes: 44 additions & 0 deletions azuredevops/taskagent/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package taskagent
import (
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops"
"github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon"
"github.com/microsoft/azure-devops-go-api/azuredevops/forminput"
"github.com/microsoft/azure-devops-go-api/azuredevops/webapi"
)
Expand Down Expand Up @@ -223,6 +224,32 @@ type DataSource struct {
}

type DataSourceBinding struct {
// Pagination format supported by this data source(ContinuationToken/SkipTop).
CallbackContextTemplate *string `json:"callbackContextTemplate,omitempty"`
// Subsequent calls needed?
CallbackRequiredTemplate *string `json:"callbackRequiredTemplate,omitempty"`
// Gets or sets the name of the data source.
DataSourceName *string `json:"dataSourceName,omitempty"`
// Gets or sets the endpoint Id.
EndpointId *string `json:"endpointId,omitempty"`
// Gets or sets the url of the service endpoint.
EndpointUrl *string `json:"endpointUrl,omitempty"`
// Gets or sets the authorization headers.
Headers *[]distributedtaskcommon.AuthorizationHeader `json:"headers,omitempty"`
// Defines the initial value of the query params
InitialContextTemplate *string `json:"initialContextTemplate,omitempty"`
// Gets or sets the parameters for the data source.
Parameters *map[string]string `json:"parameters,omitempty"`
// Gets or sets http request body
RequestContent *string `json:"requestContent,omitempty"`
// Gets or sets http request verb
RequestVerb *string `json:"requestVerb,omitempty"`
// Gets or sets the result selector.
ResultSelector *string `json:"resultSelector,omitempty"`
// Gets or sets the result template.
ResultTemplate *string `json:"resultTemplate,omitempty"`
// Gets or sets the target of the data source.
Target *string `json:"target,omitempty"`
}

type DataSourceDetails struct {
Expand Down Expand Up @@ -2171,6 +2198,18 @@ type TaskHubLicenseDetails struct {
}

type TaskInputDefinition struct {
Aliases *[]string `json:"aliases,omitempty"`
DefaultValue *string `json:"defaultValue,omitempty"`
GroupName *string `json:"groupName,omitempty"`
HelpMarkDown *string `json:"helpMarkDown,omitempty"`
Label *string `json:"label,omitempty"`
Name *string `json:"name,omitempty"`
Options *map[string]string `json:"options,omitempty"`
Properties *map[string]string `json:"properties,omitempty"`
Required *bool `json:"required,omitempty"`
Type *string `json:"type,omitempty"`
Validation *distributedtaskcommon.TaskInputValidation `json:"validation,omitempty"`
VisibleRule *string `json:"visibleRule,omitempty"`
}

type TaskInstance struct {
Expand Down Expand Up @@ -2374,6 +2413,11 @@ var TaskResultValues = taskResultValuesType{
}

type TaskSourceDefinition struct {
AuthKey *string `json:"authKey,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
KeySelector *string `json:"keySelector,omitempty"`
Selector *string `json:"selector,omitempty"`
Target *string `json:"target,omitempty"`
}

type TaskStartedEvent struct {
Expand Down
16 changes: 16 additions & 0 deletions azuredevops/webapi/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ type EventScope struct {
}

type IdentityRef struct {
// This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
Links interface{} `json:"_links,omitempty"`
// The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
Descriptor *string `json:"descriptor,omitempty"`
// This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
DisplayName *string `json:"displayName,omitempty"`
// This url is the full route to the source resource of this graph subject.
Url *string `json:"url,omitempty"`
// Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
DirectoryAlias *string `json:"directoryAlias,omitempty"`
Id *string `json:"id,omitempty"`
Expand All @@ -111,6 +119,14 @@ type IdentityRef struct {
}

type IdentityRefWithEmail struct {
// This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
Links interface{} `json:"_links,omitempty"`
// The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
Descriptor *string `json:"descriptor,omitempty"`
// This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
DisplayName *string `json:"displayName,omitempty"`
// This url is the full route to the source resource of this graph subject.
Url *string `json:"url,omitempty"`
// Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
DirectoryAlias *string `json:"directoryAlias,omitempty"`
Id *string `json:"id,omitempty"`
Expand Down
Loading